Skip to content

Instantly share code, notes, and snippets.

@gklka
gklka / gist:5011530
Created February 22, 2013 07:37
beszeljukmac.com RSS fix
<?php
if ($_GET['url']) {
$url = $_GET['url'];
} else {
$url = "http://beszeljukmac.com/index.php/rss/hirek";
}
$page = file_get_contents($url);
$page = iconv("ISO-8859-2", "UTF-8", $page);
_completemarks() {
local curw=${COMP_WORDS[COMP_CWORD]}
local wordlist=$(find ~/.marks/ -type l -print | awk -F/ '{print $NF}')
COMPREPLY=($(compgen -W '${wordlist[@]}' -- "$curw"))
return 0
}
complete -F _completemarks jump unmark
Traceback (most recent call last):
File "manage.py", line 12, in <module>
execute_manager(settings)
File "/Users/gk-work/Documents/Aptana_Studio_Workspace/hegyibringa/TEST/lib/python2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/Users/gk-work/Documents/Aptana_Studio_Workspace/hegyibringa/TEST/lib/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/gk-work/Documents/Aptana_Studio_Workspace/hegyibringa/TEST/lib/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/gk-work/Documents/Aptana_Studio_Workspace/hegyibringa/TEST/lib/python2.6/site-packages/django/core/management/base.py", line 213, in execute
.pagination{display: table;margin: 0 auto;margin-top:12px;}
.pagination .prev, .pagination .last{display:block;float:left;color:#64717b;padding:0px 5px;font-weight:bold;position:relative;top:5px;}
.pagination ul{display:block;float:left;}
.pagination ul li{float:left;margin-right:2px;}
.pagination ul li a{float:left;font-size:11px;padding:5px 6px;color:#262262;border:1px solid #cad4e7;
background: #f3f5f7; /* Old browsers */
background: -moz-linear-gradient(top, #f3f5f7 0%, #f3f5f7 49%, #dfe4e8 50%, #dfe4e8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f3f5f7), color-stop(49%,#f3f5f7), color-stop(50%,#dfe4e8), color-stop(100%,#dfe4e8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f3f5f7 0%,#f3f5f7 49%,#dfe4e8 50%,#dfe4e8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f3f5f7 0%,#f3f5f7 49%,#dfe4e8 50%,#dfe4e8 100%); /* Opera 11.10+ */
{% if page_obj.has_next or page_obj.has_previous %}
<div class="pagination" id="pagination_{{ name }}">
{% if page_obj.has_previous %}
<a href="#" onclick="javascript:return loadPage_{{ name }}({{ page_obj.previous_page_number }});" class="prev">&lsaquo;&lsaquo; Előző</a>
{% else %}
<span class="disabled prev">&lsaquo;&lsaquo; Előző</span>
{% endif %}
<ul>
{% for page in page_obj.pages %}
{% if page %}
14.01.09. 8:38:05,399 Growl[527]: Unresolved error Error Domain=NSCocoaErrorDomain Code=1560 "Multiple validation errors occurred." UserInfo=0x7ff7aa795860 {NSDetailedErrors=(
"Error Domain=NSCocoaErrorDomain Code=1610 \"Priority is too large.\" UserInfo=0x7ff7aa782ec0 {NSValidationErrorObject=<GrowlHistoryNotification: 0x7ff7aa771190> (entity: Notification; id: 0x7ff7aa7ad0b0 <x-coredata:///Notification/tB736916F-D98B-4630-A5FA-852DC69D2AFB1421> ; data: {\n AppID = nil;\n ApplicationName = Twitter;\n Description = \"@missanngel na \\U00e9s a sz\\U00fanyogok?\";\n GrowlDictionary = \"{\\n AlreadyShown = 1;\\n ApplicationName = Twitter;\\n \\\"GNTP Notification Sent-By\\\" = Beast;\\n \\\"GNTP Origin-Machine-Name\\\" = Beast;\\n \\\"GNTP Origin-Platform-Name\\\" = \\\"Mac OS X\\\";\\n \\\"GNTP Origin-Platform-Versin\\\" = \\\"10.9.1\\\";\\n \\\"GNTP Origin-Software-Name\\\" = \\\"Growl.framework\\\";\\n \\\"GNTP Origin-Software-Version\\\" = \\\"2.0.1\\\";\\n \\\"GNTP
[self.filterState setObject:[NSNumber numberWithBool:![[self.filterState objectForKey:[NSNumber numberWithInt:type]] boolValue]]
forKey:[NSNumber numberWithInt:type]];
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;