This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"globals": { | |
"nconf": true | |
}, | |
"parser": "babel-eslint", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make the dock not so slow | |
defaults write com.apple.dock autohide-time-modifier -float 0.5 | |
defaults write com.apple.dock autohide-delay -float 0.05 | |
killall Dock | |
# disable shadow on screen capture | |
defaults write com.apple.screencapture disable-shadow -bool TRUE | |
killall SystemUIServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dscacheutil -flushcache | |
sudo killall -USR2 mDNSResponder # <- required or name resolution may fail for SSH, ping, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# vim: set ts=4 sw=4 noet fileencoding=utf-8: | |
readonly SERVICE=${1-api} | |
readonly versions=$(gcloud app versions list --service=$SERVICE \ | |
--sort-by=~version.createTime \ | |
--format='table[no-heading](id)') | |
declare -i KEEP_LAST=${KEEP_LAST-5} | |
declare -i c=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set ts=4 sw=4 et fileencoding=utf-8: | |
# The named tuple and JSON output are just examples / place holders. | |
from collections import namedtuple | |
from typing import Optional | |
import json | |
import re | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to Bitbucket and create a new repository (its better to have an empty repo) | |
git clone [email protected]:abc/myforkedrepo.git | |
cd myforkedrepo | |
Now add Github repo as a new remote in Bitbucket called "sync" | |
git remote add sync [email protected]:def/originalrepo.git | |
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
git remote -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vim: set ts=4 sw=4 et fileencoding=utf-8: | |
# | |
# Simple benchmark & testing rig to play with finding the fastest methods when | |
# searching for the first value in a sequence, determined by a predicate. This | |
# file uses: lambda x: x / 2 == target | |
# | |
from __future__ import print_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim: set ts=4 sw=4 noet fileencoding=utf-8: | |
#include <iostream> | |
using namespace std; | |
#define _______ 0b0 | |
#define ________ 0b1 | |
#define _________ = | |
#define __________ <= | |
#define ___________ << | |
#define ____________ int |
NewerOlder