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 python | |
""" | |
ODT2PANDOC | |
========== | |
ODT2PANDOC is a slight variant of ODT2TXT. Right now, the only differences are that it generates ATX style headers and uses *asterisks* for italics, neither of which is in any way specific to pandoc's extended markdown. | |
ODT2TXT | |
======= |
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
from lxml import etree | |
cards="http://yugioh.wikia.com/api.php?format=xml&action=query&list=categorymembers&cmtitle=Category:OCG_cards&cmprop=title&cmlimit=5000" | |
ignore=set(["List of unnamed cards", "List of unseen cards"]) | |
cmcontinue="" | |
titles=[] | |
querycount=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
#!/usr/bin/openrc-run | |
depend() { | |
need localmount | |
after net | |
} | |
start() { | |
/usr/lib/systemd/scripts/dkms start | |
} |
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 | |
if [[ -z $@ ]]; then | |
echo 'packages list is missed' | |
echo 'run ./import-to-aur4.sh pack1 pack2 pack3' | |
exit | |
fi | |
mkdir aur4 | |
cd aur4 |
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
from chronoslnxlib.core import * | |
def predict_voc(cur_date): | |
cycles = date_to_moon_cycles(cur_date) | |
moon_pos = swisseph.calc_ut(datetime_to_julian(cur_date), swisseph.MOON)[0] | |
closest_sign = (( moon_pos // 30 ) + 1) * 30 | |
lower_sign = ( moon_pos // 30 ) * 30 | |
#print(moon_pos, closest_sign) | |
lower_cycles = cycles+(angle_sub(lower_sign, moon_pos)/360) | |
cycles += (closest_sign - moon_pos) / 360 |
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 | |
happened=1 | |
for window in $(recsel_windows.py -l -c 0,0.5,1,0.6) | |
do | |
happened=0 | |
xdotool windowactivate --sync $window key "$1" | |
done | |
if [ $happened -a -n "$2" ];then |
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 | |
for num in {0..15};do | |
color="$(grep "^color${num}\s\+" "${1:-${HOME}/.config/termite/config}"|grep -o "[0-9a-f]\{3,6\}$")" | |
rhex="${color:0:2}" | |
ghex="${color:2:2}" | |
bhex="${color:4:2}" | |
r="$((0x${rhex}))" | |
g="$((0x${ghex}))" |
Welcome! You've likely stumbled across this wondering, "What the heck is this?"
It's a gist of all the patches I've applied to my personal copy of compiz (likely will try to port these to fusilli too). Here's what they do:
emerald_no_rmenu.patch
: Disable the right-click menu in the decorations. It's rather unsightly since that menu is not as configurable as Compiz-Boxmenu. On an interesting note, when I disabled this, it also disabled Compiz showing