This file contains hidden or 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/bin/env bash | |
START=0 | |
FILES_NUMBER=10 | |
CWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd ) | |
cd ${CWD} | |
if [[ $# -gt 0 ]]; then | |
FILES_NUMBER="${1}" | |
fi |
This file contains hidden or 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
package logger | |
import ( | |
"log" | |
"os" | |
"some/config" | |
) | |
var ( |
This file contains hidden or 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
package config | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
) | |
type Configuration struct { | |
MongoHostname string |
This file contains hidden or 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
atom-pane.pane { | |
-webkit-flex-direction: row; | |
-webkit-flex-wrap: wrap; | |
&:before { | |
content: 'Open Files'; | |
color: #787878; | |
padding: 5px 10px; | |
display: block; | |
position: absolute; | |
top: 0; |
This file contains hidden or 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 EventEmitter = require('events'); | |
class MyEmitter extends EventEmitter { | |
constructor() { | |
super() | |
} |
This file contains hidden or 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/bin/env node | |
var co = require('co'); | |
var functionThatReturnsAPromise = function() { | |
var promise = new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
resolve("Some value"); | |
}, 1000); | |
}); |
This file contains hidden or 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
mongo "localhost:27017/metascan" --eval \ | |
"var start='${START}', stop='${STOP}', thread=2, threads=${THREADS}, verbose=${VERBOSE}" \ | |
mcl-mongo-hashgen.js |
This file contains hidden or 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
function cd_replace { | |
builtin cd $1 | |
if [[ -e .env ]]; then | |
echo "source .env" | |
source .env | |
fi | |
} | |
alias cd="cd_replace" |
This file contains hidden or 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
#!/bin/bash | |
docker rm -v $(docker ps -aq) | |
docker rmi $(docker images | grep "<none>" | tr -s " " | cut -f 3 -d " ") | |
This file contains hidden or 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/bin/env bash | |
############### | |
# SysV Init Information | |
# chkconfig: - 58 74 | |
# description: node daemon. | |
### BEGIN INIT INFO | |
# Provides: node | |
# Required-Start: | |
# Required-Stop: |
NewerOlder