Skip to content

Instantly share code, notes, and snippets.

🖖

Amir Rustamzadeh amirrustam

🖖
Block or report user

Report or block amirrustam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@amirrustam
amirrustam / gist:47115cac14b4f38c6fadb35c6c2bcd98
Created Jan 23, 2019
AWS Solutions Engineering Questions
View gist:47115cac14b4f38c6fadb35c6c2bcd98

AWS Solutions Engineer Questions

Datapipline

  • Streaming data pipeline whitepapers and/or sample architecture designs?
  • Kensis Steams vs MSK
  • Since the max size of a data blob streamed in Kensis is 1MB, what are some architecture patterns for handeling larger blob sizes?
    • Refrence data uploaded data to S3, same pattern used in SQS.
View python-requests-gevent-geventhttpclient
# coding: utf8
""" Attempt at gevent-compatible requests without any monkeypatching """
import geventhttpclient
from geventhttpclient import httplib as gehttplib
from geventhttpclient.useragent import CompatResponse
import httplib as _httplib
import requests
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View install_tmux_osx_no_brew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL http://downloads.sourceforge.net/tmux/tmux-1.5.tar.gz
curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz
# Extract them
tar xzf tmux-1.5.tar.gz
@amirrustam
amirrustam / gist:8c73eb2331ac1e0822a5
Created Mar 7, 2016
Fix Elementary OS Freya Flickering Problems
View gist:8c73eb2331ac1e0822a5
sudo apt-get install mesa-utils
sudo mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device"\n Identifier "Intel Graphics"\n Driver "Intel"\n Option "AccelMethod" "sna"\n Option "TearFree" "true"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf
sudo reboot
@amirrustam
amirrustam / swipe.js
Created Dec 28, 2015 — forked from SleepWalker/swipe.js
A simple swipe detection on vanilla js
View swipe.js
var touchstartX = 0;
var touchstartY = 0;
var touchendX = 0;
var touchendY = 0;
var gesuredZone = document.getElementById('gesuredZone');
gesuredZone.addEventListener('touchstart', function(event) {
touchstartX = event.screenX;
touchstartY = event.screenY;
@amirrustam
amirrustam / readme.md
Created Dec 24, 2015 — forked from livingston/readme.md
Vanilla JavaScript Templates
View readme.md

Usage

var welcome_user = new Template('#{welcome} #{name}!!');

welcome_user.parse({ welcome: "Hello", name: "John" });
//returns "Hello John!!"

welcome_user.parse({ welcome: "Hola", name: "Peter" });
You can’t perform that action at this time.