Skip to content

Instantly share code, notes, and snippets.

View rsouza01's full-sized avatar
🎯
Focusing

Rodrigo de Souza rsouza01

🎯
Focusing
View GitHub Profile
@rsouza01
rsouza01 / python_import.py
Last active December 1, 2015 17:25
How to know which import is used in a python source
import shit
# Sometimes you want to know where is the file you are importing.
# This piece of code shows how.
print shit.__file__
@rsouza01
rsouza01 / makefile.latex
Last active December 6, 2015 16:50
Makefile for processing latex
SHELL=/bin/bash
source = "FILENAME"
pdf:
pdflatex $(source)
bibtex $(source)
pdflatex $(source)
pdflatex $(source)
function getCNPJ(){
var n1 = Math.round(Math.random()*9);
var n2 = Math.round(Math.random()*9);
var n3 = Math.round(Math.random()*9);
var n4 = Math.round(Math.random()*9);
var n5 = Math.round(Math.random()*9);
var n6 = Math.round(Math.random()*9);
var n7 = Math.round(Math.random()*9);
var n8 = Math.round(Math.random()*9);
var n9 = 0;
@rsouza01
rsouza01 / site.url
Created January 22, 2016 23:19
URL file format example
[InternetShortcut]
URL=http://www.site.com
@rsouza01
rsouza01 / .emacs
Last active March 21, 2016 23:28
Settings for my Emacs
;;Add UTF-8 as alias
(set-language-environment "UTF-8")
(set-default-coding-systems 'utf-8)
(define-coding-system-alias 'UTF-8 'utf-8)
;;Disables toolbar
;;(tool-bar-mode -1)
;;Disables scroll
(toggle-scroll-bar -1)
@rsouza01
rsouza01 / gist:0b0ce23e945695a5b3fd
Created March 16, 2016 13:04
Massa solar (gnuplot)
set xlabel "M [M_{/CMSY10 \014}]" offset 0,0
@rsouza01
rsouza01 / gist:b159fdb154fc87c9c2d7
Created March 27, 2016 13:54
Formato de Tag no Puddletag
%discnumber%$num(%track%,2) - %artist% - %title%
jad -d . -s java -r **/*.class
-d <dir> - directory for output files
-s - output file extension (default: .jad)
-r - restore package directory structure
@rsouza01
rsouza01 / gtk.css
Last active January 25, 2021 12:29
Diminui a barra de título do Gnome 3.18 ( ~/.config/gtk-3.0/gtk.css)
<!--
Diminui a barra de título do Gnome 3
Criar o arquivo em
~/.config/gtk-3.0/gtk.css
-->
.header-bar.default-decoration {
padding-top: 3px;
padding-bottom: 3px;
font-size: 0.8em;
@rsouza01
rsouza01 / gnome_buttons.sh
Last active May 9, 2017 03:47
Coloca os botões das janelas do gnome do lado esquerdo.
#!/bin/bash
#
#
# gnome_buttons.sh
#
# Author: Rodrigo Alvares de Souza
# rsouza01@gmail.com
#
#
# History: