Skip to content

Instantly share code, notes, and snippets.

View murielsilveira's full-sized avatar

Muriel Silveira murielsilveira

View GitHub Profile
# tmux tips
- https://gist.github.com/MohamedAlaa/2961058
- https://github.com/tmux-plugins/tpm
- https://github.com/tmux-plugins/tmux-resurrect
- https://github.com/tmux-plugins/tmux-continuum
- https://www.sitepoint.com/10-killer-tmux-tips/
### Keybase proof
I hereby claim:
* I am murielsilveira on github.
* I am murielsilveira (https://keybase.io/murielsilveira) on keybase.
* I have a public key ASA5H-rnxJedCPmv8C_ppYCqZhZrifo3KRGnmadC2IMuYAo
To claim this, I am signing this object:
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())
pip install awscli
aws s3 rm s3://<bucket-name> --recursive
aws s3 sync dist s3://<bucket-name> --acl public-read --cache-control "public, max-age=86400"
aws s3 cp dist/index.html s3://<bucket-name>/index.html --acl public-read --cache-control "public, max-age=60"
@murielsilveira
murielsilveira / github-diff-with-whitespace-ignored.js
Last active March 10, 2016 19:29
GitHub diff with whitespace ignored
javascript:(function(){
if (document.location.host === 'github.com') {
var query = document.location.search;
if (query === '') {
document.location = document.location + '?w=1';
} else if (query.indexOf('w=') === -1){
document.location = document.location + '&w=1';
} else {
var index = query.indexOf('w=');
var arr = query.substr(index).split('&');
#$AndroidToolPath = "${env:ProgramFiles(x86)}\Android\android-sdk\tools\android"
$AndroidToolPath = "$env:localappdata\Android\android-sdk\tools\android"
Function Get-AndroidSDKs() {
$output = & $AndroidToolPath list sdk --all
$sdks = $output |% {
if ($_ -match '(?<index>\d+)- (?<sdk>.+), revision (?<revision>[\d\.]+)') {
$sdk = New-Object PSObject
Add-Member -InputObject $sdk -MemberType NoteProperty -Name Index -Value $Matches.index
Add-Member -InputObject $sdk -MemberType NoteProperty -Name Name -Value $Matches.sdk
@murielsilveira
murielsilveira / gif.md
Last active February 29, 2016 20:10
Create gifs of a screen capture (mac)

Create gifs

	Dependency: brew install ffmpeg

	1. Record a video with Quicktime (File > New screen recording)
	2. ffmpeg -i path-to-the-video.mov -pix_fmt rgb24 -r 10 output.gif
import sys
import argparse
from getpass import getpass
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def navigate(card_number, user_name, passkey):
try:
browser = webdriver.Firefox()