This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _datarev(char *base,char *data,const unsigned int len) | |
{ | |
if(data-len<=base) | |
{ | |
char ch=*data; | |
_datarev(base,data+1,len); | |
base[(base-data)+len]=ch; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ****************************getmemypointer(void) | |
{ | |
void **tmp=malloc(sizeof(void *)); | |
*tmp=(void *)&tmp; | |
//I am totally not sure if _this_ works. | |
return (void ****************************)tmp; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This little program splits a whole file into single words, | |
* which get saved in a list. | |
* A word is everything between two non-printable characters. | |
* | |
* Made by @benaryorg (2014) | |
* License: WTFPL | |
*/ | |
#include <cstdio> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <curl/curl.h> | |
size_t write(void *buffer,size_t size,size_t nmemb,void *userp) | |
{ | |
char **data=(char **)userp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cassert> | |
#include <string> | |
using namespace std; | |
const char EOI('.'); | |
const char EOT('#'); | |
const int MAX(10); | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am benaryorg on github. | |
* I am benaryorg (https://keybase.io/benaryorg) on keybase. | |
* I have a public key whose fingerprint is 4A1B 3155 6D86 7198 1370 C471 D007 3D31 AB13 D7F8 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while :;do | |
xset dpms force off | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define USED_FILE "file.txt" | |
void write(void) | |
{ | |
FILE *f=fopen(USED_FILE,"rb"); | |
//I always use 'b' for binary because it does not make any difference except the thing with EOF.… | |
//in text mode -1==EOF, that means if a file contains the byte 0xff this is interpreted as EOF even if the file is longer | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRCPATH:=. | |
SRCS=$(shell find $(SRCPATH) -regextype posix-extended -regex '^.+\.(c)$$') | |
OBJS=$(addprefix build,$(addsuffix .o,$(basename $(SRCS:$(SRCPATH)%=%)))) | |
CC:=gcc | |
LD:=gcc | |
LDFLAGS:=-lncurses | |
CFLAGS:=$(addprefix -I,$(SRCPATH)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Server: $SERVER_SOFTWARE | |
Content-Type: text/plain; charset=UTF-8 | |
$REMOTE_ADDR:$REMOTE_PORT" |
OlderNewer