Skip to content

Instantly share code, notes, and snippets.

View junian's full-sized avatar

Junian Triajianto junian

View GitHub Profile
@junian
junian / twitch-recorder.py
Last active October 14, 2024 06:01
Record Twitch Streams Automatically in Python
# This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch.
# You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html
# original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/
import requests
import os
import time
import json
import sys
import subprocess
@junian
junian / uninstall-vs-for-mac.sh
Last active January 25, 2019 22:04
Uninstall Visual Studio for Mac
#!/bin/sh
# based on guide from Microsoft https://docs.microsoft.com/en-us/visualstudio/mac/uninstall
# Uninstall Visual Studio for Mac
echo "Uninstalling Visual Studio for Mac ..."
sudo rm -rf "/Applications/Visual Studio.app"
rm -rf ~/Library/Caches/VisualStudio
rm -rf ~/Library/Preferences/VisualStudio
@junian
junian / simple-httpclient.py
Last active October 5, 2022 19:37
Simple HTTP server and client implementation in python
#!/usr/bin/env python
import httplib
import sys
#get http server ip
http_server = sys.argv[1]
#create a connection
conn = httplib.HTTPConnection(http_server)
@junian
junian / font-awesome-ie7.min.css
Created August 17, 2018 21:08 — forked from dorajistyle/font-awesome-ie7.min.css
Font Awesome 4.0.3 Internet explorer 7 support. Font Awesome not support IE7 officially. But sometimes we need to support IE7.
.fa-lg{font-size:1.3333333333333333em;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;vertical-align:middle;}
.nav [class^="fa-"],.nav [class*=" fa-"]{vertical-align:inherit;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;}.nav [class^="fa-"].fa-lg,.nav [class*=" fa-"].fa-lg{vertical-align:-25%;}
.nav-pills [class^="fa-"].fa-lg,.nav-tabs [class^="fa-"].fa-lg,.nav-pills [class*=" fa-"].fa-lg,.nav-tabs [class*=" fa-"].fa-lg{line-height:.75em;margin-top:-7px;padding-top:5px;margin-bottom:-5px;padding-bottom:4px;}
.btn [class^="fa-"].pull-left,.btn [class*=" fa-"].pull-left,.btn [class^="fa-"].pull-right,.btn [class*=" fa-"].pull-right{vertical-align:inherit;}
.btn [class^="fa-"].fa-lg,.btn [class*=" fa-"].fa-lg{margin-top:-0.5em;}
a [class^="fa-"],a [class*=" fa-"]{cursor:pointer;}
.fa-glass{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
.fa-music{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
.fa-se