Skip to content

Instantly share code, notes, and snippets.

View andreztz's full-sized avatar
🔨
High tech, low life.

André P. Santos andreztz

🔨
High tech, low life.
View GitHub Profile
@andreztz
andreztz / nautilus-mass-file-renamer
Created March 30, 2016 07:06
Nautilus script for mass file renaming
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Nautilus Mass File Renamer is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@andreztz
andreztz / angular-bootstrap-nav.html
Created April 2, 2016 01:12 — forked from fpv83/angular-bootstrap-nav.html
angular navbar directive for twitter bootstrap with the aid of bootstrap.ui
<!DOCTYPE html>
<html data-ng-app="webapp">
<head>
<title>angular nav</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{
padding-top: 70px;
}
@andreztz
andreztz / Git push deployment in 7 easy steps.md
Created July 2, 2016 23:34 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@andreztz
andreztz / breakpoints.css
Created July 14, 2016 19:41 — forked from MatthewEppelsheimer/breakpoints.css
Responsive Break Point Media Query Boilerplate
// Mobile First
@media screen and (min-width: 321px) { // iPhone landscape
}
@media screen and (min-width: 481px) { // iPad portrait
}
@andreztz
andreztz / vagrant.md
Created September 6, 2016 21:33 — forked from guilhermewop/vagrant.md
vagrant instructions

Vagrant

Instalação do Vagrant

http://files.vagrantup.com/packages/7ec0ee1d00a916f80b109a298bab08e391945243/vagrant_1.2.7_i686.deb
@andreztz
andreztz / tmux.md
Created September 22, 2016 08:01 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@andreztz
andreztz / list2dict.py
Created October 3, 2016 20:29 — forked from f0t0n/list2dict.py
Converts lists of bookmarks in directories to dictionaries.
#!/usr/bin/env python
def list_to_dict(pages):
return {page['name']: page for page in pages}
def convert_bookmarks(bookmarks):
for root, directory in bookmarks['roots'].iteritems():
directory['children'] = list_to_dict(directory['children'])
if __name__ == '__main__':
@andreztz
andreztz / pytumblr_example.py
Created November 14, 2016 03:17 — forked from 140am/pytumblr_example.py
Example of using the Python Tumblr API v2 Client
""" Tumblr API Example - Python CLI
"""
import oauth2
import urlparse
import pytumblr
REQUEST_TOKEN_URL = 'http://www.tumblr.com/oauth/request_token'
AUTHORIZATION_URL = 'http://www.tumblr.com/oauth/authorize'
ACCESS_TOKEN_URL = 'http://www.tumblr.com/oauth/access_token'
@andreztz
andreztz / PyGameMP3Player.py
Created March 7, 2017 08:02 — forked from juehan/PyGameMP3Player.py
MP3Player Using PyGame
'''
Created on 2012. 2. 19.
This module is for playing mp3 (limited) and wav formatted audio file
@author: John
'''
import pygame
def playsound(soundfile):
"""Play sound through default mixer channel in blocking manner.
This will load the whole sound into memory before playback
@andreztz
andreztz / arch-install.sh
Created June 6, 2017 15:18 — forked from magnunleno/arch-install.sh
Arch Linux Install Script (pt-BR)
#!/bin/bash
# encoding: utf-8
##################################################
# Variaveis #
##################################################
# Nome do Computador
HOSTN=Arch-VM
# Localização. Verifique o diretório /usr/share/zoneinfo/<Zone>/<SubZone>