Skip to content

Instantly share code, notes, and snippets.

View orymate's full-sized avatar

Máté Őry orymate

  • Budapest, Hungary
  • 02:52 (UTC +02:00)
View GitHub Profile
/* cat *css* | grep Courier | sed 's/{.*$//' | tr '\n' ',' */
pre,code,#readme div.plain pre,.blob-editor textarea,.add-pill-form textarea.key_value,#code_search_instructions table.instruction tr td.inst,#code_search_results .result .snippet,.commit-ref,#compare .commits code,#compare .commits tr.merge td.author,#compare .commits tr.merge td.date,#facebox p.commit-id,#forkqueue table td.sha,#forkqueue table td.message,#forkqueue table td.human,#forkqueue table.choice td.code,#repos .repo .commit .machine,input.url-field,#commit .human .message,#commit .machine,#commit .commit_oneline .commit,#commit .commit_oneline .tree,#toc,#browser table,#files .file .meta .info,#files .file .data pre,#files .file .line-data,#files .file .line-number,#files .file .data td.line_numbers,#files .meta .bubble,.news pre,.news code {font-family:monospace!important;}
Linuxos signum.h-ból:
SIGHUP Hangup (POSIX). Bontás angolul is értelmetlen már, így rövid
SIGINT Interrupt (ANSI). Kilépés rendkívüli kilépés, ignorálható, szabályos
SIGQUIT Quit (POSIX). Abbahagyás? ne legyen INT vagy TERM. mi használja? ^\ küldi
SIGILL Illegal instruction (ANSI). Érvénytelen utasítás wtf?
SIGTRAP Trace trap (POSIX). Nyomkövetőcsapda ?
SIGABRT Abort (ANSI). Abortálás szerintem így érti, aki használja. lásd abort(3)
SIGIOT IOT trap (4.2 BSD). IOT csapda wtf?
SIGBUS BUS error (4.2 BSD). Buszhiba
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Usage: rotate (rot|ar)" >&2
exit 10
fi
set -v
cd /home/maat/Maildir/ || exit 1
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt autocd extendedglob nomatch notify
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/maat/.zshrc'
#!/bin/bash
trap 'killall speaker-test; exit' INT
cat <<A
usage: 'j': +10Hz
'k': -10Hz
'J': -100Hz
'K': +100Hz
A
@orymate
orymate / gist:703479
Created November 17, 2010 15:14
hszk vpn
[main]
Description=hszk vpn
Host=ravpn.bme.hu
AuthType=1
GroupName=BME
GroupPwd=WolfgangAmadeus
EnableISPConnect=0
ISPConnectType=0
ISPConnect=
ISPCommand=
@orymate
orymate / gist:723157
Created December 1, 2010 08:29
Krisz levele zh után
Date: Tue, 30 Nov 2010 15:47:47 +0100
From: Németh Krisztián <[email protected]>
To: [email protected], [email protected]
Subject: [info2008] THSz ZH bónusz kérdések, válaszok
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.12)
Gecko/20101027 Thunderbird/3.1.6
Sender: [email protected]
/Kedves Kollégák!/
@orymate
orymate / Makefile
Created December 7, 2010 19:18 — forked from erenon/Makefile
C_SRCS += \
./library.c \
./functions.c \
./konyvtar.c
OBJS += \
./library.o \
./functions.o \
./konyvtar.o
@orymate
orymate / lcd.c
Created December 21, 2010 12:22
/* based on http://goo.gl/ArZG6 */
#define X )*2+1
#define _ )*2
#define s ((((((((0 /* 8 parens for 8 bit, 16 for 16, etc) */
unsigned char lcd_char_P[] =
{
s X X X X X X _ _,
#!/bin/bash
TRACK=$1
OUT=$(mktemp)
curl "http://www.gramofon.nava.hu/data.php?n=1001&track=$TRACK" -s -L \
| sed -e 's/&/\&XXAMP;/g' \
-e 's/&XXAMP;amp;/\&amp;/g' \
-e 's/&XXAMP;/\&amp;/g' \
| iconv --from utf8 --to ascii//TRANSLIT \
> $OUT # ^mert xpath elkúrja \o/