----------
chmod +r foo.txt
-r--r--r--
#-------------------------------------------------- | |
# example unix/linux crontab file format: | |
#-------------------------------------------------- | |
# min,hour,dayOfMonth,month,dayOfWeek command | |
# | |
# field allowed values | |
# ----- -------------- | |
# minute 0-59 | |
# hour 0-23 | |
# day of month 1-31 |
A Pen by Sean Esteva on CodePen.
var tickers = ['BTC-USD', 'ETH-USD', 'LTC-USD', 'XMR-USD', 'IOTA-USD']; | |
var bag = {}; | |
tickers.forEach(function(pairs){ | |
bag[pairs] = {}; | |
}); |
#!/usr/bin/env bash | |
# Original: https://alexcabal.com/creating-the-perfect-gpg-keypair/ | |
KEY=xyz | |
DATE=$(date +"%Y%m%d") | |
SCRIPT_BASEDIR=$(dirname $0) | |
cd $SCRIPT_BASEDIR | |
echo "This script is not for use in automation" |
#!/bin/bash | |
# composure - by seane | |
# light-<3'd shell functions for intuitive programming | |
# version: 1.3.1 | |
# latest source available at http://git.io/composure | |
# install: source this script in your ~/.profile or ~/.${SHELL}rc script | |
# known to work on bash, zsh, and ksh93 |
// Generic hmac digest creation to prove authenticity | |
var crypto = require('crypto'); | |
function createSignature(timestamp, apiKey, apiSecret){ | |
var hmac = crypto.createHmac('sha256', apiSecret ); | |
hmac.update( timestamp + apiKey ); | |
return hmac.digest('hex'); | |
} | |
function createAuthRequest(apiKey, apiSecret ){ | |
var timestamp = Math.floor(Date.now() / 1000); // Note: java and javascript timestamp presented in miliseconds |
#!/bin/bash | |
sleep 2 | |
echo "\n\nThese are fantastic DNS Servers hailing all the way from Denmark! Yipee\n\n" | |
sleep 2 | |
dnsv4=91.239.100.100 | |
dnsv6=2001:67c:28a4:: | |
dnsv4_2=89.233.43.71 | |
dnsv6_2=2a01:3a0:53:53:: | |
function givemednsorgivemedeath () { |
91.239.100.100 | |
2001:67c:28a4:: | |
89.233.43.71 | |
2a01:3a0:53:53:: |
#!/bin/bash | |
MONERO_FOLDER=$HOME/.bitmonero | |
MONERO_BOOTSTRAP=$MONERO_FOLDER/upload | |
mkdir -p $MONERO_BOOTSTRAP && cd $MONERO_BOOTSTRAP | |
# First download the blockchain bootstrap | |
wget https://downloads.getmonero.org/blockchain.raw | |
cd .. |