I hereby claim:
- I am henter on github.
- I am henter (https://keybase.io/henter) on keybase.
- I have a public key whose fingerprint is 2797 EEA8 E75C 7844 767B 8B18 8EB4 12B0 CB9D F566
To claim this, I am signing this object:
import socket, ssl, json, struct | |
import binascii | |
def Payload(alert='', badge=1, data={}): | |
payload = { | |
'aps': { | |
'alert':alert, | |
'sound':'k1DiveAlarm.caf', | |
'badge':badge, | |
}, |
#!/bin/sh | |
set -e | |
# | |
# This script is meant for quick & easy install via: | |
# 'curl -sSL https://get.docker.com/ | sh' | |
# or: | |
# 'wget -qO- https://get.docker.com/ | sh' | |
# | |
# For test builds (ie. release candidates): | |
# 'curl -sSL https://test.docker.com/ | sh' |
const ethers = require("ethers") | |
const pk = | |
"0x0471c746523d16e93d4738f882d9b0beebf66c68caa0f895db15686b57b878cfc7b3e09813ba94f1bbfaa91a06566d3d18bbf69d10bcc947325bbcd6fea97ed692" | |
const ad = "0xcD3edF915387E2555A829567cE0dBbC919834B82" | |
getPubKey = async () => { | |
const infuraProvider = new ethers.providers.JsonRpcProvider( | |
"https://ropsten.infura.io/v3/<projectID>" | |
) |
#!/bin/bash | |
log_dir=/var/log/nginx/ | |
backup_log_dir=/home/backup/nginx_logs/$(date +"%Y%m")/ | |
log_date=$(date +"%Y%m%d") | |
nginx_pid=/var/run/nginx.pid | |
keep_days=30 | |
echo "processing ${log_dir}" | |
#create backup dir |
#!/usr/bin/env bash | |
IDEA='' | |
PROJECT_DIR='' | |
function main() { | |
openIdea "$@" | |
} | |
function openIdea() { |
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Simple MD5 implementation | |
* | |
* Compile with: gcc -o md5 md5.c | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#!/bin/bash | |
long=`sw_vers -productVersion` | |
short=${long:0:4} | |
if [ "$short" == "10.4" ]; then | |
lookupd -flushcache | |
elif [ "$short" == "10.5" ] || [ "$short" == "10.6" ]; then | |
dscacheutil -flushcache | |
elif [ "$short" == "10.7" ] || [ "$short" == "10.8" ]; then | |
sudo killall -HUP mDNSResponder | |
elif [ "$short" == "10.9" ]; then |
#!/bin/bash | |
#替换源 | |
sudo sed -i s/us.archive.ubuntu.com/mirrors.163.com/g /etc/apt/sources.list | |
sudo apt-get update -y | |
sudo apt-get install -y vim curl git-core |