Skip to content

Instantly share code, notes, and snippets.

View jdevera's full-sized avatar

Jacobo de Vera jdevera

  • Hotjar
  • Tenerife, Spain
  • 13:21 (UTC +01:00)
  • X @jovianjake
View GitHub Profile
@jdevera
jdevera / vm-clean-up.sh
Last active May 18, 2024 18:39 — forked from mortn/vm-clean-up.sh
VM Clean Up (cleaning up Debian based system for use as template)
#!/bin/bash
# Clean up Apt
apt-get autoremove
apt-get autoclean
apt-get clean
# Generate new SSH host keys
for T in dsa rsa ecdsa; do
@jdevera
jdevera / tmuxp.sh
Created February 20, 2018 17:02 — forked from mlgill/tmuxp.sh
Execute parallel processes in arbitrary number of tmux panes
#!/bin/bash
# The "tmuxifier"
# Execute parallel processes in an arbitrary number of tmux panes
# This script requires the path to an existing script to
# execute in parallel. Optionally, the number of threads to
# and the name of the tmux session can be input. If threads
# and session name are not entered, threads are determined
# automatically and session names is set to a default.
@jdevera
jdevera / tmux.terminfo
Last active November 16, 2015 11:37 — forked from tarruda/tmux.terminfo
tmux terminfo for italics
# Custom terminfo for better using tmux with urxvt, 256colors and italics
# Compile/install with `tic tmux.terminfo`, then set $TERM to "tmux"
# (it requires a program that uses `tgetent` to obtain terminal
# information)
tmux|tmux with rxvt-unicode-256color client,
use=rxvt-unicode-256color,
use=screen,
@jdevera
jdevera / pr.md
Last active August 29, 2015 14:17 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@jdevera
jdevera / new_bashrc.sh
Created August 11, 2012 12:39 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc
@jdevera
jdevera / tree.md
Created April 24, 2012 08:36 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@jdevera
jdevera / screenutils.py
Created April 8, 2011 09:33 — forked from Christophe31/screenutils.py
Gnu screen handling in python
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Now this lib is on her own full repository and pypi page:
# http://github.com/Christophe31/screenutils
# http://pypi.python.org/pypi/screenutils
#
# This may not work with bpython, use python 2.6 or upper
#
# This program is free software. It comes without any warranty, to