A Pen by Cameron Banowsky on CodePen.
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 | |
sudo killall -HUP mDNSResponder;say DNS cache has been flushed |
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
{ | |
"name": "smsGateway", | |
"description": "SMS Gateway service", | |
"version": "0.2.1", | |
"homepage": "http://blog.hack.cd", | |
"author": "Cameron Banowsky <cameron@hack.cd>", | |
"organization": "Envisability", | |
"repository": { | |
"type": "git", | |
"url": "https://github.com/Envisability/node-sms-gateway" |
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
tansfercheck() { | |
if [ $# -eq 0 ]; | |
then echo -e "No arguments specified. Usage:\n transfercheck /tmp/test.md\ncat /tmp/test.md | transfercheck test.md"; | |
return 1; | |
fi | |
# write to output to tmpfile for progress bar | |
tmpfile=$( mktemp -t transferXXX) | |
if tty -s; | |
then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); | |
curl -X PUT --progress-bar --upload-file $1 https://transfer.sh/$basefile/virustotal >> $tmpfile; |
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/usr/bash | |
curl ipinfo.io/ip | |
exit; |
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 | |
echo "Purging old installation of Tor" | |
sleep 5 | |
apt-get purge tor* -y | |
wait |
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
createCode: function (amount, currency, password) { | |
var deferred = $q.defer(); | |
var self = this; | |
var id = ""; | |
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
for( var i=0; i < 8; i++ ) | |
id += possible.charAt(Math.floor(Math.random() * possible.length)); | |
if (!password || password == '') | |
password = id; |
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 express = require('express'), | |
path = require('path'), | |
http = require('http'), | |
app = module.exports = express(), | |
port = process.env.PORT || 3000, | |
engines = require('consolidate'); | |
app.set('port', process.env.PORT || 3000); | |
app.set('views', __dirname + '../../client/chips '); | |
app.engine('html', engines.underscore); |
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/bin/env bash | |
shopt -s extglob | |
set -o errtrace | |
set -o errexit | |
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 | |
echo -e "\033[2J\033[?25l"; R=`tput lines` C=`tput cols`;: $[R--] ; while true | |
do ( e=echo\ -e s=sleep j=$[RANDOM%C] d=$[RANDOM%R];for i in `eval $e {1..$R}`; | |
do c=`printf '\\\\0%o' $[RANDOM%57+33]` | |
$e "\033[$[i-1];${j}H\033[32m$c\033[$i;${j}H\033[37m"$c; $s 0.1;if [ $i -ge $d ] | |
then $e "\033[$[i-d];${j}H ";fi;done;for i in `eval $e {$[i-d]..$R}`; #[mat!rix] | |
do echo -e "\033[$i;${j}f ";$s 0.1;done)& sleep 0.05;done |
NewerOlder