Skip to content

Instantly share code, notes, and snippets.

View lucsh's full-sized avatar
🎯
Focusing

Lucas Del Pozzi lucsh

🎯
Focusing
View GitHub Profile

Fix permissions

find copied-directory -type d -exec chmod 755 {} \;
find copied-directory -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

First, create a new session:

screen -d -m -S multisession

Attach to it:

screen -r multisession

Remove the file called Rakefile:

git filter-branch --force --index-filter \
  'git rm --cached --ignore-unmatch Rakefile' \
  --prune-empty --tag-name-filter cat -- --all

git push --all --force
@lucsh
lucsh / tab.bash
Created October 6, 2020 12:57 — forked from bobthecow/tab.bash
Open new Terminal tabs from the command line
#!/bin/bash
#
# Open new Terminal tabs from the command line
#
# Author: Justin Hileman (http://justinhileman.com)
#
# Installation:
# Add the following function to your `.bashrc` or `.bash_profile`,
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc`
#
@lucsh
lucsh / cloudSettings
Last active April 4, 2019 23:31
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-04T23:31:16.231Z","extensionVersion":"v3.2.4"}
@lucsh
lucsh / localidades.csv
Created July 4, 2018 16:28
Listado de Localidades Argentinas con Código Postal (FK con provincias.csv)
We can't make this file beautiful and searchable because it's too large.
id;cp;localidad;idProvincia
1;1761;20 De Junio;1
2;6660;25 De Mayo;1
3;6405;30 De Agosto;1
4;1776;9 De Abril;1
5;6500;9 De Julio Estafeta Nº2;1
6;6500;9 De Julio (Partido Nueve De Julio);1
7;1903;Abasto;1
8;7228;Abbott;1
9;6450;Abel;1
@lucsh
lucsh / provincias.csv
Created July 4, 2018 16:26
Listado de Provincias Argentinas con ID (FK con Paises)
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
id;provincia;idPais
1;Buenos Aires;1
2;Catamarca;1
3;Chaco;1
4;Chubut;1
5;Córdoba;1
6;Corrientes;1
7;Entre Ríos;1
8;Formosa;1
9;Jujuy;1
@lucsh
lucsh / paises.csv
Created July 4, 2018 16:25
Listado de Paises con ID
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
id;pais
1;Argentina
2;Afghanestan
3;Albania
4;Alemania
5;Andorra
6;Angola
7;Anguilla
8;Antártida
9;Antigua y Barbuda
@lucsh
lucsh / gruvbox-dark.itermcolors
Created April 21, 2018 22:26
gruvbox iTerm color scheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.11759774386882782</real>
@lucsh
lucsh / aliases
Created October 1, 2017 21:58
Bash Aliases
# Aliases
alias cdrep='cd /Users/lucas/Documents/repos'
alias cd..="cd .."
alias ls='ls -GFh'
alias ll='ls -la'
alias fucking='sudo'
alias st='open -a "Sublime Text"'
alias at='open -a "Atom"'
alias alog='tail -f /var/log/apache2/error_log'