Skip to content

Instantly share code, notes, and snippets.

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

Louis Jeng louisje

💯
左手寫程式 (">_<) 右手做測試
View GitHub Profile
version: '2'
services:
hephaestus:
build: ./hephaestus
depends_on:
- queue
- redis
environment:
- P_APP_ID=3eeeUbYPJdftJ9Q777awM6QiVDcKPY9f9cARopBM
#!/bin/sh
num=3
set -e
if test -n "$SWARM_NUM"; then
num="$SWARM_NUM"
fi
create() {
FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl jq
WORKDIR /root
RUN curl -ksL https://gist.github.com/louisje/86a6c382b0a89db7f97d/raw/vision-adult.sh > vision-adult.sh
RUN chmod a+x vision-adult.sh
ENTRYPOINT [ "./vision-adult.sh" ]
CMD [ "--help" ]
FROM ubuntu
RUN apt-get update
RUN apt-get install -y sudo git curl
RUN useradd -m -s /bin/bash louis
RUN echo "louis ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER louis
WORKDIR /home/louis
RUN git clone https://github.com/louisje/outland.git
RUN outland/bin/ol-build
ENTRYPOINT [ "/bin/bash", "--login" ]
@louisje
louisje / android-configure.sh
Last active September 13, 2016 07:52 — forked from nddrylliog/android_configure.sh
Cross-compile autotools library for Android / arm-linux-androideabiI stick that in ~/bin/, chmod +x, and then run it in place of "./configure" in my project. Then a make and make install later, the prefix contains libraries built for android. Neato eh?
#!/bin/sh
#
# NDK Standalone Toolchain:
# $HOM#/Android/Sdk/ndk-bundle/build/tools/make_standalone_toolchain.py --arch x86 --api 22 --stl gnustl -v --install-dir $HOME/workspace/ndk-toolchain --force
# cp $HOME/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_static.a $HOME/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86/libandroid_support.a $HOME/workspace/ndk-toolchain/i686-linux-android/lib
#
# NDK
export TARGET='i686-linux-android'
export TOOLCHAIN=${HOME}/workspace/ndk-toolchain
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
/**
* 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
.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)
#!/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
targets = cpuminer-multi ccminer ethminer xmrMiner
WALLET_ETH = 0x7b2ffb19e91c325537f2b50d51626a0cbae129ce
WALLET_XMR = 45RngebM2ZtDHyQBcXcw86iuEq7awrWM43mCiyLxjMNqCLJvXtTLYgSBr8bRhF9HcjgjkQu2uws59fepWLWe5DNFMua2Gy4
.PHONY: ${targets}
.ONESHELL:
build: ${targets}