Change the root password (to get a good password: http://passwordsgenerator.net/) and create a non root user:
useradd -m -s /bin/bash not_root
passwd not_root
apt-get update; apt-get install -y nginx sudo
#!/bin/sh | |
# | |
# Usage: ./csv-viewer.sh ';' input.csv | |
# | |
iconv -f utf8 -t ascii//TRANSLIT $2 | column -s$1 -t | less -S -N |
var ctx = null, usingWebAudio = true; | |
try { | |
if (typeof AudioContext !== 'undefined') { | |
ctx = new AudioContext(); | |
} else if (typeof webkitAudioContext !== 'undefined') { | |
ctx = new webkitAudioContext(); | |
} else { | |
usingWebAudio = false; | |
} |
'use strict'; | |
const plan = require('flightplan'); | |
// ------------------------- | |
// Targets | |
plan.target('dev', { | |
host: 'viviz.bettr.es', | |
username: 'elias', |
Change the root password (to get a good password: http://passwordsgenerator.net/) and create a non root user:
useradd -m -s /bin/bash not_root
passwd not_root
apt-get update; apt-get install -y nginx sudo
# Map a local port to a target port through the remote server. | |
# In the example: localhost:9000 is tunneled to imgur.com:80 through example.com | |
# local:9000 -> exaple.com -> target:80 | |
# you could browse to http://localhost:9000/ and browse imgur.com | |
# (won't see anything, because imgur has changed their stack, but the tunnel works) | |
ssh -L 9000:imgur.com:80 [email protected] | |
# Useful for: use a server as a proxy, secure a connection (ssh encrypts everything), |
(defmacro getf-in (list &rest keys) | |
(reduce (lambda (acc el) `(getf ,acc ,el)) | |
keys :initial-value list)) | |
;; example | |
(defparameter jarl '(:a 1 :b 2 :c (:d (:e "yeah")))) | |
(getf-in jarl :c :d :e) ; => "yeah" | |
(setf (getf-in jarl :c :d :e) "something else") |
$ lein hicv 2clj maqueta/build/**/*.html |
(setq backup-inhibited t | |
auto-save-default nil) | |
(menu-bar-mode -1) | |
;;; package --- Some editing configurations | |
;;; Commentary: | |
;;; Code: |