Skip to content

Instantly share code, notes, and snippets.


Edward Fitz Bucud Abucay soardex

View GitHub Profile
soardex / gist:3e71337c0b595f9a717c046820169ced
Created Apr 25, 2017
The Missing Piece Vim Configuration
View gist:3e71337c0b595f9a717c046820169ced
"noremap <left> <nop>
"noremap <right> <nop>
"noremap <up> <nop>
"noremap <down> <nop>
"set exrc
"set secure
soardex / gist:8a56f5856bff417a2c96ec1fd26906e5
Created Mar 25, 2017
Use Test User To Test Messenger Bot
View gist:8a56f5856bff417a2c96ec1fd26906e5
To get it to work please follow the steps:
1) Create test user by toggling the Authorize test users for this app and grant permissions "manage_pages" and "page_messaging".
2) Use the Edit Button and get an access token for this user (using v2.6). Please save this for later.
3) Use edit button to login as the test user
4) After login, create page as the test user
5) Use the user access token for the test user to get the page access token for this user. You can do this with the following call:
View gist:17a2abaa4f393704e7fc6f6f9fea17c1
# /etc/login.conf
# cap_mkdb /etc/login.conf
# /etc/profile
setenv LANG en_US.UTF-8
setenv CHARSET UTF-8
View gist:27d598fc149d734807f415cc320df7d4
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'scrooloose/nerdcommenter'
Plug 'easymotion/vim-easymotion'
Plug 'raimondi/delimitmate'
Plug 'mileszs/ack.vim'
Plug 'kien/ctrlp.vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-rails'
soardex / gist:410d07d1b0b6a04ced09457a0ee5cec9
Created Feb 26, 2017
Expand FreeBSD Using The Corrupt on Gpart
View gist:410d07d1b0b6a04ced09457a0ee5cec9
gpart show
gpart recover da0
gpart resize -i 2 -s 19G da0
zpool list
zpool online -e zroot da0p2
soardex / gist:192071400541f8d894ec8b63315df73b
Created Feb 26, 2017
Open Port On Existing SSH Connection
View gist:192071400541f8d894ec8b63315df73b
<ENTER>~C - To open command line
<ENTER>~? - To open help files
<ENTER>~# - To list forwarded connections
View gist:132067494357ba4701c19b002318df13
openssl genrsa 2048 | tee stunnel.key
openssl req -new -key stunnel.key -x509 -days 365 -out stunnel.crt
openssl dhparam 2048 | tee stunnel.dhp
cat stunnel.crt stunnel.key stunnel.dhp | tee stunnel.pem
View gist:cddb256b888801c66e3e7bf39950af82
;; forward all incoming traffic to port 8080 from port 80
netsh interface portproxy add v4tov4 listenport=80 listenaddress= connectport=8080 connectaddress=
;; get ports that are open
netstat -ano | findstr :8080
;; show all port proxies
netsh interface portproxy show all
;; clear all forwarding rules
View gist:56341fbd26892d54c7d6fffdd64e9c4b
FROM python:2.7-alpine
MAINTAINER Edward Fitz Abucay <>
USER root
RUN mkdir -p $JUROJIN
View gist:0daadbce5ab11eb3e4e0c50ce1a58f3e
var file = cat('./MOCK_DATA.json');
use yoopur;
db.auth('username', 'password');
var o = JSON.parse(file);