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 | |
| function extract_images() { | |
| # Disk images have a string like this | |
| # | |
| # DISK-1.IMA: , MS or PC-DOS bootloader IO.SYS+MSDOS.SYS | |
| # | |
| # | |
| dest=$1 | |
| file *.IMA | grep 'PC-DOS' | awk -F '[/:]' '{print $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
| """ | |
| Well ... this isn't the nicest port, I tried a second time with all the comments, but it didn't seem to work | |
| - the 2nd version is here https://gist.github.com/stuaxo/5c641637f65a53cc8020 | |
| Instead of webgl uses pyopengl | |
| Instead of glm uses pyrr | |
| Install Dependencies | |
| pip install numpy pyopengl pyrr |
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
| """ | |
| This is a port of the mozilla webgl-sample5 to pyopengl | |
| I made this from scratch to more closely follow the original and includes all the comments... except it | |
| just has a black screen :/ | |
| The working, but more dirty version is here: | |
| https://gist.github.com/stuaxo/ed0b5bd691f766098faf | |
| Instead of webgl uses pyopengl |
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 | |
| ## Heavily based on the android-sdk installed at https://gist.github.com/tahl/1026610 | |
| # Uses dtrx to extract the archive with a sane name | |
| # Creates a symlink in /usr/local/asio-sdk to the version installed | |
| i=$(cat /proc/$PPID/cmdline) | |
| if [[ $UID != 0 ]]; 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
| $ python test_resize.py | |
| [INFO ] [Logger ] Record log in /home/stu/.kivy/logs/kivy_15-09-09_19.txt | |
| INFO:kivy:[Logger ] Record log in /home/stu/.kivy/logs/kivy_15-09-09_19.txt | |
| [INFO ] [Kivy ] v1.9.1-dev | |
| INFO:kivy:[Kivy ] v1.9.1-dev | |
| [INFO ] [Python ] v2.7.9 (default, Apr 2 2015, 15:33:21) | |
| [GCC 4.9.2] | |
| INFO:kivy:[Python ] v2.7.9 (default, Apr 2 2015, 15:33:21) | |
| [GCC 4.9.2] | |
| [INFO ] [Factory ] 177 symbols loaded |
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/python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| get input from a real APC mini and display it on. | |
| usage | |
| ----- | |
| $ python apc_mini.py "APC MINI MIDI 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 | |
| mkdir stdeb-pubsub | |
| pushd stdeb-pubsub | |
| virtualenv env | |
| git clone https://github.com/nehz/pubsub | |
| pushd pubsub | |
| ../env/bin/pip install stdeb |
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 | |
| """ | |
| rerun - kill and rerun subprocess on recieving HUP signal. | |
| $ rerun myproc | |
| In another terminal restart using | |
| $ kill rerun:myproc -HUP |
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
| PGI coverage of AccountsService | |
| gi.repository.AccountsService AccountsService | |
| User OK | |
| UserAccountType OK | |
| UserClass OK | |
| UserManager OK | |
| UserManagerClass OK | |
| UserManagerError OK | |
| UserManagerPrivate OK | |
| UserPasswordMode OK |
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
| $ debuild -uc -us | |
| dpkg-buildpackage -rfakeroot -D -us -uc | |
| dpkg-buildpackage: source package cairo | |
| dpkg-buildpackage: source version 1.14.2-2ubuntu2 | |
| dpkg-buildpackage: source distribution wily | |
| dpkg-buildpackage: source changed by Robert Ancell <[email protected]> | |
| dpkg-source --before-build cairo-1.14.2 | |
| dpkg-buildpackage: host architecture amd64 | |
| fakeroot debian/rules clean | |
| dh clean --with autoreconf |