Skip to content

Instantly share code, notes, and snippets.

View nathanjo's full-sized avatar
💻
Focusing

Jonathan Himbing nathanjo

💻
Focusing
View GitHub Profile
@nathanjo
nathanjo / server.md
Created January 4, 2021 09:45 — forked from jtadeulopes/server.md
Server setup with ubuntu, nginx and puma for rails app.

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone

@nathanjo
nathanjo / curl.md
Created November 11, 2020 15:38 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@nathanjo
nathanjo / README.md
Last active July 7, 2016 08:41
Toy Simulator using Ruby

TOY SIMULATOR

Description

  • The application is a simulation of a toy robot moving on a square table top, of dimensions 5 units by 5 units.
  • There are no other obstructions on the table surface.
  • The robot is free to roam around the surface of the table, but must be prevented from falling to destruction. Any movement that would result in the robot falling from the table must be prevented; however, further valid movement commands must still be allowed.