Skip to content

Instantly share code, notes, and snippets.

@jonkaya
jonkaya / npm-shrinkwrap.json
Created August 26, 2020 18:12
Old format npm-shrinkwrap requires multiple npm install
{
"name": "at_dbx-apx-lib",
"version": "1.14.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@dbx/apx-lib": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/@dbx/apx-lib/-/apx-lib-1.14.0.tgz",
"integrity": "sha1-XpmmtTzE3y5JB71AgE6WBsHY5sY=",

Keybase proof

I hereby claim:

  • I am asimcan on github.
  • I am asimcan (https://keybase.io/asimcan) on keybase.
  • I have a public key whose fingerprint is E022 81B6 7DF8 0298 745F 8D92 BC08 055F 489E 0789

To claim this, I am signing this object:

@jonkaya
jonkaya / gist:10239129
Last active December 15, 2016 09:05
CentosPythonEnvironmentSetup.sh
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install wget # gen'l reqs
@jonkaya
jonkaya / gist:9467180
Created March 10, 2014 15:30
Git track all remote branches
Using bash:
for remote in `git branch -r `; do git branch --track $remote; done
Update the branches, assuming there are no changes on your local tracking branches:
for remote in `git branch -r `; do git checkout $remote ; git pull; done
@jonkaya
jonkaya / Centos6-Postgre9.3-install.sh
Last active December 29, 2015 19:59
Installer script of Postgresql 9.3 for Centos 6.x
#!/bin/bash
sed -i "s/\[base\]/\[base\]\nexclude=postgresql*/" /etc/yum.repos.d/CentOS-Base.repo
curl -O http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
rpm -ivh pgdg-centos93-9.3-1.noarch.rpm
rm -f pgdg-centos93-9.3-1.noarch.rpm
yum install postgresql93-server -y
service postgresql-9.3 initdb