Skip to content

Instantly share code, notes, and snippets.

View rounakdatta's full-sized avatar
💭
roses are sunny, noses are runny

Rounak Datta rounakdatta

💭
roses are sunny, noses are runny
View GitHub Profile
@gtallen1187
gtallen1187 / slope_vs_starting.md
Created November 2, 2015 00:02
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@wenhuizhang
wenhuizhang / distributed_systems_readings.md
Last active March 25, 2025 10:59
distributed systems readings

#Distributed System Course List

##Systems

  • Cornell CS 614 - Advanced Course in Computer Systems - Ken Birman teaches this course. The readings cover more distributed systems research than is typical (which I am in favour of!). In fact, there's barely anything on traditional internal OS topics like filesystems or memory management. There's some worthwhile commentary at the bottom of the page.

  • Princeton COS 518 - Advanced Operating Systems - short and snappy reading list of two papers per topic, covering some interesting stuff like buffering inside the operating system, and L4.

@haasn
haasn / about:config.md
Last active December 27, 2024 15:46
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

val inputPath = "../data/json"
val outputPath = "../data/parquet"
val data = sqlContext.read.json(inputPath)
date.write.parquet(outputPath)
@ogavrisevs
ogavrisevs / aws-temp-token.sh
Created July 29, 2015 16:36
Script to generate AWS STS token
#!/bin/bash
#
# Sample for getting temp session token from AWS STS
#
# aws --profile youriamuser sts get-session-token --duration 3600 \
# --serial-number arn:aws:iam::012345678901:mfa/user --token-code 012345
#
# Based on : https://github.com/EvidentSecurity/MFAonCLI/blob/master/aws-temp-token.sh
#
@pauljm
pauljm / S3Inspect.scala
Last active June 28, 2019 21:39
Quick and dirty utility to list all the objects in an S3 bucket with a certain prefix and, for any whose key matches a pattern, read the file line by line and print any lines that match a second pattern. Adjust constants as appropriate. Usage: sbt 'run <AWS access key ID> <AWS secret key>'
/**
* Directory structure should be:
* - project_root
* - build.sbt (see below)
* - src
* - main
* - scala
* - S3Inspect.scala
*/
package s3inspect
@JeffPaine
JeffPaine / i3-cheat-sheet.md
Last active April 14, 2025 15:08
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@roryokane
roryokane / 1 – myers (default) algorithm.diff
Last active January 31, 2025 15:52
Comparison between Git diff algorithms: myers (default) vs. patience (example favors patience)
diff --git a/file.c b/file.c
index 6faa5a3..e3af329 100644
--- a/file.c
+++ b/file.c
@@ -1,26 +1,25 @@
#include <stdio.h>
-// Frobs foo heartily
-int frobnitz(int foo)
+int fib(int n)
@hoitomt
hoitomt / log_request.go
Created January 30, 2015 12:56
Golang: Log HTTP Requests in Go
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func main() {
@oravecz
oravecz / Code
Last active May 11, 2020 08:28
Custom format support in fge/json-schema-validator
protected static Library getFormatLibrary(String version) throws IOException {
String formatPath = "/xapi/schemas/" + version + "/formats.json";
final LibraryBuilder libraryBuilder = DraftV4Library.get().thaw();
final JsonNode formats = JsonLoader.fromResource(formatPath);
// Iterate over each of the custom formats in the file
final Iterator<String> names = formats.fieldNames();
while (names.hasNext()) {