Skip to content

Instantly share code, notes, and snippets.

View louisje's full-sized avatar
💯
左手寫程式 (">_<) 右手做測試

Louis Jeng louisje

💯
左手寫程式 (">_<) 右手做測試
View GitHub Profile
#!/bin/sh
if test -z "$1"; then
echo "Usage: `basename $0` <char>"
exit
fi
echo -n "$1" \
| iconv -f utf8 -t utf32be \
| xxd -p \
#!/bin/bash -x
if test -z "$(which git)"; then
echo "git is missing!"
exit 1
fi
if test -z "$(which cmake)"; then
echo "cmake is missing!"
exit 1
(()=>(()=>console.log('Hello, World!')))()();
#
sub j(\$){($
P,$V)= @_;while($$P=~s:^
([()])::x){ $V+=('('eq$1)?-32:31
}$V+=ord( substr( $$P,0,1,""))-74} sub a{
my($I,$K,$ J,$L)=@_ ;$I=int($I*$M/$Z);$K=int(
$K*$M/$Z);$J=int($J*$M /$Z);$L=int($L*$M/$Z); $G=$
J-$I;$F=$L-$K;$E=(abs($ G)>=abs($F))?$G:$F;($E<0) and($
I,$K)=($J,$L);$E||=.01 ;for($i=0;$i<=abs$E;$i++ ){ $D->{$K
+int($i*$F/$E) }->{$I+int($i*$G/$E)}=1}}sub p{$D={};$
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".i2p")) {
if (url.substring(0, 6) == 'https:') {
return "PROXY localhost:4445";
} else {
return "PROXY localhost:4444";
}
} else {
return "DIRECT";
}
targets = cpuminer-multi ccminer ethminer xmrMiner
WALLET_ETH = 0x7b2ffb19e91c325537f2b50d51626a0cbae129ce
WALLET_XMR = 45RngebM2ZtDHyQBcXcw86iuEq7awrWM43mCiyLxjMNqCLJvXtTLYgSBr8bRhF9HcjgjkQu2uws59fepWLWe5DNFMua2Gy4
.PHONY: ${targets}
.ONESHELL:
build: ${targets}
#!/bin/bash -x
if test -z "$(which git)"; then
echo "git is missing!"
exit 1
fi
if test -z "$(which cmake)"; then
echo "cmake is missing!"
exit 1
.section .text
_start:
sub $0xe, %rsp
movb $0x48, 0x0(%rsp)
movb $0x65, 0x1(%rsp)
movb $0x6c, 0x2(%rsp)
movb $0x6c, 0x3(%rsp)
movb $0x6f, 0x4(%rsp)
movb $0x20, 0x5(%rsp)
movb $0x57, 0x6(%rsp)
/**
* 9x9 SDK (nn-sdk.js)
*
* Please refer to http://dev.teltel.com/louis/9x9-sdk-usage/ for usage
* and more information.
*
* ChangeLog:
*
* + 2012-08-23 v0.0.1 by Louis
* - first version
VBoxManage modifyvm "Mac OS X 10.11 El Capitan" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "Mac OS X 10.11 El Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "Mac OS X 10.11 El Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Mac OS X 10.11 El Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Mac OS X 10.11 El Capitan" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Mac OS X 10.11 El Capitan" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1