Skip to content

Instantly share code, notes, and snippets.

View githubhjs's full-sized avatar

Chih-Hsueh "Josh" Huang githubhjs

View GitHub Profile
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
@githubhjs
githubhjs / steam_console_params.txt
Last active August 29, 2015 14:26 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-bigpicture - Start in Steam Big Picture mode
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-complete_install_via_http - Run installation completion over HTTP by default
-console -
-cybercafe - Forces cyber cafe mode for debugging
-debug_steamapi - enables logging of Steam API functions
@githubhjs
githubhjs / ida_dump.c
Created March 20, 2016 10:48 — forked from cra0kalo/ida_dump.c
CSGO Decrypt Overwatch
char __thiscall sub_104E1A10(int this, const char *a2, int a3, int a4)
{
int v4; // eax@1
int v5; // edx@2
int v6; // ecx@2
int v7; // eax@5
void *v8; // esp@8
signed int v9; // esi@9
unsigned __int32 v10; // eax@11
int v11; // esi@11
@githubhjs
githubhjs / giveaway_su_captcha_helper.user.js
Created June 20, 2017 02:31 — forked from stackia/giveaway_su_captcha_helper.user.js
giveaway.su 验证码辅助输入脚本
// ==UserScript==
// @name giveaway.su 验证码输入辅助
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 自动识别验证码+验证码输入键盘,必须安装 Liana 字体方可正常使用
// @author Stackia
// @require https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// @match https://giveaway.su/giveaway/view/*
// @updateURL https://gist.githubusercontent.com/stackia/5e6fc0a3f1196042c1075109dd149825/raw/giveaway_su_captcha_helper.user.js
// @downloadURL https://gist.githubusercontent.com/stackia/5e6fc0a3f1196042c1075109dd149825/raw/giveaway_su_captcha_helper.user.js
@githubhjs
githubhjs / Migration.js
Created July 14, 2017 03:48 — forked from stevebrun/Migration.js
A script for migrating the primary domain of a Google Apps account.
// migrate the script executer's primary domain
// domainName - the desired domain to migrate to
function migrateDomain(organizationName, domainName) {
var customerId = 'my_customer';
var customer = AdminDirectory.Customers.get(customerId);
customer.customerDomain = domainName;
customer.postalAddress.organizationName = organizationName;
customer.customerCreationTime = undefined; //
AdminDirectory.Customers.patch(customer, customerId);
@githubhjs
githubhjs / Connect-to-Android-WebDAV-Server.md
Created January 22, 2018 03:11 — forked from akaleeroy/Connect-to-Android-WebDAV-Server.md
Access phone storage over WiFi with WebDAV Server for Android

Access phone storage over WiFi

Batch file to map your Android phone as network drive in Windows.

Preview of Phone.cmd usage

Requirements

@githubhjs
githubhjs / SimpleHTTPServerWithUpload.py
Created December 9, 2018 04:51 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
[index]
[#1]前言
[#2]游戏
[#3]衍生游戏
[#4]书籍-非小说
[#5]小说
[#6]影视以及动画
[#7]漫画
[/index]
[size=4][b]可以转载、但转载[color=Red]请高亮[/color]注明来源链接以及作者、并在转载后将帖子链接用[color=Red]短消息[/color]发给我[/b][/size]
@githubhjs
githubhjs / gitk
Created June 15, 2020 06:40 — forked from RootKiller/gitk
gitk dark theme
set mainfont {{Open Sans} 10}
set textfont {Consolas 9}
set uifont {Tahoma 9 bold}
set tabstop 8
set findmergefiles 0
set maxgraphpct 50
set maxwidth 16
set cmitmode patch
set wrapcomment none
set autoselect 1
@githubhjs
githubhjs / nycu-oauth-document.md
Created October 24, 2022 07:17 — forked from yuchingtw/nycu-oauth-document.md
陽明交通大學 OAuth 服務 - 開發者說明文件

陽明交通大學 OAuth 服務 - 開發者說明文件

這裡會介紹如何透過陽明交通大學 OAuth 服務獲取使用者資訊。本平台是依據 OAuth 2.0 (RFC6749) 的標準開發,目前僅開放 Authorization Code 方式來認證。

開放欄位

  • Email
  • 內容:Email, 帳號名稱