Skip to content

Instantly share code, notes, and snippets.

View sumeetpareek's full-sized avatar

Sumeet Olivier sumeetpareek

View GitHub Profile
@sumeetpareek
sumeetpareek / get-my-twitter-follows.py
Created November 10, 2022 04:00
Script that prints a list of all twitter accounts that I follow
# get the list of accounts i follow on twitter
# and print out their URLs, so i can visit
# some of them randomly during coding breaks
# and unfollow accounts that don't add value
import tweepy
# twitter credentials
# SEARCH: how to get twitter credentials
# SEE: https://www.jcchouinard.com/twitter-api-credentials/
@sumeetpareek
sumeetpareek / AI-Grant-Program-1st-October-2022-archived.md
Last active October 2, 2022 08:20
AI Grant Program, 1st October 2022 (archived)

NOTE:

I found the content written for AI Grant Program (with deadline of 1st October 2022) super f-ing awesome.

  • It was just a plain text website.
  • And the written word was simple, clear, inspiring, fun, and inviting.
  • ^ It being all of those above things gave me (and perhaps others) the courage to apply to https://aigrant.org/.
  • What you see below is an archive of the text that was written for that AI Grant Program of 1st October 2022.
  • Fearing that after the deadline the website text might change, I have archived it here below.
  • Reading this text will help you write with similar level of simplicity and clarity.
# Chat Options
- This docment is intended to assist with discusssions related to Chat options.
- Temporarily hosted here because it was written in Github flavored markdown.
- Will move it to our brand new confluence setup.
## Agora
PROS
@sumeetpareek
sumeetpareek / movie-editing-notes__boston-48hrs-film-project-aug-2020__team_BOSSG.md
Last active August 16, 2020 19:28
Movie Editing Notes -- Boston 48 Hrs Film Project (Aug 2020) -- Team BOSSG

Movie Editing Notes -- Boston 48 Hrs Film Project (Aug 2020) -- Team BOSSG

Writing things down is very helpful for me as I edit a movie, and hence this doc. If I do not switch back and forth between this writing doc, and editing tools then I end up getting distracted because of internet and remote people conversations, and I can never finish editing on time.

Film Making Prompts + Our Team + Our Screenplay

todo

Other Sections

@sumeetpareek
sumeetpareek / gist:d9e5ab010fb0b3751c3e40e739175f6a
Created October 4, 2016 16:18 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
import itertools
import operator
# have the allowed operators in an array
def get_operator_fn(op):
return {
'+' : operator.add,
'-' : operator.sub,
'*' : operator.mul,
}[op]
@sumeetpareek
sumeetpareek / packer-aws-ami-template.json
Last active December 21, 2021 15:46
packer template to create aws ami using ansible provisioner
{
"variables": {
"aws_access_key": "", // This helps me connect to AWS
"aws_secret_key": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
@sumeetpareek
sumeetpareek / Vagrantfile
Created April 9, 2015 20:31
Vagrant, Ansible permissions and SSH workarounds for Windows
# On windows, default synced folders get full permissions, unless explicitly called out.
# This causes some errors. So we explicitly call out mount options.
# Map a host directory to the vbox so that we can continue development on the host, while running the site on guest VM
# config.vm.synced_folder "www", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=777"] }
config.vm.synced_folder "./", "/vagrant",
mount_options: ["dmode=777,fmode=664"]
config.vm.synced_folder "www", "/var/www-shared",
@sumeetpareek
sumeetpareek / .bashrc
Created April 1, 2014 03:50
Bash shell configuration for - colored prompt, git branch and info in prompt and drush shortcuts
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@sumeetpareek
sumeetpareek / python_apache_logs.py
Created March 19, 2014 15:33
A very simple Apache access log parser in Python
#!/usr/bin/env python2
"""A very simple Apache access log parser in Python
usage help = http://i.imgur.com/XBiX2kX.png
when required arguments are missing = http://i.imgur.com/P5L0GZV.png
when incorrect file path is passed = http://i.imgur.com/sJDc0om.png
successful sample output = http://i.imgur.com/iH89mwI.png