Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdbool.h>
void bulbul()
{
}
int main()
{
while (true)
{
@ohmree
ohmree / desu.ps1
Last active May 9, 2016 11:54
Some stuff and things
cd $Env:USERPROFILE;cd .\Desktop\;$desu = Read-Host 'How many times would you like to hack the Pentagon?';$nya = 0;do{Test-NetConnection google.com >> h4xx0r.txt;$nya++;} while ($nya + 1 -le $desu);clear;cat .\h4xx0r.txt;echo "Check your desktop you idiot!";pause
@ohmree
ohmree / map.lua
Created August 24, 2016 20:08
Recursive & iterative map functions
arr = {}
function table_range(t, min, max)
for i = min, max do
table.insert(t, i, i)
i = i + 1
end
end
table_range(arr, 1, 1000000)
@ohmree
ohmree / min_max.h
Last active September 16, 2016 15:07
Functions that find the biggest/smallest number from an arbitrary number of arguments
#include <stdarg.h>
int maxOf(int num, ...)
{
va_list args;
int max;
register int i;
va_start(args, num);
for (i = 0; i < num; i++)
{
int a = va_arg(args, int);
@ohmree
ohmree / config.h
Last active September 17, 2016 21:03
st terminal emulator configuration file
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char font[] = "Input Regular:pixelsize=16:antialias=true:autohint=true";
static int borderpx = 2;
@ohmree
ohmree / min_max.h
Last active September 25, 2016 16:32
Min and max functions in c
#include "stdio.h"
#include "stdlib.h"
#include "stdarg.h"
/**
* The maxOf function takes in any number of signed integers preceded by the amount of arguments (not including the first one) that
* it receives and returns the biggest number amongst all of it's arguments
* example usage:
* maxOf(5, 56, 34, 345, 1235, 90686); should return 90686*/
int maxOf(int num, ...)
[bar/top]
width = 100%
height = 28
clickareas = 35
bottom = false
padding_left = 3
padding_right = 3
background = #55002b36
#include <stdio.h>
#include <ncurses.h>
int encrypt(int num);
int main()
{
int num = 0;
printf("Enter a positive fcku: ");
scanf("%d", &num);
@ohmree
ohmree / window-tools.sh
Created February 12, 2017 08:50
A script for doing actions on windows
#!/usr/bin/env bash
#
## window-tools.sh - brings a window to the front
#
# Some bash stuff for safety, should work since the shebang uses bash
set -euo pipefail
IFS=$'\n\t'
# Usage string
@ohmree
ohmree / shell.txt
Last active March 20, 2017 18:32
Why doesn't this work?
omrisim210:~/workspace $ gcc -Wall -Wextra -ggdb3 -O0 -std=gnu11 -v -da -Q stack-overflow.c -Iinclude -o so.o -lcjson
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jr