This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SwitchyOmega Conditions] | |
; Require: SwitchyOmega >= 2.3.2 | |
; Date: 12/21/2016 | |
; Usage: https://github.com/FelisCatus/SwitchyOmega/wiki/RuleListUsage | |
*.digitaltrends.com | |
*.krxd.net | |
*.pinterest.com | |
*.costco.com | |
*.att.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# File: rev-youtube-playlist-urls.sh | |
# Description: This (bash) script takes a youtube playlist URL as argument and outputs title and URL of each video (in playlist) in reverse order (i.e. starting from last video in playlist) | |
# Author: Amber Jain | |
# Check if "only one" argument (playlist_url) passed as input: | |
if [ "$#" -lt "1" ] | |
then | |
echo "Invalid! You must pass playlist_url as argument" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REGEX="^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*" | |
ID=$1 | |
if [ "$ID" == "" ]; | |
then | |
echo "Syntax $0 <id|url>" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# pass a uri as an argument to play | |
curl -s --data-ascii '{"jsonrpc":"2.0","id":"1","method":"Application.SetVolume","params":{"volume":70}}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc | |
curl -s --data-ascii '{"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"'$1'"}}}' -H 'content-type: application/json;' http://hpi:8080/jsonrpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# rename each student's readmefile to his/her score and save to a single directory | |
# depends on these tools: bash, file, grep, unzip, sed | |
#relative output file address | |
output='readmes.txt' | |
echo '' > $output | |
for filename in *.*; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#python3 | |
import urllib.request | |
from urllib.parse import quote | |
import json | |
# configs | |
YOUTUBE_API='update me' | |
KODI_ADDRESS = 'http://localhost:8080' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#python3 | |
import urllib.request | |
from urllib.parse import quote | |
import json | |
import sys | |
# configs | |
YOUTUBE_API='update me' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# description: basic arch setup script, pass in the a part eg: ./archSetup.sh p1 | |
# assumptions: | |
# UEFI + GPT | |
# partitions: esp root swap (no lvm) | |
# alert: dont format esp partition if dual booting the system | |
# argument: #1: p1 or p2 | |
# init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#python3 | |
import urllib.request | |
from urllib.parse import quote | |
import json | |
import sys | |
# configs | |
YOUTUBE_API='updateme' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub PullRequests Plus | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3.0 | |
// @updateURL https://gist.githubusercontent.com/hamidzr/3167e68addb1bf69eef425348ae35c90/raw | |
// @description Displays a bunch of usefull information next to the github pullrequests such as diff stats and latest comments | |
// @author Hamid Zare @hamidzr | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.25.0/babel.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.min.js |
OlderNewer