Skip to content

Instantly share code, notes, and snippets.

View vrajanap's full-sized avatar

Rajan Ponnappan vrajanap

View GitHub Profile
https://www.cs.huji.ac.il/w~shais/UnderstandingMachineLearning/understanding-machine-learning-theory-algorithms.pdf
@vrajanap
vrajanap / git-svn.md
Created November 10, 2021 02:39 — forked from yancyn/git-svn.md
Migrate Archive Google Code SVN to Git

Migrate Archive Google Code SVN to Git

Requirements

  • git
  • git-svn

Setup¹

$ sudo apt-get install git
$ sudo add-apt-repository ppa:git-core/ppa
@vrajanap
vrajanap / docker-compose.yml
Created September 11, 2021 07:18
Repro of bug in sidekick - minio caching server interaction.
version: "3.3"
services:
server:
image: quay.io/minio/minio
ports:
- "9005:9005"
command: server /objects --address :9005
environment:
- MINIO_ROOT_USER=user

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@vrajanap
vrajanap / Public links
Created November 12, 2019 02:24
For python bindings
{"version":1,"resource":"file:///home/rajan/notes/record.md","entries":[{"id":"Aou6.md","timestamp":1694988748513},{"id":"HQ3o.md","source":"Workspace Edit","timestamp":1694988803013},{"id":"yTib.md","timestamp":1696097940757},{"id":"laA1.md","timestamp":1698629373507},{"id":"SQI3.md","timestamp":1698642402589},{"id":"GwYb.md","timestamp":1698642739415}]}
@vrajanap
vrajanap / Docker shell commands.sh
Created September 23, 2018 05:47 — forked from bahmutov/Docker shell commands.sh
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
@vrajanap
vrajanap / postgres_queries_and_commands.sql
Created May 5, 2018 01:04 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@vrajanap
vrajanap / postgres-cheatsheet.md
Created June 29, 2017 01:20 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@vrajanap
vrajanap / tmux.md
Created November 23, 2016 15:46 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a