start new:
tmux
start new with session name:
tmux new -s myname
# Designed to be included in any server {} block. | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location = /robots.txt { | |
allow all; | |
log_not_found off; | |
access_log off; |
<ul id="nav"> | |
<li></li> | |
<li></li> | |
<li class="home mid"><a href="#"></a></li> | |
<li></li> | |
<li></li> | |
</ul> | |
<div> | |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
<?php | |
/** | |
* UUID class | |
* | |
* The following class generates VALID RFC 4122 COMPLIANT | |
* Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
* | |
* UUIDs generated validates using OSSP UUID Tool, and output | |
* for named-based UUIDs are exactly the same. This is a pure | |
* PHP implementation. |
Thanks to this article by Christoph Berg
Directories and files
~/
# Add this to your nginx.conf under http { } | |
server { | |
listen 843; | |
server_name localhost; | |
location / { | |
rewrite ^(.*)$ /crossdomain.xml; | |
} |
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
Open $ vim /etc/default/grub
then add elevator=noop
next to GRUB_CMDLINE_LINUX_DEFAULT
. Run $ update-grub
and $ cat /sys/block/sda/queue/scheduler
to be sure that noop is being used:
$ vim /etc/default/grub
$ update-grub
$ cat /sys/block/sda/queue/scheduler
[noop] deadline cfq
#!/bin/sh | |
# | |
# About | |
# ----- | |
# This script sends simple system-metrics to a remote graphite server. | |
# | |
# | |
# Metrics | |
# ------- | |
# The metrics currently include the obvious things such as: |