Skip to content

Instantly share code, notes, and snippets.

View AKNiazi's full-sized avatar

Abdullah Khan AKNiazi

  • Lahore Pakistan
View GitHub Profile
@ludoo
ludoo / !Simple Stackdriver custom metrics
Last active February 6, 2022 15:25
Simple Stackdriver custom metrics
foo! spam! eggs! name this gist!
@richwednesday
richwednesday / upload.js
Created December 28, 2017 19:46
Image Upload to S3 From Node.js
const http = require("http");
const https = require("https");
const AWS = require('aws-sdk');
const formidable = require("formidable");
const uuid = require("uuid");
let server = http.createServer(launch);
let s3 = new AWS.S3({
// s3 credentials
});
@AKNiazi
AKNiazi / Manual Deployment with nginx and puma
Last active September 2, 2016 17:18
Manual Deployment with nginx and puma
Link I used i the following steps is https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04 and this link http://ruby-journal.com/how-to-setup-rails-app-with-puma-and-nginx/
Also a useful link to do this properly is http://nicolas-brousse.github.io/ubuntu-install-and-tips/pages/installation/rails-puma/
1. Install DBMS (postgre, mysql) and install rvm, ruby, rails and there dependencies
2. clone the git repository to any location ideally in home
3. cd myapp
@wenzhixin
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active July 4, 2024 05:29
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@AKNiazi
AKNiazi / import _from_heroku
Created December 19, 2014 07:10
Import Data from Heroku to Local Machine
IMPORTING DATA FROM HEROKU TO LOCAL MACHINE
Install the Heroku Backup tool
$ heroku addons:add pgbackups
Start using it
$ heroku pgbackups:capture
Download the remote db on Heroku (to your local machine) using curl