This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/node | |
/* | |
* <bitbar.title>Elrond Stats</bitbar.title> | |
* <bitbar.version>v1.0</bitbar.version> | |
* <bitbar.author>Ion Vrinceanu</bitbar.author> | |
* <bitbar.author.github>ionvv</bitbar.author.github> | |
* <bitbar.desc>Elrond stats</bitbar.desc> | |
* <bitbar.dependencies>node</bitbar.dependencies> | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const qs = require('qs'); | |
const apiUrl = 'https://slack.com/api'; | |
const greet = () => { | |
let messageArgs = { | |
token: process.env.SLACK_ACCESS_TOKEN, | |
channel: '#cats', | |
text: ':wave: Hello, welcome to the channel!', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# History Configuration | |
############################################################################## | |
HISTSIZE=5000 #How many lines of history to keep in memory | |
HISTFILE=~/.zsh_history #Where to save history to disk | |
SAVEHIST=5000 #Number of history entries to save to disk | |
#HISTDUP=erase #Erase duplicates in the history file | |
setopt appendhistory #Append history to the history file (no overwriting) | |
setopt sharehistory #Share history across terminals | |
setopt incappendhistory #Immediately append to the history file, not just when a term is killed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const YAML = require('yaml'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const glob = require('glob'); | |
const axios = require('axios'); | |
const { get } = require('lodash'); | |
const getUnreleasedFilesList = (changelogDir = '.') => { | |
const changelogEntriesPath = path.join(changelogDir, 'unreleased'); | |
const changelogFiles = glob.sync(path.join(changelogEntriesPath, '*.yml')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local CTRL = "⌃" | |
local ALT = "⌥" | |
local CMD = "⌘" | |
local SHIFT = "⇧" | |
local all = {CTRL, ALT, CMD} | |
local right_2 = {ALT, CMD} | |
local left_2 = {CTRL, ALT} | |
local split = {CTRL, CMD} | |
local hyper = {CMD, ALT, CTRL, SHIFT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Handler, Context, Callback } from 'aws-lambda'; | |
interface HelloReponse { | |
statusCode: number; | |
body: string; | |
} | |
const hello: Handler = (event: any, context: Context, callback: Callback) => { | |
const response: HelloReponse = { | |
statusCode: 200, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an express app | |
const express = require('express'); | |
const app = express(); | |
// Tell it to use Neo4j middleware | |
app.use(require('./neo4j')); | |
// Example Route | |
app.get('/', (req, res) => { | |
// Create Driver session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const cloudinary = require('cloudinary') | |
const Promise = require('bluebird') | |
const co = require('co') | |
const fs = Promise.promisifyAll(require('fs')) | |
const request = require('request') | |
const moment = require('moment') | |
// FILL THIS | |
cloudinary.config({ | |
cloud_name: '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abp:subscribe?location=http%3A%2F%2F3.fwcdn.pl%2Fadv%2Ffilmweb.pl.txt&title=filmweb.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' |
NewerOlder