Skip to content

Instantly share code, notes, and snippets.

View allthingsgo's full-sized avatar

Satoshi.Ye allthingsgo

View GitHub Profile
@denji
denji / Shadowsocks_With_V2Ray.md
Created May 9, 2019 14:57
Install Shadowsocks With V2Ray Manually

Installing Packages

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo apt-get install build-essential haveged -y
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install shadowsocks-libev -y
sudo apt-get install cron -y
sudo apt-get install screen -y

Install V2Ray

@masklinn
masklinn / cheatsheet.md
Last active June 18, 2024 17:54
launchctl/launchd cheat sheet

I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.

Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details

domains

Internally, launchd has several domains, but launchctl 1 would only ask for service names,

@neocogent
neocogent / gist:3f83c5bddecdf00d1a6a
Last active December 10, 2015 16:22
Using socketIO-client module to test the Bitpay Insight socket data.
#!/usr/bin/env python
#
# socketio client
#
import sys, logging
logging.captureWarnings(True)
#logging.basicConfig(level=logging.DEBUG)
@denji
denji / unbound-osx-homebrew.md
Last active November 27, 2022 08:33
Install unbound DNS(SEC) resolver on OS X, on the basis of https://www.spatof.org/blog/unbound-dns-resolver-on-osx.html
To install unbound you can use homebrew
$ brew install unbound ldns
Now we can edit the configuration file of unbound which by default is located in /usr/local/etc/unbound/unbound.conf:
@itsecureadmin
itsecureadmin / osx-adduser.sh
Created November 9, 2012 21:56
osx-adduser.sh
#!/bin/bash
#
# Author: Josh Miller
# Date: 11/06/2012
#
# ensure username was entered
user=$1
if [ -z ${user} ]