I hereby claim:
- I am houtianze on github.
- I am ibic (https://keybase.io/ibic) on keybase.
- I have a public key whose fingerprint is 9C78 1504 48BD 2ADB FEAF 172A 80AC 1205 0D24 AB23
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
Locate and open file:
<Docker Toolbox Installation Direcotry>\start.sh
Add in the following lines after $DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 $VM
"${VBOXMANAGE}" modifyvm default --vram 16
"${VBOXMANAGE}" modifyvm default --natpf1 "http,tcp,127.0.0.1,2375,,2375"
The following is what I need to do to get Docker working on Windows after a fresh installation of Docker Toolbox (version 1.9.0, latest as the time of writting).
2375
and 2376
to the VM)*.pem
files from ~\.docker\machine\certs\
to ~\.docker\
config.json
from ~\.docker\machine\machines\default\
to ~\.docker\
(Btw, the name of the VM default
is hardcoded in the script, and config.josn
doesn't seem to be read by Docker, see docker/compose#1590 )DOCKER_TLS_VERIFY=1
DOCKER_CONFIG=<YOUR HOME DIRECTORY>\.docker
docker ps
to verify that docker is working now:: http://stackoverflow.com/a/29052019/404271 | |
echo JDK 7 is required | |
if not x%1==x goto doit | |
:usage | |
echo %~n0 ^<Java file without .java extension^> | |
goto end | |
:doit |
:: you need to have apktool in your path | |
if not x%1==x goto doit | |
:usage | |
echo %~n0 ^<smali dir^> | |
goto end | |
:doit | |
set EXTRA_SIGN_AGS= | |
if not x%KEYPASS%==x set EXTRA_SIGN_AGS=-storepass %KEYPASS% -keypass %KEYPASS% |
#!/bin/sh | |
pullall() { | |
curdir=`pwd` | |
if [ -d ".git" ] | |
then | |
echo "Git pulling at $curdir" | |
git pull | |
else | |
echo "Skipping non git directory $curdir" |
// ==UserScript== | |
// @name Fork 18m WSVT | |
// @namespace 18m | |
// @description Just fork it | |
// @updateURL https://gist.github.com/houtianze/ee2cf2f4d022911566a09e77bcfc9233/raw | |
// @version 0.1.1 | |
// @grant none | |
// @include http*://*.ibm.com/WSVTASEAN/*IsamDetails.action | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js | |
// ==/UserScript== |
Let's say you have a SysV Init Script
named foo
Copy the file to /etc/init.d/foo
Enable the SysV service: chkconfig --add foo
Enable the SysV service: chkconfig foo on
Start the service: service foo start
. After this, systemd-sysv-generator will generate this file /run/systemd/generator.late/foo.service
, copy this file to /etc/systemd/system
by running: cp /run/systemd/generator.late/foo.service /etc/systemd/system/foo.service
Edit /etc/systemd/system/foo.service
by running systemctl edit foo.service
, add in the following line to foo.servie
(this makes the service installable)
[Install]
(Assuming your executable script is called foo
)
/etc/init.d/foo
chkconfig --add foo
chkconfig foo on