Skip to content

Instantly share code, notes, and snippets.

View avishekrk's full-sized avatar

Avishek Kumar avishekrk

  • The University of Chicago
  • Chicago, IL
View GitHub Profile
@SavvyGuard
SavvyGuard / botos3upload.py
Last active September 10, 2024 06:53
Use boto to upload directory into s3
import boto
import boto.s3
import os.path
import sys
# Fill these in - you get them when you sign up for S3
AWS_ACCESS_KEY_ID = ''
AWS_ACCESS_KEY_SECRET = ''
# Fill in info on data to upload
@apolloclark
apolloclark / postgres cheatsheet.md
Last active April 25, 2025 20:57
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL

@tatwell
tatwell / ubuntu_gmail_mailx.sh
Created July 26, 2017 03:18
Mailx for Gmail Command Line for Ubuntu
#!/bin/bash
###
#
# Mailx for Gmail Command Line for Ubuntu
# Version 1.0
# http://klenwell.com/is/UbuntuCommandLineGmail
#
# USAGE:
# sudo ubuntu_gmail_mailx.sh install
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raftheunis87
raftheunis87 / hyperjs.md
Last active April 21, 2025 08:26
Hyper.js + Hyper.js Plugins + ZSH + Starship + Fira Code + Dark Theme - (macOS)

Hyper.js

@imylomylo
imylomylo / arch_installation.md
Created October 15, 2019 17:39 — forked from eltonvs/arch_installation.md
Arch Linux step to step installation guide

Arch Linux Installation Guide

This guide will show step-by-step how to Install Arch Linux on UEFI mode.

Table of Contents

  • Bootable Flash Drive
  • BIOS
  • Pre installation
    • Set Keyboard Layout
    • Check boot mode
  • Update System Clock
# -*- coding: utf-8 -*-
""" Deletes all tweets below a certain retweet threshold.
"""
import tweepy
from datetime import datetime
# Constants
CONSUMER_KEY = ''
@aaabramov
aaabramov / install.sh
Last active August 3, 2024 10:20
Installing zsh + oh-my-zsh on Amazon EC2 Amazon Linux 2 AMI. (Prepared in the scope of posting https://aaabramov.medium.com/installing-zsh-oh-my-zsh-on-amazon-ec2-amazon-linux-2-ami-88b5fc83109)
sudo yum update
# Installing ZSH
sudo yum -y install zsh
# Check ZSH has been installed
zsh --version
# Install "util-linux-user" because "chsh" is not available by default
# See https://superuser.com/a/1389273/599050