Skip to content

Instantly share code, notes, and snippets.

Jethro Yu jcppkkk

  • Taipei
View GitHub Profile
@jcppkkk
jcppkkk / .block
Last active Dec 13, 2017 — forked from mbostock/.block
Nested Treemap
View .block
license: gpl-3.0
height: 720
@jcppkkk
jcppkkk / README.md
Created Feb 21, 2017 — forked from trinitronx/README.md
A shell script to install latest Ansible via pip + dependencies
View README.md

omnibus-ansible

Install latest Ansible via pip + dependencies via a shell script

This file is used to install ansible in test kitchen when you set in the kitchen.yaml file

require_ansible_omnibus: true

By default test kitchen will always download and use the latest version of this install file.

WARNING: AS SOON AS YOU MERGE CODE HERE IT IS INSTANTLY AVAILABLE TO EVERYONE DOING OMNIBUS KITCHEN ANSIBLE INSTALLS:

@jcppkkk
jcppkkk / OpenWithSublime.bat
Last active Mar 29, 2019 — forked from FoxColdMetal/OpenWithSublimeText.bat
[[[ Move to https://github.com/jcppkkk/OpenWithSublime !!! ]]] Add context menu to allow user open file or folder with Sublime as User (or as Admin).
View OpenWithSublime.bat
@echo off
:: Path to Sublime Text installation dir.
SET stPath=%~dp0sublime_text.exe
SET stPathOnly=%~dp0
:: Key name for the registry entries.
SET UserEntry=Sublime Text
SET AdminEntry=Sublime Text As Admin
:: Context menu texts.
SET "UserMenuText=Open with Sublime(&-)"
SET "AdminMenuText=Open with Sublime As Admin(&+)"
@jcppkkk
jcppkkk / install.sh
Created Nov 29, 2012 — forked from alvin2ye/install.sh
Automaticlly install pptpd on Ubuntu 12.04
View install.sh
# Authors: Alvin Ye
# Run by: curl -sL https://gist.github.com/1471830.txt | sudo bash
sudo apt-get install pptpd
sed -i 's/^logwtmp/#logwtmp/g' /etc/pptpd.conf
sed -i 's/^net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl.conf
sysctl -p
echo "localip 192.168.240.1" >> /etc/pptpd.conf
@jcppkkk
jcppkkk / Makefile
Created Jun 5, 2012 — forked from shafreeck/Makefile
Makefile example
View Makefile
all: hello
hello: hello.h
g++ -o hello hello.cpp
clean:
rm *.o hello
You can’t perform that action at this time.