Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
import sys | |
import json | |
import time | |
from binascii import hexlify, unhexlify | |
from ethereum import utils | |
from ethereum.transactions import Transaction | |
import rlp | |
import codecs | |
from web3 import Web3, HTTPProvider |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
# Set the pper listening address | |
# export ETCD_PEER_ADDR=127.0.0.1:7001 | |
# Set other command line options like the name and discovery url | |
# from https://discovery.etcd.io/new | |
# export ETCD_OPTS="-name=name_here -discovery=https://discovery.etcd.io/token_here" | |
export ETCD_OPTS="" |
#!/bin/bash | |
user='USER_NAME' | |
token='API_TOKEN_OF_USER' | |
host='http://'$user':'$token'@localhost:8080' | |
url=/pluginManager/installNecessaryPlugins | |
# git plugin https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin | |
curl -X POST -d '<jenkins><install plugin="git@2.0" /></jenkins>' --header 'Content-Type: text/xml' $host$url | |
# artifactory plugin https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin |
const UIManager = require('NativeModules').UIManager; | |
const handle = React.findNodeHandle(this.refs.myElement); | |
UIManager.measureLayoutRelativeToParent( | |
handle, | |
(e) => {console.error(e)}, | |
(x, y, w, h) => { | |
console.log('offset', x, y, w, h); | |
}); |
var Dimensions = require('Dimensions'); | |
var SCREEN_WIDTH = Dimensions.get('window').width; | |
var SCREEN_HEIGHT = Dimensions.get('window').height; |
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |
package main | |
import"sort" | |
import"fmt" | |
type ByLength[] string | |
func(sByLength)Len()int | |
{ | |
returnlen(s) |
augroup CursorLineOnlyInActiveWindow | |
autocmd! | |
autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline | |
autocmd WinLeave * setlocal nocursorline | |
augroup END |