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 bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09 | |
# | |
# _______________| netspeed : check download speed via command line. | |
# | |
# Usage: netspeed [tokyo, london, usw, use, east, west, URL] | |
# ^default U.S. west coast. | |
# [ -speed_KB/sec ] | |
# ^negation activates the Mbps converter. | |
# |
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 | |
/usr/bin/getmail -r /home/USER/.getmail/getmail.rc | |
mailpath=/home/USER/mailpath | |
tmpdir=$(mktemp -d) | |
echo "########################################################" | |
for i in $mailpath/new/*; do | |
if [ -f $i ]; then |
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 | |
# I have both the interface and external ip echoed to conky, so I had a version of this script already. | |
# This version is for autolaunch, so it presents a nice popup browser if it can't resolve its own IP | |
# address (such as for places that have public wifi and "click here". | |
# This version is designed to start up with the GUI interface, not as a system | |
# service! So if you use it with WICD, do not do it as an ifup command, otherwise | |
# you will have issues because it can't launch the browser. |
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 | |
# Quite a bit of inspiration from https://gist.github.com/brycied00d/1190483 | |
# I have a lot of backgrounds, and a laptop. I use xinarama, so my DISPLAY is always 0:0 | |
# But I wanted to have one randomizer that used feh (2.9.3 is the version I have) but actually showed resolution-appropriate images. | |
# I also wanted to be able to select the color - "tiled", "orange", "blue", "black", "simple", "wide" (hooray for symlinks) at times. | |
# Uses xrandr to see if there is an HDMI monitor attached (which in my use cases always means I am rocking two monitors | |
#sets background |
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 | |
# usage: | |
if [ -f "$1" ]; then | |
file=$(basename "$1") | |
filename=${file%.*} | |
pandoc "$1" -V geometry:margin=1in -s -o "$filename".odt | |
lowriter "$filename".odt | |
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 | |
# requires mpc to get song info | |
# requires glyr https://github.com/sahib/glyr to retrieve metadata | |
# requires eyeD3 http://eyed3.nicfit.net/ to extract image from mp3 | |
# uses xseticon, wmctrl, and transset to make its little terminal window all pretty. Feel free to delete these lines. | |
snark=$(echo $WINDOWID) | |
xseticon -id $snark ~/.icons/Faenza-Like/iKamasutra.png |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://ogp.me/ns/fb#" lang="en" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta property="og:url" content="/libri-1437-462-szanse_i_perspektywy_polskiej_gospodarki_w_unii_europejskiej/" /> | |
<meta property="og:description" content="Szanse I Perspektywy Polskiej Gospodarki W Unii Europejskiej. Author: Eulalia Skawinska. Pages: 1203. Format: pdf, epub, fb2, txt" > | |
<meta name="keywords" content="Szanse I Perspektywy Polskiej Gospodarki W Unii Europejskiej by Eulalia Skawinska,Szanse I Perspektywy Polskiej Gospodarki W Unii Europejskiej"/> | |
<meta property="og:type" content="article" /> | |
<meta name="Generator" content="Drupal 7 (http://drupal.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
#! /usr/bin/env python | |
import sys | |
from optparse import OptionParser | |
import mutagen | |
from mutagen.apev2 import APEv2 | |
from mutagen.id3 import ID3, TXXX | |
def convert_gain(gain): | |
if gain[-3:] == " dB": | |
gain = gain[:-3] |
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 | |
dir=$(echo "$PWD") | |
for f in * | |
do | |
if [ -f "$f" ];then | |
# this is redundant due to how I'm searching, but why not? | |
filename=$(basename "$f") | |
extension="${filename##*.}" |
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 | |
# Exactly as found from https://ubuntuforums.org/showthread.php?t=1609575 | |
# Except I added in where if you chose a directory, it'll pic a random | |
# picture from it. | |
## Picture frame via conky | |
## Author: Anjishnu Sarkar | |
## TODO: |