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 | |
# 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
#!/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
#!/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
#!/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
#!/usr/bin/python2.7 | |
# normalize and publish weather sensor readings to thingspeak | |
from time import sleep | |
import datetime | |
import serial # install pySerial | |
import paho.mqtt.client as mqtt | |
import sys | |
SERIAL_PORT = sys.argv[2] if len(sys.argv) > 2 else '/dev/ttyUSB1' |
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
/** | |
* @author Hamid Zare | |
* @email hamid.zare@vanderbilt.edu | |
*/ | |
// the program would have been much faster and easier to write if the | |
// pagination was predictabe, meaning that I could grab the nth page directly | |
// in that case it would have been possible to fire all the request concurrently | |
// (after gettig the first response) |
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/sh | |
# If you are new to arch, I encourage you to at least read and understand what | |
# this script does befor blindley running it. | |
# That's why I didn't make a one-liner out of it so you have an easier time | |
# reading and understanding it :) | |
# | |
# This scripts purpose is purly to save you a few seconds on your new installation. | |
# | |
# Enjoy your time on an awesome system. Arch FTW! |
OlderNewer