Skip to content

Instantly share code, notes, and snippets.

Felix021 felix021

Block or report user

Report or block felix021

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
neuhaus / sign-offline.js
Last active Oct 19, 2019
Ethereum: Sign an offline transaction with Node and web3
View sign-offline.js
#!/usr/bin/env node
'use strict';
// ethereum: generate signed transactions
const fs = require('fs-extra');
const rls = require('readline-sync');
const Accounts = require('web3-eth-accounts');
const web3utils = require('web3-utils');
const accounts = new Accounts();
chrisnc / rawudp.go
Last active Oct 27, 2019
constructing ip/udp packets in go
View rawudp.go
package main
import (
rubo77 /
Last active Oct 29, 2019
This script rotates the screen and touchscreen input, disables or enbles the touchpad, and dis- or enables the virtual keyboard on a Lenovo Yoga 13 or Yoga 2 Pro (source:
# This script rotates the screen and touchscreen input 90 degrees each time it is called,
# also disables the touchpad, and enables the virtual keyboard accordingly
# by Ruben Barkow:
#### configuration
# find your Touchscreen and Touchpad device with `xinput`
TouchscreenDevice='ELAN Touchscreen'
TouchpadDevice='SynPS/2 Synaptics TouchPad'
View shadowsocksconfig
服务器资源由 提供 欢迎选购host700 vps
客户端下载: #注意里面有win 跟 mac linux的是什么系统就选什么就好了
tbranyen / string.format.js
Created Jun 27, 2011
safer string formatting
View string.format.js
// Inspired by
// Augment String.prototype to allow for easier formatting. This implementation
// doesn't completely destroy any existing String.prototype.format functions,
// and will stringify objects/arrays.
String.prototype.format = function(i, safe, arg) {
function format() {
var str = this, len = arguments.length+1;
// For each {0} {1} {n...} replace with the argument in that position. If
chuangbo /
Last active Nov 11, 2019
Python dynamic DNSPod DNS Script

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k -d "login_token=TOKEN"`
You can’t perform that action at this time.