This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Web; | |
/* | |
MIT License | |
Copyright (c) 2014 Christian Weyer |
This file contains hidden or 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 | |
# install AUR packages with cower | |
cd $HOME/build/aur && cower -d "$1" | |
builddir="$_" | |
cd "$builddir" && ${EDITOR:-nano} PKGBUILD | |
makepkg -sirc && cd - &>/dev/null | |
read -p "Remove Build directory? [Y/n]? " yn |
This file contains hidden or 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 | |
# (1) prompt user, and read command line argument | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
yellow=`tput setaf 3` | |
printf %"s\n" | |
printf %"s\n" | |
tput setaf 3 | |
blue=`tput setaf 4` |
This file contains hidden or 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 | |
## script to blink the led on thinkpads | |
sudo chmod 666 /sys/class/leds/tpacpi\:\:thinklight/brightness | |
sudo echo 255 > /sys/class/leds/tpacpi\:\:thinklight/brightness | |
sleep 1 | |
sudo echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness | |
sleep 1 | |
sudo echo 255 > /sys/class/leds/tpacpi\:\:thinklight/brightness | |
sleep 1 |
This file contains hidden or 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 | |
# free keys complements of pastebin, and wtf goofle why AIza | |
keylist=( | |
"AIzaSyAafvOlmpO-nhRMdTKhwcK2jVQ8XeZwBfg" | |
"AIzaSyAAW1uwHofZ7c1zxl75u0flELX5PMs2LvM" | |
"AIzaSyA8OmKcw2DMNkJicyCJ0vqvf90xgeH52zE" | |
"AIzaSyBSnh-sIjd97_FmQVzlyGbcaYXuSt_oh84" | |
"AIzaSyBBcXtLP34Evs2rrdvYyZ63qbY36bQ96wk" | |
"AIzaSyCQu8QRr-9H_qyWvbXpL6jseGthkd1VCtw" |
This file contains hidden or 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/python | |
import os | |
if os.getenv('VIRTUAL_ENV'): | |
print('Virtualenv Is Active') | |
else: | |
print('Virtualenv Is Not Active') | |
This file contains hidden or 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/env bash | |
# deps: sacad feh fancy_audio [rubygem] | |
# opt deps: optipng jpegoptim | |
tput setaf 5 | |
read -p "enter name of artist album art: " artist | |
tput setaf 1 | |
read -p "enter name of the album requiring art: " album | |
tput setaf 6 | |
~/venv/bin/sacad -v normal "${artist}" "${album}" 150 ~/"${album}.jpg" | |
read -p "View Downloaded Album Art $fehview? [yn] " answer |