This file contains hidden or 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
// author: mert akengin | |
short led = 13; | |
unsigned morse[256]; | |
typedef enum time | |
{ | |
unit = 100, | |
sh = 1*unit, | |
ln = 3*unit, |
This file contains hidden or 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
// tmux.c | |
// compile using: cc -o tmux tmux.c | |
// makeit setuid executable by: chmod +s tmux | |
// also change owner to desired user: [sudo] chown {usernamehere} tmux | |
// give it to guests' shell (passwd entry): guest::9999:99:guest user:/tmp:/opt/tmux | |
// you can delete password with passwd -du {login} | |
// allow empty passwords with PermitEmptyPasswords yes in sshd_config | |
// update (18 aug 2016): added dynamic owner change, for security ofc :) |
This file contains hidden or 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 <limits.h> // for int_max | |
#include <unistd.h> // for usleep (delay) | |
#include <math.h> // for log function | |
#define DEF_MEM_SIZE 32 // memory size | |
#define COLS 16 // print column count |
This file contains hidden or 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 <stdint.h> | |
#include <stdbool.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <signal.h> | |
#include <math.h> | |
#include <locale.h> |
This file contains hidden or 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
#!/usr/bin/env node | |
const fs = require("fs"); | |
const tls = require("tls"); | |
const net = require("net"); | |
const dns = require("dns"); | |
const whois = require("whois"); | |
const sql = require("sql.js"); | |
const whoistabname = "whois"; |
This file contains hidden or 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
export PS1='\[$(_EC=$?; if [ $_EC -ne 0 ]; then tput setaf 1; fi; printf "\]%3d" $_EC;) \[$(tput setaf 3;)\]\w$(__git_ps1 "\[$(tput sgr0;)\]:\[$(tput setaf 2;)\]%s";) \[$(tput setaf 7;)\]\$ \[$(tput sgr0;)\]'; tput clear; |
This file contains hidden or 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 <unistd.h> | |
#include <string.h> | |
#define flush fpurge | |
#define SEP "+-------------+------------------+---------------+---+" | |
#define LINE "| % 11d | %16s | %13lu | %1c |" | |
typedef struct { |
This file contains hidden or 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
<?php | |
const usertab = "users"; | |
const posttab = "posts"; | |
$db = new SQLite3("./blog.db",SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE); | |
if(!$db) die("error db"); | |
ob_start(); | |
session_start(); | |
$sid = session_id(); | |
header("x-author: mert akengin, put your custom header(s) here"); | |
header("content-type: text/plain"); |
This file contains hidden or 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
#!/usr/bin/env make | |
all: | |
$(CC) -o programmertype programmertype.c |
This file contains hidden or 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 <ctype.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <locale.h> | |
#include <time.h> | |
#include <fcntl.h> |
OlderNewer