Skip to content

Instantly share code, notes, and snippets.

@phanngoc
phanngoc / infb.py
Created August 16, 2017 08:21 — forked from ruel/infb.py
A script to scrape information from your facebook friends.
#!/usr/bin/python
'''
InFB - Information Facebook
Usage: infb.py [email protected] password
http://ruel.me
Copyright (c) 2011, Ruel Pagayon
All rights reserved.
@phanngoc
phanngoc / php-soap.php
Created June 22, 2017 08:39 — forked from akalongman/php-soap.php
PHP soap client example
ini_set('soap.wsdl_cache_enabled', 0);
ini_set('soap.wsdl_cache_ttl', 900);
ini_set('default_socket_timeout', 15);
$params = array('param1'=>$param1);
$wsdl = 'http://service_url/method?WSDL';
@phanngoc
phanngoc / ansible-ubuntu-16.4.md
Created May 18, 2017 03:00 — forked from diegopacheco/ansible-ubuntu-16.4.md
How to Install Ansible Ubuntu 16.04 LTS?
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

sudo echo "[localhost]" > ~/ansible_hosts
sudo echo "localhost ansible_connection=local" >> ~/ansible_hosts
sudo vim /etc/ansible/hosts 
[127.0.0.1]
127.0.0.1 ansible_connection=local
@phanngoc
phanngoc / code-1.htm
Last active August 29, 2015 14:23 — forked from bennadel/code-1.htm
<!DOCTYPE HTML>
<html>
<head>
<title>Enable And Disable jQuery Event Handlers</title>
<style type="text/css">
#modal {
background-color: #FAFAFA ;
border: 1px solid #C0C0C0 ;
display: none ;
@phanngoc
phanngoc / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console