Skip to content

Instantly share code, notes, and snippets.

@toidiu
toidiu / zshrc
Last active April 9, 2017 17:15
export ZSH=/Users/apoorv/.oh-my-zsh
################ theme
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
#ZSH_THEME="agnoster"
#ZSH_THEME="powerlevel9k/powerlevel9k"
################ custom config
# so as not the show the hostname
@toidiu
toidiu / bashrc
Last active April 18, 2017 20:01
### Aliases
### General
alias l="ls -al"
alias cc="clear"
alias xx="exit"
alias ..="cd ..;pwd;ls -a"
alias pp="pwd"
alias brc="vi ~/.bashrc"
alias sc="source ~/ENV_django/bin/activate"
// github-backups is a program for saving a local copy of all the repositories
// you've created or starred on GitHub.
//
// It expects the "API_TOKEN" environment variable to be set to a valid oauth2
// token so you can login using the github client. For convenience, you can use
// a `dotenv` file.
package main
import (
"context"
## mongo queries for updating the new thumbs location with the old thumbs data
```
# Timeline of data migration and dual-writing thumbs data
event 1 event 2
__________________________________________________________________
| region 1 | region 2 | region 3 |
======== New model
case class LiveStationRecsResult(
recs: Seq[Recs]
contentName: String,
contentType: RecsType,
contentId: String
)
enum RecsType
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":1508000.0},{"p":0,"s":2,"x":0,"y":8802304000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":0,
@toidiu
toidiu / ack_vs_main-norestraints-s2n-quic-server.json
Created May 12, 2022 17:53
ack_vs_main-norestraints-s2n-quic-server
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"axes": [
{
"format": "%ss",
"formatType": "time",
"orient": "top",
"scale": "scale$x"
},
{
@toidiu
toidiu / ack-vs-main-loss05-rate200mb-s2n-quic-server.json
Last active May 12, 2022 17:58
ack-vs-main-loss05-rate200mb-s2n-quic-server
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"axes": [
{
"format": "%ss",
"formatType": "time",
"orient": "top",
"scale": "scale$x"
},
{
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12192000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12784000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":