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/sh | |
if [ ! $@ ]; then | |
echo "Need OpenELEC archive file. Exiting!" | |
exit 0 | |
fi | |
if [ ! `which mksquashfs` ]; then | |
echo "Your system doesn't seem to have squashfs-tools installed" | |
echo "You can install this package with:" |
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 | |
if isinstance(0xffffffff, long): | |
print("%2d\n" % 32) | |
else: | |
print("%2d\n" % 64) |
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
import socket | |
import httplib | |
import StringIO | |
class SSDPResponse(object): | |
class _FakeSocket(StringIO.StringIO): | |
def makefile(self, *args, **kw): | |
return self | |
def __init__(self, response): | |
r = httplib.HTTPResponse(self._FakeSocket(response)) |
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
var dgram = require('dgram'); // dgram is UDP | |
// Listen for responses | |
function listen(port) { | |
var server = dgram.createSocket("udp4"); | |
server.on("message", function (msg, rinfo) { | |
console.log("server got: " + msg + " from " + rinfo.address + ":" + rinfo.port); | |
}); |
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
--- dsdt.dsl 2014-01-18 23:48:44.755559000 +0200 | |
+++ dsdt.dsl.fix 2014-01-19 00:54:41.522926000 +0200 | |
@@ -1459,6 +1459,10 @@ | |
Return (Zero) | |
} | |
} | |
+ Else | |
+ { | |
+ Return (Zero) | |
+ } |
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
[Nemo Action] | |
################################### | |
#### DEBUGGING: | |
#### | |
#### Run Nemo with the environment | |
#### variable NEMO_ACTION_VERBOSE | |
#### set to get useful log output | |
#### for debugging your actions | |
#### Sample file: |
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
[Nemo Action] | |
################################### | |
#### DEBUGGING: | |
#### | |
#### Run Nemo with the environment | |
#### variable NEMO_ACTION_VERBOSE | |
#### set to get useful log output | |
#### for debugging your actions | |
#### Sample file: |
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 | |
import os | |
import shutil | |
import requests | |
import subprocess | |
import re | |
from bs4 import BeautifulSoup as BS4 | |
HOME_FOLDER = os.path.expanduser('~') |
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
[Desktop Entry] | |
Type=Application | |
Exec=natgeo-photo_of_the_day.py | |
Hidden=false | |
NoDisplay=false | |
X-GNOME-Autostart-enabled=true | |
Name=NatGeo Photo of the day - Wallpaper | |
Comment=Auto wallpaper changer for National Geographic - Photo of the day |
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/sh | |
# https://community.wd.com/t/guide-auto-removal-of-downloads-from-transmission-2-82/93156 | |
# script to check for complete torrents in transmission folder, then stop and move them | |
# either hard-code the MOVEDIR variable here… | |
# MOVEDIR=/home/amhiserver/.box # the folder to move completed downloads to | |
# …or set MOVEDIR using the first command-line argument | |
# MOVEDIR=%1 | |
# | |
# auth | |
# port, username, password |
OlderNewer