This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LS_COLORS='bd=38;5;68:ca=38;5;17:cd=38;5;113;1:di=38;5;30:do=38;5;127:ex=38;5;208;1:pi=38;5;126:fi=38;5;253:ln=target:mh=38;5;222;1:or=48;5;196;38;5;232;1:ow=38;5;220;1:sg=48;5;3;38;5;0:su=38;5;220;1;3;100;1:so=38;5;197:st=38;5;86;48;5;234:tw=48;5;235;38;5;139;3:*LS_COLORS=48;5;89;38;5;197;1;3;4;7:*README=38;5;220;1:*LICENSE=38;5;220;1:*COPYING=38;5;220;1:*INSTALL=38;5;220;1:*COPYRIGHT=38;5;220;1:*AUTHORS=38;5;220;1:*HISTORY=38;5;220;1:*CONTRIBUTORS=38;5;220;1:*PATENTS=38;5;220;1:*VERSION=38;5;220;1:*NOTICE=38;5;220;1:*CHANGES=38;5;220;1:*.log=38;5;190:*.txt=38;5;253:*.etx=38;5;184:*.info=38;5;184:*.markdown=38;5;184:*.md=38;5;184:*.mkd=38;5;184:*.nfo=38;5;184:*.pod=38;5;184:*.tex=38;5;184:*.textile=38;5;184:*.json=38;5;178:*.msg=38;5;178:*.pgn=38;5;178:*.rss=38;5;178:*.xml=38;5;178:*.yml=38;5;178:*.cbr=38;5;141:*.cbz=38;5;141:*.chm=38;5;141:*.djvu=38;5;141:*.pdf=38;5;203:*.PDF=38;5;203:*.docm=38;5;111;4:*.doc=38;5;111:*.docx=38;5;111:*.eps=38;5;111:*.ps=38;5;111:*.odb=38;5;111:*.odt=38;5;111:*.odp=38; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANT_LOG=info vagrant up | |
C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler.rb:18:in `replace': Invalid argument - ruby_setenv(LS_COLORS) (Errno::EINVAL) | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler.rb:18:in `<module:Bundler>' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler.rb:15:in `<top (required)>' | |
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require' | |
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require' | |
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/bundler.rb:7:in `<top (required)>' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/pre-rubygems.rb:19:in `require_relative' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagran |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim macros/snippets c/php python | |
https://github.com/shyiko/commacd , cambiando de directorios eficientemente |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://raw.githubusercontent.com/chilicuil/dotfiles/master/.vimrc | |
http://vimcasts.org/ | |
http://learnvimscriptthehardway.stevelosh.com/ | |
https://github.com/garybernhardt/dotfiles/blob/master/.vimrc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#https://docs.mongodb.org/v3.0/tutorial/install-mongodb-on-ubuntu/ | |
locale-gen UTF-8 | |
apt-get update && apt-get install squid-deb-proxy-client #accelerate download process if there is a local apt-proxy nearby | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
apt-get update | |
apt-get install -y mongodb-org=3.0.10 mongodb-org-server=3.0.10 mongodb-org-shell=3.0.10 mongodb-org-mongos=3.0.10 mongodb-org-tools=3.0.10 | |
echo "mongodb-org hold" | dpkg --set-selections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mails="mail@domain.tld" | |
from="No reply <no-reply@javier.io>" | |
subject="Monthly Bedrock Linux IRC Meeting reminder [DATE_NEXT_MEETING] -> ETA_TILL_NEXT_MEETING" | |
msg="Next Bedrock Linux IRC meeting is around the corner! | |
Prepare yourself and join the conversation at: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_daemonize() | |
{ #daemonize an external command | |
#http://blog.n01se.net/blog-n01se-net-p-145.html | |
[ -z "${1}" ] && return 1 | |
( # 1. fork, to guarantee the child is not a process | |
# group leader, necessary for setsid) and have the | |
# parent exit (to allow control to return to the shell) | |
# 2. redirect stdin/stdout/stderr before running child | |
[ -t 0 ] && exec </dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#postinst | |
_suspend_dpkg_process() | |
{ | |
rm -rf /var/lib/dpkg/updates.suspended/ | |
mv /var/lib/dpkg/lock /var/lib/dpkg/lock.suspended | |
mv /var/lib/dpkg/updates/ /var/lib/dpkg/updates.suspended | |
mkdir /var/lib/dpkg/updates/ | |
mv /var/cache/apt/archives/lock /var/cache/apt/archives/lock.suspended |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
_basename() | |
{ | |
[ -z "${1}" ] && return 1 || _basename_var_name="${1}" | |
[ -z "${2}" ] || _basename_var_suffix="${2}" | |
if [ -n "${_basename_var_suffix}" ] && [ "${#_basename_var_name}" -gt "${#2}" ]; then | |
_basename_var_name="${_basename_var_name%$_basename_var_suffix}" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
#{stdenv, fetchurl}: | |
stdenv.mkDerivation { | |
name = "trash-0.1"; | |
src = fetchurl { | |
url = https://rawgit.com/chilicuil/learn/master/sh/tools/trash; | |
sha256 = "0fe78144273d6afac1cef15de4a768ceb7f689a490b3c89110179df61401afae"; | |
}; |