Skip to content

Instantly share code, notes, and snippets.

View luisuribe's full-sized avatar

Luis Uribe luisuribe

View GitHub Profile
@luisuribe
luisuribe / gist:c639ad8de6051692055f05c311608d30
Created March 19, 2024 14:42
Festival Estereo Picnic - Calendarios
Festival Estereo Picnic - Escenario Adidas
https://calendar.google.com/calendar/u/0?cid=MmExNTA2ODI5MGNhYzQ5ZTAyOTI1NGY3Y2Q4NDZiZWZjNTcyNmE2MGI0NGE4MzE1Nzc5NDVmODhiMDdiNDBhZkBncm91cC5jYWxlbmRhci5nb29nbGUuY29t
Festival Estereo Picnic - Escenario CeraVe
https://calendar.google.com/calendar/u/0?cid=NGE4M2M4M2RlNzIzMDFjYThkN2I2MjhmOTdkMDNjNTk1MjdmNzFlNTY1OGVkYWUxOTYxMmEyZjQ1OTkzMTY0NEBncm91cC5jYWxlbmRhci5nb29nbGUuY29t
Festival EStereo Picnic - Escenario Colsubsidio
https://calendar.google.com/calendar/u/0?cid=YWUyNWIxNWUxN2ZjZGVkYjU2NTZiYTMzNjBkYTlkZTZkMWM0YzM1Y2E4MjBjYzIyZDQxMmZmOTA1NjZlNzVhYUBncm91cC5jYWxlbmRhci5nb29nbGUuY29t
Festival Estero Picnic - Escenario Jhonnie Walker
@luisuribe
luisuribe / curl.md
Created October 7, 2021 19:51 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@luisuribe
luisuribe / git_commands_i_always_forgot.txt
Created June 16, 2020 16:56
git_commands_i_always_forgot.txt
# delete merged branches
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
git branch -r --merged | grep -v master | sed 's/origin\///' | xargs -n 1 git push --delete origin

Keybase proof

I hereby claim:

  • I am luisuribe on github.
  • I am acme (https://keybase.io/acme) on keybase.
  • I have a public key whose fingerprint is 2163 11EC A2DC D9F1 ECC6 D8C4 F6C7 EBCD 00BD 0D4C

To claim this, I am signing this object:

@luisuribe
luisuribe / sublime
Last active January 19, 2016 19:54
sublime text setup
https://packagecontrol.io/installation
https://github.com/colibriapps/monokaiJsonPlus
https://github.com/dzhibas/SublimePrettyJson
@luisuribe
luisuribe / flac2mp3
Created February 12, 2014 15:22
flac to mp3 with tags
for a in *.flac; do
# give output correct extension
OUTF="${a[@]/%flac/mp3}"
# get the tags
ARTIST=$(metaflac "$a" --show-tag=ARTIST | sed s/.*=//g)
TITLE=$(metaflac "$a" --show-tag=TITLE | sed s/.*=//g)
ALBUM=$(metaflac "$a" --show-tag=ALBUM | sed s/.*=//g)
GENRE=$(metaflac "$a" --show-tag=GENRE | sed s/.*=//g)
TRACKNUMBER=$(metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g)
@luisuribe
luisuribe / pagination.ctp
Created November 20, 2012 22:36 — forked from slywalker/pagination.ctp
pagination element for CakePHP 1.x on twitter bootstrap
<?php
if (!isset($modules)) {
$modulus = 11;
}
if (!isset($model)) {
$models = ClassRegistry::keys();
$model = Inflector::camelize(current($models));
}
?>
<div class="pagination">
@luisuribe
luisuribe / paging.ctp
Created August 8, 2012 22:37 — forked from justinyost/paging.ctp
Paging Element for Twitter Bootstrap and CakePHP 2.0+
<?php $span = isset($span) ? $span : 8; ?>
<?php $page = isset($this->request->params['named']['page']) ? $this->request->params['named']['page'] : 1; ?>
<div class="pagination">
<ul>
<?php echo $this->Paginator->prev(
'&larr; ' . __('Previous'),
array(
'escape' => false,
'tag' => 'li'
),
@luisuribe
luisuribe / gist:3048290
Created July 4, 2012 16:49
block facebook using iptables
FACEBOOK_ALLOW="192.168.1.12 192.168.1.14 192.168.1.111"
iptables -N FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 443 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 80 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 80 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 80 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.171.242.0-69.171.242.255 --dport 80 -j FACEBOOK
@luisuribe
luisuribe / gist:2063009
Created March 17, 2012 17:21
redmine queries
-- Select the sum of hours invested in a roadmap
select i.id, i.subject, s.name, sum(t.hours)
FROM issue_statuses s, issues i
LEFT JOIN time_entries t
ON (t.issue_id = i.id)
WHERE i.project_id = XX and i.fixed_version_id = XX
AND i.status_id = s.id
GROUP BY 1,2,3;