Skip to content

Instantly share code, notes, and snippets.

View VictorHugoBatista's full-sized avatar
🛰️
Floating in the cyberspace

Victor Hugo Batista VictorHugoBatista

🛰️
Floating in the cyberspace
  • banQi
  • Internet
View GitHub Profile
@VictorHugoBatista
VictorHugoBatista / introrx.md
Created February 17, 2019 11:56 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@VictorHugoBatista
VictorHugoBatista / tmux-cheatsheet.markdown
Created October 14, 2018 13:34 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@VictorHugoBatista
VictorHugoBatista / sql_import.php
Created October 8, 2018 01:08 — forked from ricardobrg/sql_import.php
WPDB SQL File import
<?php
/* NOTICE
* This script imports SQL commands "as is".
* Double check the SQL commands before using it
* and BACKUP YOUR DATABASE.
* It needs some improvement to use wpdb->prepare.
*/
class WPSQLImporter{
/**
* Loads an SQL stream into the WordPress database one command at a time.
@VictorHugoBatista
VictorHugoBatista / fix-wordpress-permissions.sh
Created September 7, 2018 13:41 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory