Skip to content

Instantly share code, notes, and snippets.

View kshitij10496's full-sized avatar

Kshitij Saraogi kshitij10496

View GitHub Profile
@xypnox
xypnox / HN.md
Last active November 10, 2025 19:21
HN but it is not an eyesore

HN but it is not an eyesore

Use Stylus, copy the CSS, tweak colors etc.

@m-radzikowski
m-radzikowski / script-template.sh
Last active October 9, 2025 00:41
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@carolynvs
carolynvs / .gitconfig
Last active October 19, 2022 14:44
git wip - Show what branches you have been working on lately
[alias]
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
@isacikgoz
isacikgoz / build.sh
Created December 25, 2018 12:53 — forked from jojomi/build.sh
Simple bash script for cross-compiling Go code for release
#!/bin/bash
#
APP_VER="0.3"
BUILD_ARCH_AMD64="amd64"
BUILD_ARCH_ARM64="arm64"
BUILD_ARCH_ARM="arm"
BUILD_ARCH_x86="386"
@campoy
campoy / hiring.md
Created December 20, 2017 18:45
Hiring message

Hi,

First of all thanks for showing interested on my tweet, it's really cool to see so many people interested on working with me at @srcd_!

Please go check https://sourced.tech/careers/ and make sure one of those profiles match your experience and interests. If that's the case then send an email to talent@sourced.tech and feel free to mention my name.

Take into account that we're currently hiring for either Madrid or remotely

@cferdinandi
cferdinandi / completed.html
Last active December 11, 2025 15:27
Learn the basics of vanilla JavaScript is about 10 minutes. Watch the video at https://www.youtube.com/watch?v=IQn_up6ZUkk, and grab more vanilla JS resources at https://gomakethings.com.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Learn Vanilla JS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles -->
<style type="text/css">
import csv
import cStringIO
import codecs
import glob
import json
import requests
def fetch_jsons():
url = ('https://summerofcode.withgoogle.com/api/program/current/project/'
@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@vasanthk
vasanthk / System Design.md
Last active December 31, 2025 23:02
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@bishboria
bishboria / springer-free-maths-books.md
Last active December 14, 2025 11:48
Springer made a bunch of books available for free, these were the direct links