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
#! /bin/bash | |
filename=$(basename "$1") | |
extension="${filename##*.}" | |
filename="${filename%.*}" | |
ffmpeg -i $filename.$extension -codec:a libmp3lame $filename.mp3 |
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
(ns scraper.concurrent | |
(:import [java.util.concurrent | |
ExecutorService | |
ExecutorCompletionService | |
Executors | |
CompletionService Future])) | |
(defn prln [& more] | |
(.write | |
*out* |
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
%{IP:client} - - \[%{HTTPDATE:time_local}\] %{QUOTEDSTRING:request} %{NUMBER:status} %{NUMBER:bytes} "-" %{QS:agent} |
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
#! /bin/bash | |
SERVICE=" | |
[Unit] | |
Description=Docker Application Container Engine | |
Documentation=https://docs.docker.com | |
After=network.target docker.socket | |
Requires=docker.socket | |
[Service] |
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
var bencode = require('bencode') | |
var net = require('net') | |
var conn = net.connect(57720) | |
// var msg = {op: "eval", code: '(println 1000000)'} | |
// var msg = {op: "eval", code: '(println process.env.HOME)'} | |
// var msg = {op: "eval", code: '(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))'} | |
// var msg = {op: "eval", code: "(+ 1 2 3)"} |
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
#! /bin/bash | |
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt | |
echo 01 > ca.srl | |
openssl genrsa -des3 -out ca-key.pem | |
openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem | |
openssl genrsa -des3 -out server-key.pem | |
openssl req -new -key server-key.pem -out server.csr |
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
montage *.png -mode Concatenate -tile 9x11 append_array.png |
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
#! /bin/bash | |
SERVICES="trender rubber britney hippo door search redis rethinkj" | |
for service in $SERVICES do | |
docker rm -f $service | |
done |
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
var stream = require('stream'); | |
class Transformer extends stream.Transform { | |
constructor(options) { | |
super({ | |
readableObjectMode : true, | |
writableObjectMode: true | |
}); | |
} |
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
atom.beep() | |
var path = require('path') | |
var spawn = require("child_process").spawn | |
var options = { | |
pwd: atom.project.getPaths()[0], | |
env: Object.create(process.env) | |
} |