Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Javier Madrid jamc92

🎯
Focusing
View GitHub Profile
View gist:a98e9368dbe1dcbfce7198c16b862c92
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active Jul 6, 2021
Uninstall nodejs from OSX Yosemite
View gist:d75101d9bdf764c890ef
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@staltz
staltz / introrx.md
Last active Aug 2, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@anibal
anibal / te-gusta-programar-y-quieres-irte-de-venezuela.md
Last active Jan 12, 2020
¿Te gusta programar y quieres irte de Venezuela?
View te-gusta-programar-y-quieres-irte-de-venezuela.md

SI

  • Quieres un trabajo con el que te puedas divertir mientras aprendes lo suficiente para irte de Venezuela con buenas oportunidades en el exterior.

Y

  • Te encanta programar
  • En serio, es indispensable que te apasione programar.
  • Programas hasta en tu tiempo libre como un pasatiempo.
  • Te sientes cómodo en whatever shell de Linux.
@chuckreynolds
chuckreynolds / wordpress-change-domain-migration.sql
Last active Jul 27, 2021
UPDATE: Use WP-CLI find-replace command to edit URLs in your database. https://developer.wordpress.org/cli/commands/search-replace/ Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work. __STEP1: al…
View wordpress-change-domain-migration.sql
/* Use WP-CLI instead https://developer.wordpress.org/cli/commands/search-replace/ */
SET @oldsite='http://oldsite.com';
SET @newsite='http://newsite.com';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite);
/* only uncomment next line if you want all your current posts to post to RSS again as new */