Skip to content

Instantly share code, notes, and snippets.

💸
0x90

kyb kybernetyk

💸
0x90
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
kybernetyk / hack.sh
Created Mar 31, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@kybernetyk
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];
View main.cc
#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)
//inkrementiert.
//*lach* keine skriptsprachen mehr fuer mich ... und keine
//typed pointer mehr. nur noch void und char!
@kybernetyk
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
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
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
kybernetyk / webkonrad.arc
Created Jun 9, 2011
geheime DWD konrad daten
View webkonrad.arc
[HEAD]
VX090845100000611BY 22114VS03MS019_exec5rx_2007_12_13
[ERG]
[STAT]
[1]10000VX110609_0815.stat
(14) <HAM,ROS,EMD,HAN,UMD,BLN,ESS,ASE,fld,DRS,neu,NHB,FRI,EIS,TUR,FBG,MUC,OFT,mem>
[2]10000VX110609_0820.stat
(14) <HAM,ROS,EMD,HAN,UMD,BLN,ESS,ASE,fld,DRS,neu,NHB,FRI,EIS,TUR,FBG,MUC,OFT,mem>
[3]10000VX110609_0825.stat
(14) <HAM,ROS,EMD,HAN,UMD,BLN,ESS,ASE,fld,DRS,neu,NHB,FRI,EIS,TUR,FBG,MUC,OFT,mem>
@kybernetyk
kybernetyk / newhost.sh
Created May 29, 2011
create directory + append entry to vhosts.conf
View newhost.sh
#!/bin/bash
if [ "$2" = "" ]; then
echo "syntax: newhost <domainname> <dirname>";
exit 1;
fi
echo "domain: $1";
echo "dir: $2";
echo "#domain $1 - dir $2" > http.tmp
You can’t perform that action at this time.