Skip to content

Instantly share code, notes, and snippets.

View azizshamim's full-sized avatar
:octocat:
talkin' bout GitHub

Aziz Shamim azizshamim

:octocat:
talkin' bout GitHub
View GitHub Profile

Keybase proof

I hereby claim:

  • I am azizshamim on github.
  • I am azizshamim (https://keybase.io/azizshamim) on keybase.
  • I have a public key ASA5wUej3Rfwk-csNQu__pY-QZ_4xtuHpOjxxXMNMj7ZJgo

To claim this, I am signing this object:

@azizshamim
azizshamim / workspace.sh
Created January 6, 2017 00:21 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on OSX.
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
# where to store the sparse-image
WORKSPACE=${HOME}/.workspace.dmg.sparseimage
# location where workspace will be mounted

code block

> block quote

block quote

HTML Entity codes

  • ▓
  • ▓
  • ▓

░░░░

▓▓▒░

@azizshamim
azizshamim / install.sh
Last active August 29, 2015 14:18
Installing elixir on a Raspberry Pi 2
#!/bin/bash
# Install the prerequisites as root
sudo apt-get install erlang-mini erlang-eunit
# Clone elixir
git clone https://github.com/elixir-lang/elixir.git
cd elixir
@azizshamim
azizshamim / report_error.js
Created December 30, 2014 21:51
javascript done with errors
exports.report_error = function(err, res, done) {
if (err) {
return done(err);
} else {
done();
}
}
@azizshamim
azizshamim / gist:2011ea19ae3c4ffcb612
Last active August 29, 2015 14:05
my_git_aliases
# Type these commands in order to add the aliases
git config --global alias.lol 'log --pretty=oneline --abbrev-commit --graph --decorate'
git config --global alias.ll 'log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative'
git config --global alias.lola 'log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative --all'
git config --global alias.s 'status -su'
@azizshamim
azizshamim / ruby_and_wat
Created June 30, 2014 18:17
perilous ruby
irb(main):001:0> f = 5
=> 5
irb(main):002:0> f
=> 5
irb(main):003:0> f = 5 and f / 5
=> 1
irb(main):004:0> f
=> 5
irb(main):005:0> f = 5 && f / 5
=> 1
@azizshamim
azizshamim / error1.txt
Last active December 19, 2015 05:19
packer.io hanging on build
PACKER_LOG=1 packer build template.json
2013/07/01 14:12:51 Packer Version: 0.1.3
2013/07/01 14:12:51 Packer Target OS/Arch: darwin amd64
2013/07/01 14:12:51 Detected home directory from env var: /Users/ashamim
2013/07/01 14:12:51 Attempting to open config file: /Users/ashamim/.packerconfig
2013/07/01 14:12:51 File doesn't exist, but doesn't need to. Ignoring.
2013/07/01 14:12:51 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs digitalocean:packer-builder-digitalocean virtualbox:packer-builder-virtualbox vmware:packer-builder-vmware] Commands:map[build:packer-command-build validate:packer-command-validate] PostProcessors:map[vagrant:packer-post-processor-vagrant] Provisioners:map[shell:packer-provisioner-shell]}
2013/07/01 14:12:51 Setting cache directory: /Volumes/development_bundle/Dropbox/git/fup/checkd.in/checkd.in-chef/vagrant/ubuntu-10.04/packer_cache
2013/07/01 14:12:51 Environment.Cli: []string{"build", "template.json"}
2013/07/01 14:12:51 command + ar