readlink -f $(which command)
lsof -i :[port]
-
Make all swap off
sudo swapoff -a -
Resize the swapfile
| { | |
| "_id" : "<ObjectId>", | |
| "picture" : "<String>", | |
| "name" : "<String>", | |
| "email" : "<String>", | |
| "city" : "<String>", | |
| "location" : { | |
| "type" : "Point", | |
| "coordinates" : ["<longitude>", "<latitude>"] | |
| } |
| module.exports = { | |
| find (req, res) { | |
| Model.native((error, collection) => { | |
| if (error) return res.badRequest(error); | |
| return collection.aggregate([{ | |
| $match: { | |
| id: { $in: req.ids } | |
| } | |
| }, | |
| { |
| // in /usr/share/applications/Appname.desktop | |
| // Don't forget to sudo | |
| [Desktop Entry] | |
| Name=appname | |
| Type=Application | |
| Exec=path/to/executable | |
| Terminal=false | |
| Icon=path/to/icon | |
| Comment=Description |
| #include <bitset> | |
| using namespace std; | |
| bool is_power_of_two (int N) { | |
| bitset<100000> foo(N); //bitset<numberOfBitsDesired> | |
| return foo.count() == 1; | |
| } |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: