Skip to content

Instantly share code, notes, and snippets.


kyb kybernetyk

Block or report user

Report or block kybernetyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kybernetyk /
Created Mar 31, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
kybernetyk / lol.m
Created Mar 3, 2012
lol animierung
View lol.m
- (IBAction) buttonOneClick:(id)sender {
NSRect frm = [button2 frame];
frm.origin.x += 150;
#if 1
[NSAnimationContext beginGrouping];
[[NSAnimationContext currentContext] setDuration: 5.0];
[[NSAnimationContext currentContext] setTimingFunction: [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseOut]];
[button2.animator setFrame: frm];
#include <stdio.h>
#include <memory>
#include "lipido.h"
lipido::WebResponse test_handler(lipido::WebContext &context) {
lipido::WebResponse resp;
resp.body = "LOL ICH MACH DICH PLATT!";
return resp;
View gist:1189830
howto git fuer doff
neues repository:
git init
datei zufuegen:
git add <dateiname>
aenderungen commiten:
git commit -m irgend ein commit comment
View ptr_moism.c
#include <stdio.h>
int main(int argc, char **argv)
//lul, wie ich auf sowas reingefallen bin: ich erwartete dass
//der ptr um (2*4) byte inkrementiert wird. aber nein, dies
//war ein moismus. denn der pointer wird um (2*4)*sizeof(float)
//*lach* keine skriptsprachen mehr fuer mich ... und keine
//typed pointer mehr. nur noch void und char!
kybernetyk / iKurzweil.m
Created Jul 28, 2011
automatic music composer with rand()
View iKurzweil.m
// main.m
// iKurzweil
// Created by Jaroslaw Szpilewski on 28/7/11.
// Copyright 2011 Flux Forge. All rights reserved.
#import <Foundation/Foundation.h>
kybernetyk / hw_breakpoint.c
Created Jul 3, 2011 — forked from nall/hw_breakpoint.c
How to perform breakpoints on ia32/OSX
View hw_breakpoint.c
#include <pthread.h>
#include <stdio.h>
#include <inttypes.h>
#include <signal.h>
#include <mach/mach_types.h>
// compile:
// monoco% gcc -m32 -o break break.m -lpthread -F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework
kybernetyk / gist:1040400
Created Jun 22, 2011
Keep Status Item Left
View gist:1040400
if (!statusItem) {
if ([defs boolForKey: @"keepAlwaysLeft"] &&
[statusBar respondsToSelector:@selector(_statusItemWithLength:withPriority:)]) {
NSLog(@"will keep always left!");
statusItem = [statusBar _statusItemWithLength:0 withPriority:INT_MIN ];
[statusItem setLength:0];
} else {
statusItem = [statusBar statusItemWithLength: NSVariableStatusItemLength];
kybernetyk / webkonrad.arc
Created Jun 9, 2011
geheime DWD konrad daten
View webkonrad.arc
VX090845100000611BY 22114VS03MS019_exec5rx_2007_12_13
kybernetyk /
Created May 29, 2011
create directory + append entry to vhosts.conf
if [ "$2" = "" ]; then
echo "syntax: newhost <domainname> <dirname>";
exit 1;
echo "domain: $1";
echo "dir: $2";
echo "#domain $1 - dir $2" > http.tmp
You can’t perform that action at this time.