Installing Node.js via Package Manager 15.06.12

It installs current stable Node on the current stable ubuntu.

If you want to compile Node C++ modules:

Or configure shell script for install node.js using http://apptob.org

List installed gems 01.05.12

How do I know what gems are installed on my machine?

The command “gem list” will list all gems whose name starts with the given string. If no string is provided, all gems are listed.

Example command:

Command line response:

*** LOCAL GEMS ***

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)

How to Get Your Facebook Application Access Token 27.04.12

I recently needed to create some test Facebook users, but ran into a problem when I needed to get my application’s access token. So I ended up searching a bit and experimenting, and it’s simple. Turns out all you need is your application id and secret, which is right there on your application profile page (if your the developer for it). Then you just hit the oauth/authorize endpoint of the graph API, and you get back the access token:


curl "https://graph.facebook.com/oauth/access_token
?grant_type=client_credentials
&client_id=11111111
&client_secret=9999999999"

When You Need An Application Access Token
You need to use a Facebook application access token when you have a process that acts on behalf of the application, rather than on behalf of a particular user. This happens when you access your Facebook Insights data for your app via the graph, and also when you want to create test Facebook users for your app.

Restore Iptables Rules in Ubuntu 22.04.12


$ iptables-restore < /home/user/working.iptables.rules

Save Iptables Rules in Ubuntu 22.04.12


$ iptables-save > /home/user/working.iptables.rules