Skip to content

Instantly share code, notes, and snippets.

View cyberaa's full-sized avatar
🐺
Running free...

Cyberaa cyberaa

🐺
Running free...
View GitHub Profile
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
adventure.
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much

From Fresh install

1) update and upgrade as root

apt-get update && apt-get upgrade -y
  • Setting up hostname, skip if done with installation

pico /etc/hosts

@cyberaa
cyberaa / multi-threading with perl example
Created January 29, 2018 09:13 — forked from readbio/multi-threading with perl example
multi-threading with perl example
#!/opt/local/bin/perl -w
use threads;
use strict;
use warnings;
# SOURCE REF: http://chicken.genouest.org/perl/multi-threading-with-perl/
my @a = ();
my @b = ();
@cyberaa
cyberaa / spectre.c
Created January 4, 2018 15:50 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@cyberaa
cyberaa / kadane2d.cpp
Last active August 29, 2015 14:16 — forked from jongyeol/kadane2d.cpp
// problem: http://uva.onlinejudge.org/external/1/108.html
// solved using Kadane's 2D algorithm O(N^3)
// [1] http://en.wikipedia.org/wiki/Maximum_subarray_problem
// [2] http://alexeigor.wikidot.com/kadane
#include <cstdio>
#include <cstring>
#include <climits>
#include <algorithm>
using namespace std;
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'