Flush RAM and buffers
free && sync && echo 3 > /proc/sys/vm/drop_caches && free
Get process who are consuming RAM
ps aux --sort -rss
Get process tree
ps axjf
Kill process by name
<div style='position: relative; padding-bottom: 81%; height: 0; overflow: hidden;'> | |
<iframe id='iframe' src='http://flickrit.com/slideshowholder.php?height=80&size=big&setId=72157648831623920&caption=true&trans=1&theme=1&thumbnails=1&transition=0&layoutType=responsive&sort=0' scrolling='no' frameborder='0'style='width:100%; height:100%; position: absolute; top:0; left:0;' ></iframe> | |
</div> |
float f=... | |
if (*(int*)&f & 0x7FFFFFFF) { | |
*(int*)&f += n << 23; | |
} |
server { | |
listen 80 default_server; | |
server_name mtgfiddle.me; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
access_log /var/log/nginx/access_log combined; |
sudo apt-get install build-essential python-dev libmysqlclient-dev | |
sudo pip install virtualenv | |
mkdir dbfiller | |
cd dbfiller/ | |
virtualenv env | |
# env/bin/pip install MySQL-python #best for now to use sqlite3 | |
chmod -R a+rx var/log/nginx/ |
rsync -ah --progress source destination |
Flush RAM and buffers
free && sync && echo 3 > /proc/sys/vm/drop_caches && free
Get process who are consuming RAM
ps aux --sort -rss
Get process tree
ps axjf
Kill process by name
meteor build my_app
(inside app folder)./mongod --smallfiles --fork --logpath /var/log/mongod.log
(cd programs/server && npm install)
In screen the terminal multiplexer.
screen -S NewSession
ctrl
a
then n
ctrl
a
then d
screen -ls
screen -x pidOfSession
screen -X -S pidOfSession quit
ctrl
a
then |.ctrl
a
then S
(uppercase one).ctrl
a
then Q
(uppercase one).var to_send = {} | |
to_send.title = "title"; | |
to_send.content = "content"; | |
to_send.author = "aut"; | |
to_send.language = "css"; | |
to_send = JSON.stringify(to_send); | |
var request = new XMLHttpRequest(); | |
request.open('POST', 'http://localhost:3000/api/v1/new', true); | |
request.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); |
http://pokeapi.api-docs.io/v2.0
curl --request GET --url http://pokeapi.co/api/v2/pokemon/bulbasaur/