Skip to content

Instantly share code, notes, and snippets.

View tang3w's full-sized avatar

Tianyong Tang tang3w

View GitHub Profile
@tang3w
tang3w / podbot.md
Created June 3, 2017 09:52 — forked from matheusagcosta/podbot.md
Podbot Counter Strike 1.6 on Mac OSX

1 - Make sure you have Counter Strike installed

2 - Download YAPB http://forums.bots-united.com/showthread.php?t=9986

3 - Extract the zip and move the folder addons with all the content to ~/Library/Application Support/Steam/steamapps/common/Half-Life/cstrike

4 - After that, open the file liblist.gam and replace gamedll_osx "dlls/cs.dylib" with this content:

//gamedll_osx "dlls/cs.dylib"
@tang3w
tang3w / fish_prompt
Created April 29, 2017 08:13 — forked from artemeff/fish_prompt
My fish prompt
# ~/.config/fish/functions/fish_prompt.fish
# name: Robbyrussell edited
# author: Bruno Ferreira Pinto, edit by Yuri Artemev
function fish_prompt
if not set -q -g __fish_robbyrussell_art_functions_defined
set -g __fish_robbyrussell_art_functions_defined
function _git_branch_name
echo (git rev-parse --abbrev-ref HEAD ^/dev/null)
@tang3w
tang3w / Hotfix podspec for AVOSCloud-tvOS
Created February 2, 2016 08:53
AVOSCloud-tvOS-v3.2.2.podspec
Pod::Spec.new do |s|
platform = 'AVOSCloud'
s.name = "AVOSCloud-tvOS"
s.version = "3.2.2"
s.platform = :tvos, "9.0"
s.tvos.deployment_target = "9.0"
s.summary = "LeanCloud tvOS SDK for mobile backend."
s.homepage = "https://leancloud.cn"
s.documentation_url = "https://leancloud.cn/api-docs/iOS/index.html"
#!/usr/bin/env node
var fs = require('fs');
var gm = require('gm');
var argv = require('optimist')
.demand(1)
.demand('l')
.alias('l', 'label')
.describe('l', 'Specify a label')
.argv;
#!/usr/bin/env node
var fs = require('fs');
var gm = require('gm');
var argv = require('optimist')
.demand(1)
.demand('l')
.alias('l', 'label')
.describe('l', 'Specify a label')
.argv;
class A
@@a = 1
def run
puts @@a
end
end
@@a = 2
#!/bin/bash
# Modified by Tianyong Tang
#
# Original version's Copyright infomation:
#
####################################################
# #
# This is a Shell-Based tool of l2tp installation #
# Version: 1.2 #