Skip to content

Instantly share code, notes, and snippets.

View charandas's full-sized avatar

Charandas charandas

View GitHub Profile
charandas /
Last active June 14, 2024 01:17
Keybase Proof

Keybase proof

I hereby claim:

  • I am charandas on github.
  • I am infinitecauses ( on keybase.
  • I have a public key whose fingerprint is 2921 5E55 757F 2AD8 968D E6F8 96CC 7021 61C6 571C

To claim this, I am signing this object:

charandas / iam_policy_traefik_user.json
Last active August 9, 2019 22:09
traefik eks helm chart config
"Version": "2012-10-17",
"Statement": [
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
charandas / DEBUG output
Created December 29, 2017 01:08
data.rancher_environment terraform output
1 ❯ TF_LOG=DEBUG terraform apply
2017/12/28 20:07:01 [INFO] Terraform version: 0.11.1 a42fdb08a43c7fabb8898fe8c286b793bbaa4835+CHANGES
2017/12/28 20:07:01 [INFO] Go runtime version: go1.9
2017/12/28 20:07:01 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2017/12/28 20:07:01 [DEBUG] Attempting to open CLI config file: /Users/charandas/.terraformrc
2017/12/28 20:07:01 Loading CLI configuration from /Users/charandas/.terraformrc
2017/12/28 20:07:01 [INFO] CLI command args: []string{"apply"}
2017/12/28 20:07:01 [INFO] command: empty terraform config, returning nil
2017/12/28 20:07:01 [DEBUG] command: no data state file found for backend config
charandas / container-config.tpl
Created December 29, 2017 00:06
rancher-agent registration with terraform on coreos container linux
- filesystem: "root"
path: "/etc/hostname"
mode: 0644
inline: ${hostname}
- filesystem: "root"
path: "/etc/hosts"
mode: 0644
charandas / packer-build.json
Created December 18, 2017 14:41
coreos container linux OVA generation using Packer
"variables": {
"name": "coreos-baseimage",
"release": "stable",
"iso_checksum": "",
"iso_checksum_type": "none",
"disk_size": "40000",
"cpus": "4",
"memory": "2048",
"boot_wait": "15s",
charandas /
Created July 20, 2016 23:28
Level control haunted OS X input slider
## The script for our case came down to this:
while true ; do
CURR_LEVEL=$(osascript -e "input volume of (get volume settings)")
echo "Setting at : ${CURR_LEVEL}";
while (( $CURR_LEVEL < 50 )); do
echo "Setting to : ${TARGET_LEVEL}";
osascript -e 'display notification "Setting to: '"$TARGET_LEVEL"'" with title "My Mic App"'
osascript -e "set volume input volume ${TARGET_LEVEL}";
charandas / string.js
Created March 25, 2016 20:34
Weird string representation on the wire
{ [String: '7211622383903100731']
s: 1,
e: 18,
c: [ 7, 2, 1, 1, 6, 2, 2, 3, 8, 3, 9, 0, 3, 1, 0, 0, 7, 3, 1 ] }
charandas /
Last active November 26, 2017 08:48
Truncate git history
# Prepare new_master
git checkout <hash-where-you-want-to-clip-history>
git checkout --orphan new-master
git checkout new_master
git cherry-pick first-commit-to-include^..last-commit-to-include
# Prepare master backup
git checkout master
git checkout -b master-backup
charandas / channels.txt
Created October 29, 2015 16:41
chrome builds desc
Stable channel: This channel has gotten the full testing and blessing of the Chrome test team, and is the best bet to avoid crashes and other issues. It's updated roughly every two-three weeks for minor releases, and every 6 weeks for major releases.
Beta channel: If you are interested in seeing what's next, with minimal risk, Beta channel is the place to be. It's updated every week roughly, with major updates coming every six weeks, more than a month before the Stable channel will get them.
Dev channel: Want to see what's happening quickly, then you want the Dev channel. The Dev channel gets updated once or twice weekly, and it shows what we're working on right now. There's no lag between major versions, whatever code we've got, you will get. While this build does get tested, it is still subject to bugs, as we want people to see what's new as soon as possible.
Canary build: Canary builds are the bleeding edge. Released daily, this build has not been tested or used, it's released as soon as it's built. B
charandas / scrolling-fix
Created October 25, 2015 00:20
Chromium svn r201483 git commit hash 1eef74ce70198749800f08cc2623b14f615fb2f0
git tag --contains 1eef74ce70198749800f08cc2623b14f615fb2f0