Skip to content

Instantly share code, notes, and snippets.

@miztiik
miztiik / Speed-Essay-Abstract-Writing.md
Last active April 21, 2024 11:42
SPEED ESSAY / ABSTRACT WRITING

SPEED ESSAY / ABSTRACT WRITING

Take a one hour block of time and…

  • Set a timer for 10 minutes
  • Write out the first question
  • Write the first bullet point
  • Write a sentence using the bullet point
  • Read the sentence out loud
  • List the next bullet point
@miztiik
miztiik / add-multiple-remotes-to-git-repo.md
Last active December 26, 2023 13:22
Adding multiple remote url to git repo

Add Multiple Remotes URLs to git

Adding the first remote origin

git remote add origin remote_1_url
git remote set-url origin remote_1_url

# Set the default remote branch for the current local branch
git branch --set-upstream master
# or
@miztiik
miztiik / aws_sg_recipe.py
Created February 28, 2017 15:46 — forked from steder/aws_sg_recipe.py
Create and update AWS security groups using Python and Boto.
#!/usr/bin/env python
"""
Recipe for creating and updating security groups programmatically.
"""
import collections
import boto
@miztiik
miztiik / setup-headless-selenium-xvfb.sh
Last active May 23, 2023 20:00
Script to setup headless Selenium (uses Xvfb & Firefox) in Redhat
pip install selenium
pip install xvfbwrapper
yum install -y firefox
# Install the geckodriver
cd /tmp
curl -SO https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz | tar zxv - -C /usr/sbin
yum install -y xorg-x11-server-Xvfb
# yum install -y xorg-x11-Xvfb
# pip install pyvirtualdisplay
@miztiik
miztiik / reinvent.md
Created August 22, 2017 01:57 — forked from henrysher/reinvent.md
link for reinvent slides
@miztiik
miztiik / .gitignore
Created February 13, 2020 23:17
Sample .gitignore file for AWS CDK Python projects
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
# USAGE llog write to console
llog() {
echo "$(date '+%Y-%m-%d %H:%M:%S%s') $(printf ' %q' "$@")"
}
<NotepadPlus>
<UserLang name="AFL" ext="afl AFL">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="yes" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&quot;00&quot;00</Keywords>
@miztiik
miztiik / Notepad++_userDefineLang-for-Dockerfile.xml
Last active September 2, 2021 21:05 — forked from centic9/userDefineLang_Dockerfile.xml
notepad++ syntax highlighting for Dockerfiles
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03 04 00# 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@miztiik
miztiik / python-scrapy-install-centos.sh
Last active March 3, 2021 04:16
Installing scrapy in CentOS
# Install deltarpm to reduce the size of download
yum install -y deltarpm \
&& yum install -y python-pip \
&& pip install --upgrade pip
# Scrapy Pre-Requisites
yum install -y gcc libffi-devel python-devel openssl-devel
yum install -y libxslt-devel libxml++-devel libxml2-devel
pip install lxml incremental