Skip to content

Instantly share code, notes, and snippets.

View lucasefe's full-sized avatar
💭
Busy building stuff

Lucas Florio lucasefe

💭
Busy building stuff
  • Community Phone
  • Buenos Aires, Argentina
  • X @lucasefe
View GitHub Profile
while true;do clear; curl https://banco.santanderrio.com.ar/exec/cotizacion/index.jsp 2> /dev/null | grep \<td\>| sed -n 2p|awk '{ gsub("[<td>\/]*[[:blank:]]*","");print}'; sleep 60; done;
@obihann
obihann / sticky-panes.md
Last active March 1, 2018 12:45
tmux `sticky` panes

TMUX sticky panes

Step 1

Create the session that will manage the nested/sticky panes

  • create new session named shared

      $ tmux new -s shared
    
  • rename current window

Para recategorizarte en el Monotributo, la aplicación de AFIP da error de Javascript por todos lados.
A menos que entres con Internet Explorer...
Para hacer el trámite en Chrome, Firefox o cualquier browser decente:
- Entrá con tu clave fiscal
- Abrí la aplicación de "Monotributo"
- Ignorá el formulario y abrí la siguiente URL:
https://servicios1.afip.gov.ar/tramites_con_clave_fiscal/monotributo/valida_cuit.asp?tramite=3&cuit=___TU_CUIT___&intesoc=N&eventual=N&coop=N&cuitcoop=0
@ceneon
ceneon / gist:8222574
Created January 2, 2014 17:13
Recategorización de Monotributo sin Internet Explorer
Para recategorizarte en el Monotributo, la aplicación de AFIP da error de Javascript por todos lados.
A menos que entres con Internet Explorer...
Para hacer el trámite en Chrome, Firefox o cualquier browser decente:
- Entrá con tu clave fiscal
- Abrí la aplicación de "Monotributo"
- Ignorá el formulario y abrí la siguiente URL:
https://servicios1.afip.gov.ar/tramites_con_clave_fiscal/monotributo/valida_cuit.asp?tramite=3&cuit=___TU_CUIT___&intesoc=N&eventual=N&coop=N&cuitcoop=0
@ldmosquera
ldmosquera / analyze.rb
Last active December 20, 2015 14:19
Analyze Redis and produce CSV with stats, summarizing by "pattern" (foo:bar:123, foo:bar:234, etc)
#!/usr/bin/env ruby
#usage: analyze.rb REDIS_PORT
#produces CSV with stats by key pattern
#ex: [foo:bar:123, foo:bar:234] -> foo:bar:ID
require 'rubygems'
require 'redis'
REDIS_PORT = (ARGV[0] || 6379).to_i
@soveran
soveran / config.ru
Last active December 18, 2015 00:49
Basic structure for a Cuba application.
require "cuba"
# Here you can add helpers, models, filters, services, etc.
Dir["./routes/**/*.rb"].each { |rb| require rb }
Cuba.use Rack::MethodOverride
Cuba.use Rack::Session::Cookie,
key: "_app_name_",
secret: "_app_secret_"
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 25, 2024 18:47
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# ... app code ....
require 'ruby-prof'
run(lambda do |env|
case env['PATH_INFO']
when '/__START__' then
RubyProf.start
Rack::Response.new("Start profile").finish
when '/__STOP__' then
@jnx
jnx / rbenv-install-system-wide.sh
Created October 1, 2011 20:09
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@schacon
schacon / gist:942899
Created April 26, 2011 19:19
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete