$ uname -r
$mod
refers to the modifier key (window/command or alt by default depending on config)
startx i3
start i3 from command line$mod+<Enter>
open a terminal$mod+d
open dmenu (text based program launcher)$mod+r
resize mode ( or to leave resize mode)$mod+shift+e
exit i3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen *:80; | |
server_name www.icinga2.com; | |
root /usr/share/icingaweb2/public; #Path of icinga2 web directory | |
index index.php; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
location = /favicon.ico { |
#BOSH
- Inbound to tcp/25555 From internal
- Inbound to tcp/25250 From bosh-agent (blobstore)
- Inbound to tcp/25777 from bosh-agent (registry)
- Inbound to tcp/6868 From jumpbox, concourse (allow jumpboxes + concourse to bosh create-env + talk to the agent on directors
- Inbound to tcp/4222 From bosh-agent
#BOSH-Agent
- Inbound to tcp/6868 From BOSH
- Inbound to tcp/22 From internal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[clever@amd-nixos:~/apps/nixpkgs]$ git remote -v | |
channels [email protected]:NixOS/nixpkgs-channels.git (fetch) | |
channels [email protected]:NixOS/nixpkgs-channels.git (push) | |
origin [email protected]:NixOS/nixpkgs.git (fetch) | |
origin [email protected]:NixOS/nixpkgs.git (push) | |
[clever@amd-nixos:~/apps/nixpkgs]$ git fetch channels | |
8512747..adfcc2d nixos-unstable -> channels/nixos-unstable | |
[clever@amd-nixos:~/apps/nixpkgs]$ git checkout channels/nixos-unstable | |
M nixos/lib/make-squashfs.nix | |
M pkgs/top-level/platforms.nix |
- Install pip
sudo apt-get install python-pip
- Install powerline
sudo pip install powerline-status
- Install fonts
sudo apt-get install fonts-powerline
- Add these lines to respective files:
.vimrc > set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tcpdump -i eth0 -A -s 10240 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Yoast SEO Title From All Pages | |
* Credit: Yoast Team | |
* Last Tested: Jun 17 2020 using Yoast SEO 14.3 on WordPress 5.4.2 | |
*/ | |
add_filter( 'wpseo_title', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=memcached daemon for %i | |
After=network.target | |
[Service] | |
ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached_%i.conf | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |