Skip to content

Instantly share code, notes, and snippets.

View ulricaskarin's full-sized avatar

Ulrica Skarin ulricaskarin

View GitHub Profile
@ulricaskarin
ulricaskarin / .htaccess
Last active April 4, 2021 10:03
.htaccess for Routing
RewriteEngine On
#index.php?url=$1&username=$2
RewriteRule ^([^/]+)/? index.php?url=$1 [L,QSA]
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
/[Ll]ibrary/
sysinfo.txt
*.stackdump
@ulricaskarin
ulricaskarin / deployUser.md
Created April 6, 2016 15:24 — forked from learncodeacademy/deployUser.md
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password

@ulricaskarin
ulricaskarin / flightplan-deploy.md
Created April 6, 2016 15:24 — forked from learncodeacademy/flightplan-deploy.md
Deploy Node.js Apps with Flightplan

##Setup your server (this would ideally be done with automated provisioning)

  • add a deploy user with password-less ssh see this gist
  • install forever npm install -g forever

##Install flightplan

  • npm install -g flightplan
  • in your project folder npm install flightplan --save-dev
  • create a flightplan.js file
@ulricaskarin
ulricaskarin / gist:92c8a4ce116af33b3ed11fff64cd4084
Created April 6, 2016 15:00 — forked from learncodeacademy/gist:5850f394342a5bfdbfa4
SSH Basics - Getting started with Linux Server Administration

###SSH into a remote machine###

ssh [email protected]
#or by ip address
ssh [email protected]

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing