# First remove *all* keybindings | |
unbind-key -a | |
source ~/.tmux.conf-f-keys | |
source ~/.tmux.conf-colors |
# -*- coding: utf-8 -*- | |
# To list this file sections: $ grep '^"" ' notes.py | |
""""""""""""" | |
"" Why Python ? | |
""""""""""""" | |
- extremely readable (cf. zen of Python + [this 2013 study](http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/)) | |
- simple & fast to write | |
- very popular (taught in many universities) | |
- has an extremely active development community |
This will let you see the request and response headers for traffic going through.
We're going to run this as a reverse proxy, rather than a usual proxy, so you don't get completely flooded with traffic.
- create a new VM
- expose port
8080
to the public internet
- Skip if already set up, check with:
sudo service ssh status
sudo apt-get install ssh
- Edit ssh config file with the lines below:
sudo vim /etc/ssh/sshd_config
PermitRootLogin no #Disable direct login from root
AllowUsers user1 user2 user3 #*Only* allow this users to connect
AllowTcpForwarding yes #Required to setup the tunnel, yes or commented out
PubkeyAuthentication yes #Enables public key authentication
Port 22 #Listening port of the server
# This file is a template, and might need editing before it works on your project. | |
# This template uses the non default language docker image | |
# The image already has Hex installed. | |
image: alpine-elixir:1.4.0 | |
# Pick zero or more services to be used on all builds. | |
# Only needed when using a docker container to run your tests in. | |
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service | |
variables: |
This post also appears on lisper.in.
Reader macros are perhaps not as famous as ordinary macros. While macros are a great way to create your own DSL, reader macros provide even greater flexibility by allowing you to create entirely new syntax on top of Lisp.
Paul Graham explains them very well in [On Lisp][] (Chapter 17, Read-Macros):
The three big moments in a Lisp expression's life are read-time, compile-time, and runtime. Functions are in control at runtime. Macros give us a chance to perform transformations on programs at compile-time. ...read-macros... do their work at read-time.
#!/usr/bin/env python | |
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000> | |
# simple example of a tray icon application using PyGTK | |
import gtk | |
def message(data=None): | |
"Function to display messages to the user." | |
angular.module('app') | |
.directive('ngReallyClick', [ function() { | |
/** | |
* A generic confirmation for risky actions. | |
* https://gist.github.com/kwmiebach/16bdaa04611e1a3bbf478be07cde607f | |
* Originally https://gist.github.com/asafge/7430497 | |
* replaces: confirm - ng-confirm | |
* Usage: Add attributes: | |
* * ng-really-click="takeAction()" function |
By modifying the os_list.txt the deb installs on devuan.
Webmin licence see https://github.com/webmin/webmin/blob/master/LICENCE