Skip to content

Instantly share code, notes, and snippets.

View saxenanurag's full-sized avatar
🐍
import this

Anurag Saxena saxenanurag

🐍
import this
View GitHub Profile
@saxenanurag
saxenanurag / lamp_setup.sh
Created July 19, 2019 14:33 — forked from gnovaro/lamp_setup.sh
PHP Lamp Setup Nginx + PHP 7.3
#!/bin/bash
# One Click LAMP Server Installer (Ubuntu/Debian) - Roskus
# @author Gustavo Novaro
# @version 3.3.1
# @url https://gist.github.com/gnovaro/5295150774be1794028c15c83313c16e
# Run: sudo ./lamp_setup.sh
###############################################
#Servidor Web http
apt-get install -y nginx

Minutes

  • Suz Hinton - noopkat - streaming setup
  • Recording software if difficult
    • OBS
    • StreamLabs OBS
    • Quadlibet?
    • Text source plugins that OBS reads
  • StreamLabs has plugins for useful stuff
@saxenanurag
saxenanurag / zillow.py
Created July 2, 2019 01:20 — forked from scrapehero/zillow.py
Python 3 script to find real estate listings of properties up for sale on zillow.com
from lxml import html
import requests
import unicodecsv as csv
import argparse
import json
def clean(text):
if text:
return ' '.join(' '.join(text).split())
@saxenanurag
saxenanurag / tmux-cheatsheet.markdown
Created November 2, 2018 00:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@saxenanurag
saxenanurag / Makefile
Created August 29, 2017 14:17 — forked from jbgo/Makefile
My vagrant setup for python flask apps
SHELL = /bin/bash
WORKDIR = /vagrant
PSQL = sudo -u postgres psql
DBNAME = changeme
DBUSER = changeme_user
DBPASS = secret
db/console:
$(PSQL) $(DBNAME)
@saxenanurag
saxenanurag / Makefile
Created February 9, 2017 18:37 — forked from bbengfort/Makefile
Basic Python Project files - my Makefile and the dependencies that I have in everything.
# Shell to use with Make
SHELL := /bin/bash
# Set important Paths
PROJECT := # Set to your project name
LOCALPATH := $(CURDIR)/$(PROJECT)
PYTHONPATH := $(LOCALPATH)/
PYTHON_BIN := $(VIRTUAL_ENV)/bin
# Export targets not associated with files
@saxenanurag
saxenanurag / break.py
Created December 19, 2016 01:13 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
import code; code.interact(local=dict(globals(), **locals()))
@saxenanurag
saxenanurag / tip
Created August 8, 2016 02:38
python import tip
Useful tips:
import funky
print(funky)
print(funky.__file__)
This prints the path to the file where the module was found. Very useful when a module behaves in an strange way.
// Created by STRd6
// MIT License
// jquery.paste_image_reader.js
(function($) {
var defaults;
$.event.fix = (function(originalFix) {
return function(event) {
event = originalFix.apply(this, arguments);
if (event.type.indexOf('copy') === 0 || event.type.indexOf('paste') === 0) {
event.clipboardData = event.originalEvent.clipboardData;