Skip to content

Instantly share code, notes, and snippets.

View sponnusa's full-sized avatar
👻
Vicious Electron Journey!

Suri sponnusa

👻
Vicious Electron Journey!
View GitHub Profile
@sponnusa
sponnusa / why.markdown
Created August 22, 2016 12:53 — forked from egonSchiele/why.markdown
Why read Grokking Algorithms?

If you have already taken a course in algorithms, why read Grokking Algorithms (manning.com/bhargava)?

If you were learning graph algorithms, which approach would you prefer:

  1. Imagine you have to take public transit from your home to your office. How do you figure out the fastest route? Use graph algorithms! OR

  2. We can choose between two standard ways to represent a graph G = (V, E): as a collection of adjacency lists or as an adjacency matrix. Either way applies to both directed and undirected graphs.

I prefer the first way: lead with lots of examples, and clear writing. The second way is an excerpt from "Introduction to Algorithms"...that's how they start their section on graph algorithms.

@sponnusa
sponnusa / _service.md
Created September 10, 2016 11:42 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@sponnusa
sponnusa / Encbox.md
Created December 22, 2016 01:49 — forked from Tho85/Encbox.md

Build your own private, encrypted, open-source Dropbox-esque sync folder

Prerequisites:

  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption
@sponnusa
sponnusa / html5-circular-animation-gsap.markdown
Created June 14, 2017 15:21
HTML5 Circular Animation (GSAP)

Keybase proof

I hereby claim:

  • I am sponnusa on github.
  • I am suri (https://keybase.io/suri) on keybase.
  • I have a public key whose fingerprint is B392 CFF3 EAE7 49CA D271 175B 3CCD 9B07 0E17 6132

To claim this, I am signing this object:

@sponnusa
sponnusa / The Technical Interview Cheat Sheet.md
Created August 11, 2017 04:43 — forked from augbog/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

Array

Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@sponnusa
sponnusa / algorithm.pseudo
Created September 22, 2020 16:54 — forked from antimatter15/algorithm.pseudo
Pseudocode to Graphviz Converter
Place phone call.
Home?
Leave message
Wait for callback
"Would you like to share a meal"
"Would you like to share a meal"
What is the response (A) ?
"Do you enjoy a hot beverage"
What is the response (B) ?
n = 0
@sponnusa
sponnusa / waybackmachine.sh
Created November 5, 2020 02:41 — forked from tuanle/waybackmachine.sh
Download archived web from web.archive.org
#!/usr/bin/env bash
# Wayback machine downloader
#TODO: Remove redundancy (download only newest files in given time period - not all of them and then write over them)
############################
clear
#Enter domain without http:// and www.
domain="google.com"
#Set matchType to "prefix" if you have multiple subdomains, or "exact" if you want only one page
matchType="domain"
@sponnusa
sponnusa / minimum-pixel-values.py
Created February 22, 2022 06:54 — forked from pklaus/minimum-pixel-values.py
An OpenCV script that you can use to transform multiple images into one single image containing the minimum pixel value for each pixel of the input images.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Written on 2013-03-18 by Philipp Klaus <philipp.l.klaus →AT→ web.de>.
Check <https://gist.github.com/5188638> for newer versions.
An OpenCV script that you can use to transform multiple images into one
single image containing the minimum pixel value for each pixel of the
input images. The input images have to be of the same dimensions!
@sponnusa
sponnusa / sctptest.c
Created March 5, 2022 10:09 — forked from zonque/sctptest.c
Simple client/server test for SCTP
/*
* Compile:
*
* gcc sctptest.c -o server -lsctp -Wall
* ln -s server client
*
* Invoke:
*
* ./client
* ./server