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
alias docker-purge='(docker stop $(docker ps -aq) || echo "Skipping...") && (docker rm $(docker ps -aq) || echo "Skipping...") && (docker rmi -f $(docker images -q) || echo "Skipping...")' |
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 | |
# Using crontab command: | |
# */10 * * * * $HOME/bc_integrity.sh ropsten 30311 200 'http://slackhook' >> $HOME/bc_integrity.log 2>&1 | |
# You might want to cleanup log file, use crontab command: | |
# 0 8 * * * echo "$(tail -10000 $HOME/bc_integrity.log)" > $HOME/bc_integrity.log | |
network=$1 # ethereum network in letters (mainnet, ropsten, rinkeby etc.) | |
port=$2 # local geth port | |
threshold=$3 # number of blocks behind | |
slackHook=$4 # slack hook url |
We can't make this file beautiful and searchable because it's too large.
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
24h_volume_usd,add_date,algorithm,announcement,available_supply,cc_id,chat,chat_2,coin_type,explorer,explorer_2,explorer_3,facebook,id,image_url,last_updated,market_cap_usd,max_supply,message_board,message_board_2,mining_type,name,percent_change_1h,percent_change_24h,percent_change_7d,price_btc,price_usd,rank,slug,source_code,source_code_2,source_code_3,source_code_4,start_date,symbol,total_supply,twitter,website,website_2 | |
24303.0,2014-01-13T22:00:00.000Z,Scrypt,https://bitcointalk.org/index.php?topic=1502028,42.0,4321,https://kiwiirc.com/client/chat.freenode.net/##42coin,,coin,https://chainz.cryptoid.info/42/,https://prohashing.com/explorer/42/,,,42-coin,https://www.cryptocompare.com/media/12318415/42.png,1515593641,2152302,42,,,PoW/PoS,42-coin,5.96,-0.7,4.72,3.71,51245.34,680,42-coin,https://github.com/42-coin/42,,,,2014-04-30T21:00:00.000Z,42,41.99997274,@42newchain,https://42-coin.org/, | |
7873.7,2017-07-24T21:00:00.000Z,,https://bitcointalk.org/index.php?topic=1992952.0,300.0,,,,token,https://etherscan.io/t |
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 | |
_emoji_dir="$1" | |
_tmp_dir=$(mktemp -d) | |
_suffix=".emoji.png" | |
_script="_emoji.js" | |
_url="https://www.pinterest.com/fruitware/moldavian-emoji/" | |
_lib="pinterest-api" | |
die() |
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 | |
path=$(cd $(dirname $0); pwd -P) | |
### Your changes here | |
CHANGELOG_PATH="$path/../changelog" | |
LATEST_CHANGELOG_PATH="$path/../CHANGELOG.md" | |
### End | |
LAST_MODIFIED=$1 |
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 = $i->get('name', 'Anonymous'); | |
$o->writeln("/f[green]Your name is /f[blink+inverted]%s/!f", [$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
#!/bin/bash | |
TRUE=1 | |
FALSE=0 | |
path=$(cd $(dirname $0); pwd -P) | |
is_sudoer=$(sudo -n uptime 2>&1 | grep "load" | wc -l | tr -d ' ') | |
api_version="v1" | |
env="prod" |
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
<?php | |
/** | |
* @author AlexanderC <[email protected]> | |
*/ | |
namespace Life; | |
class Mood extends Life | |
{ |
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
<?php | |
class ☭ { | |
protected $☭; | |
public function __call($n, $v) | |
{ | |
$this->☭ or ($this->☭ = (object)[]); | |
@$this->☭->{$n} or ($this->☭->{$n} = []); | |
$this->☭->{$n}[trim(mb_substr($v[0], 0, mb_strpos($v[0], "\n")))] = create_function( |
NewerOlder