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
/** | |
* author Remy Sharp | |
* url http://remysharp.com/tag/marquee | |
* pbhj 20120900: altered $marquee.attr('loop') to $marquee.prop('loop') as suggested in a comment on original github gist | |
*/ | |
(function ($) { | |
$.fn.marquee = function (klass) { | |
var newMarquee = [], | |
last = this.length; |
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
# python program to calculate pay | |
# pr4e exercise 3.1; pbhj | |
# assign variables to user values entered | |
# no checking yet | |
hrs = raw_input("Enter Hours: ") | |
h = float(hrs) | |
rate = raw_input("Enter Rate: ") | |
r = float(rate) |
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
s = float(raw_input("Enter a score between 0.0 and 1.0: ")) | |
# give grades for scores in range | |
# elif skips to end of else: | |
if s > 0.0 and s < 1.0: | |
if s >= 0.9: | |
print "A" | |
elif s >= 0.8: | |
print "B" | |
elif s >= 0.7: |
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/sh | |
#change these parameters in /etc/default/plexmediaserver | |
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 | |
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver | |
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 | |
export PLEX_MEDIA_SERVER_TMPDIR=/tmp | |
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" | |
test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver |
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
k1210:~$ cat /etc/init.d/plexmediaserver | |
#!/bin/sh -e | |
# upstart-job | |
# | |
# Symlink target for initscripts that have been converted to Upstart. | |
set -e | |
UPSTART_JOB_CONF="/etc/default/upstart-job" | |
INITSCRIPT="$(basename "$0")" |
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
# see https://gitlab.com/gwillem/public-snippets/snippets/28813 | |
# list of hosts in "null routed /etc/hosts" file format | |
# these hosts were considered to be running compromised software as of October 2016 | |
0.0.0.0 00-lawyer.com | |
0.0.0.0 1001-amulette.de | |
0.0.0.0 1001tablecloths.co.uk | |
0.0.0.0 1001tafelkleden.com | |
0.0.0.0 1010buybuy.com | |
0.0.0.0 1136500562.rsc.cdn77.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
#!/bin/bash | |
# this is a heavily modified version of "http://www.gwern.net/Archiving URLs" | |
# it should take the last ~1.1 months worth of bookmarks and make a local archive, | |
# using wget, of the pages that were bookmarked (or whose bookmark was altered). | |
# break on errors, see "help set" for info | |
set -e | |
# # copy places.sqlite locally | |
# cp --force $(find ~/.mozilla/ -name "places.sqlite") ./ |
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/sh | |
# take input from stdin and sort, remove duplicates and filter | |
set -e | |
cat /dev/stdin | sort | uniq | \ | |
# strip hash endings (will kill twitter) | |
sed -e "s/#.*//" | \ | |
# remove session id strings |
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
Zafira B | |
111306 | |
160638 | |
161450 | |
161600 | |
000000 + 8 flashes, then 3 flashes of engine check light | |
030300 | |
032500 | |
111306 |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G | |
CPU Family: 0x15 |
OlderNewer