Skip to content

Instantly share code, notes, and snippets.

View igormorgado's full-sized avatar
🙃

Igor Morgado igormorgado

🙃
View GitHub Profile
! 2020-12-24 https://tieba.baidu.com
tieba.baidu.com##.tieba-login-background
! 2020-12-24 https://gauchazh.clicrbs.com.br
gauchazh.clicrbs.com.br##.g-ywwgeq
gauchazh.clicrbs.com.br###privacy-tools-banner
! 2020-12-25 https://www1.folha.uol.com.br
www1.folha.uol.com.br##.c-push-notification
@jayktaylor
jayktaylor / guide.md
Last active April 13, 2022 08:23
Instructions for installing Python 3.5 using pyenv on Debian Jessie

Installing Python 3.5 on Debian Jessie with pyenv

Debian Jessie does not come with the correct Python version out of the box, and instead comes with Python 2. To be able to install Python 3(.5), we have a few options. We could build and install from source, but as per Debian's website, we shouldn't do this. Instead, we will use pyenv, a tool that allows users to switch Python versions easily without breaking their system.

Installing pyenv

To install pyenv, we will use the official installer.

curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
@gafferongames
gafferongames / delta_compression.cpp
Last active April 11, 2024 22:46
Delta Compression
/*
Delta Compression by Glenn Fiedler.
This source code is placed in the public domain.
http://gafferongames.com/2015/03/14/the-networked-physics-data-compression-challenge/
*/
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
@petrhosek
petrhosek / tmux.conf
Created January 16, 2015 16:39
Irssi Tmux integration
new-window -n irssi irssi
split-window -h -p15 -t0 ‘/bin/cat ~/.irssi/nicklistfifo’
send-keys -t1 "tmux send-keys -t0 \"irssi\" C-m; \
tmux send-keys -t0 \"/set nicklist_height \$(stty size | cut -f1 -d' ' -)\" C-m; \
tmux send-keys -t0 \"/set nicklist_width \$(stty size | cut -f2 -d' ' -)\" C-m; \
tmux send-keys -t0 \"/nicklist fifo\" C-m; \
cat ~/.irssi/nicklistfifo" C-m
select-pane -t
@serge-sans-paille
serge-sans-paille / functional_style.py
Created September 23, 2014 13:15
Python - functional style!
import ast
import sys
import shutil
import unparse
import unittest
import doctest
import StringIO
import os
from copy import deepcopy
@basilfx
basilfx / tmux-notify.pl
Last active November 29, 2021 11:01
Irssi and tmux-notify
use strict;
use warnings;
use vars qw($VERSION %IRSSI);
use Irssi;
# Script info
$VERSION = '0.1';
%IRSSI = (
authors => 'Bas Stottelaar',
@ps
ps / gist:9671636
Created March 20, 2014 19:16
Firefox userChrome.css
This is the setting placed in ~/.mozilla/firefox/<default-user-profile>/chrome/userChrome.css:
/*******
START
********/
/*Do not remove the @namespace line -- it's required for correct functioning*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*Toolbar & menu font size*/
@miguelmota
miguelmota / README.md
Last active March 16, 2024 12:52
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 24, 2024 12:19
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname