Skip to content

Instantly share code, notes, and snippets.

Hogy ne csak negatívat írjak, szerintem valahogy így kellett volna összerakni:
- iCloud acc-hoz iCloud prefsbe devices szekció, ahol egyenként lehetne látni milyen hw van feliratkozva milyen szolgáltatásra, ezeket iCloud jelszóval lehetne törölni is
Handoff:
- iCloud prefsben az eszköz alatt kapcsoló, hogy ide engedem továbbítani az SMS-eimet és ugyanígy kapcsoló, hogy ide továbbítom a hívásaimat
- ugyanez a lista elérhető lenne az üzenetek és a telefon beállítások közt is
- OS X-en iCloud prefsben és iMessage prefsben ugyanez
- Facetime-ot OS X-en átnevezném Phone-ra, prefsbe mehet ugyanez
Continuity:
@gklka
gklka / gist:fe0d43ad27dda7e77eb3
Last active August 29, 2015 14:07
/etc/hosts
##
# 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
function get_the_relative_time($time = null){
if(is_null($time)) $time = get_the_time("U");
// $time_diff = date("U") - $time; // difference in second
/*
$second = 1;
$minute = 60;
$hour = $minute*60;
$day = $hour*24;
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
@gklka
gklka / gist:ffb06bc8e5e2066bf07c
Last active August 29, 2015 14:10
Kiírja a FUTÁR API-kat használva a Báthory utca megállóhelyről induló legközelebbi járatokat
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:
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.
/**
* Welcome to Pebble.js!
*
* This is where you write your app.
*/
var UI = require('ui');
var ajax = require('ajax');
var Vector2 = require('vector2');
//
// UIAlertAction+Extensions.m
//
// Created by GK on 15.09.17..
//
//
#import "UIAlertAction+Extensions.h"
@implementation UIAlertAction (Extensions)
#!/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
#!/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