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
Active Profiles: | |
Battery Power -1 | |
AC Power -1* | |
Currently in use: | |
standbydelay 10800 | |
standby 1 | |
womp 0 | |
halfdim 1 | |
hibernatefile /var/vm/sleepimage | |
darkwakes 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
import urllib2 | |
import json | |
import datetime | |
def find_start_time(datas, identifier): | |
if datas.has_key('data'): | |
if datas['data'].has_key('entry'): | |
if datas['data']['entry'].has_key('stopTimes'): | |
for stopTime in datas['data']['entry']['stopTimes']: | |
if stopTime['tripId'] == identifier: |
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
root@hitchcock:~# cat /etc/apt/sources.list | |
# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://hu.archive.ubuntu.com/ubuntu/ utopic main restricted | |
deb-src http://hu.archive.ubuntu.com/ubuntu/ utopic main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. |
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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
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
#hcdb { | |
display: none; | |
} | |
div.hird_120 { | |
display: none; | |
} | |
body.terkep { | |
padding-top: 0 !important; |
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
/** | |
* Welcome to Pebble.js! | |
* | |
* This is where you write your app. | |
*/ | |
var UI = require('ui'); | |
var ajax = require('ajax'); | |
var Vector2 = require('vector2'); |
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
from pync import Notifier | |
import urllib2 | |
import time | |
ip = None | |
while True: | |
response = urllib2.urlopen('http://ip1.dynupdate.no-ip.com') | |
new_ip = response.read() | |
# print new_ip |
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
// | |
// UIAlertAction+Extensions.m | |
// | |
// Created by GK on 15.09.17.. | |
// | |
// | |
#import "UIAlertAction+Extensions.h" | |
@implementation UIAlertAction (Extensions) |
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 | |
curl -X POST -u "user:pass" -H "Content-Type: application/json" --data "{\"alert\": \"Download complete: $TR_TORRENT_NAME\", \"url\": \"http://url-ami-forwardol-a-transmission-url-edre\"}" https://go.goroost.com/api/push |
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 | |
for f | |
do | |
scp -P PORTOD $f USERED@HOSTOD:/mnt/disk2/Plex/Download/ | |
if [ $? -eq 0 ] | |
then | |
mv $1 ~/.Trash/ | |
/usr/local/bin/terminal-notifier -message "$f" -title "Successful upload" -open "http://TRANSMISSION-OD-URL-JE" | |
else |