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
#System update | |
pacman -Syu #full upgrade of pacman packages | |
yaourt -Syu --devel --aur #full upgrade of aur packages installed with yaourt | |
#Package management | |
pacman -S package #Installs package | |
pacman -Ss package #Finds package | |
pacman -Sy #Updates package list | |
pacman -Qa #List packages installed from AUR | |
yaourt -S package #Installs AUR package |
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
@echo off | |
for %%f in (%cd%\*.class) do ( | |
echo #### Running %%~nf #### | |
java %%~nf | |
echo. | |
echo.) | |
set /p end="Press anything to exit!" |
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
emotion :+1: :-1: :clap: :heart: :sparkles: :v: :zzz: | |
icon :new: :ok: :cool: :vs: :tm: :warning: :wheelchair: :zap: :art: :bomb: :bulb: :key: :lock: :memo: :mag: | |
item :book: :gift: :moneybag: :mega: :scissors: :hammer: | |
device :computer: :iphone: :calling: :email: | |
human :cop: :runner: :feet: :fist: :punch: :lipstick: :tophat: | |
food :beer: :cake: :smoking: | |
behicle :airplane: :bike: :bus: :ski: :taxi: :train: | |
animal :bear: :fish: :octocat: | |
nature :fire: :leaves: :star: :sunny: |
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
wikipedia.org,wiktionary.org,wikibooks.org,wikinews.org,wikiquote.org,wikisource.org,wikiversity.org,wikivoyage.org,wikimedia.org,mediawiki.org,wikidata.org |
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
# to ~/.bashrc | |
#src2pdf | |
src2pdf () { | |
local noext="${1%.*}" | |
pygmentize -O full -o "$noext.html" "$1" | |
# enabling line wrapping in <pre> blocks | |
perl -i -wpe '/<style.*>$/&&($_.="pre{white-space:pre-wrap;}\n")' "$noext.html" | |
wkhtmltopdf -s letter "$noext.html" "$noext.pdf" | |
rm "$noext.html" |
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
# Maintainer: danyf90 <daniele.formichelli@gmail.com> | |
# Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu> | |
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com> | |
# Contributor: Christoph Brill <egore911-at-gmail-dot-com> | |
# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> | |
# Contributor: Tad Fisher <tadfisher at gmail dot com> | |
pkgname=android-studio | |
pkgver=2.2.3.0 | |
pkgrel=1 |
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 | |
import re | |
from datetime import datetime, timezone, timedelta | |
from bs4 import BeautifulSoup | |
import requests | |
# **** CONFIGURATION PARAMS **** | |
mytru_username = "" # MyTRU username | |
mytru_password = "" # MyTRU password |
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 | |
input="${@:1}" | |
if echo "${@:1}" | grep ","; then | |
curl -s --user 'api:key-WHATEVER' \ | |
https://api.mailgun.net/v3/DOMAIN_NAME/messages \ | |
-F from='Transcript Bot <mailgun@DOMAIN_NAME>' \ | |
-F to='RECEIVER' \ | |
-F subject='Change in Transcript Marks for Current Session' \ | |
-F text="$input" | |
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 | |
mytru_output="$(./mytru-cli.py)" | |
until echo "$mytru_output" | grep ","; | |
do | |
echo "$(date)" | |
sleep 1h | |
mytru_output="$(./mytru-cli.py)" | |
done | |
echo "$mytru_output" | xargs sh mail.sh |
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/env python2.7 | |
# Queries nfldb for the team & position of a player | |
import nfldb | |
import sys | |
db = nfldb.connect() | |
q = nfldb.Query(db) | |
if len(sys.argv) < 2: | |
argument = raw_input("Enter player name: ") | |
else: |
OlderNewer