Skip to content

Instantly share code, notes, and snippets.

View HenryYang's full-sized avatar
:octocat:
!@#$%^&*()

HuangI Yang HenryYang

:octocat:
!@#$%^&*()
View GitHub Profile
@x43x61x69
x43x61x69 / .bash_profile
Last active May 21, 2018 10:14
Check SSL Certificate Info via Linux/macOS Command Line
# You can place this into '.bash_profile' to make it more accessible.
# sslstatus google.com:443
sslstatus()
{
echo
a=(${1//:/ })
PORT=443
if [ "${#a[@]}" -ne 2 ]; then
@dannvix
dannvix / NetflixSmallerSubtitles.js
Created February 4, 2018 09:06
Make the SVG-based subtitles smaller on Netflix web player
// Only applied for "image-based timed text" (i.e. SVG-based, like Chinese, Japanese, ...)
// For DFXP-based subtitles (e.g., English), try the hidden settings: https://www.netflix.com/SubtitlePreferences
(() => {
const installScaler = () => {
const subRectElem = document.querySelector('rect.image-based-subtitles-rect');
if (subRectElem) {
const subWrapperElem = subRectElem.parentNode;
const MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
const config = {attributes: true, childList: true, characterData: true, };
@x43x61x69
x43x61x69 / Spotify.txt
Created January 14, 2018 14:18
Spotify Ads/Tracking Domains
adeventtracker.spotify.com
spclient.wg.spotify.com
d3rt1990lpmkn.cloudfront.net
adjust.com
doubleclick.net
googleadservices.com
googlesyndication.com
googletagmanager.com
googletagservices.com
google-analytics.com
@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@dschuetz
dschuetz / make_passbook.py
Created May 31, 2014 03:43
Simple hack to create Passbook .pkpass file
import sys, os.path, hashlib, re
import zipfile
import subprocess
from StringIO import StringIO
from io import BytesIO
#
# Passbook Hack
# David Schuetz
# 30 May 2014