Skip to content

Instantly share code, notes, and snippets.

View dalini's full-sized avatar
💭
use more x509!

Ives Laaf dalini

💭
use more x509!
View GitHub Profile
@dalini
dalini / fix-wsl2-dns-resolution
Created April 9, 2024 17:00 — forked from coltenkrauter/fix-wsl2-dns-resolution
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.

Response Header Setter (static and CSP)

Response Header Setter (static and CSP)

Features

  • Event listener triggered on each response through onKernelResponse() method
  • Adds custom headers to the response
  • Support for "static" headers specified in config/response_header_setter/response_headers.yaml
  • Currently includes security / privacy related headers:
ncdu => df in gut
glances => modernes htop
github hub => cli tool
lnav => log viewer
goaccess => log viewer für webserver
task warrior => cli task management
gopass => gpg pw manager (pass ableger)
mosh => ssh client über udp
silversurfer => ack on steroids / platinum searcher
a(s?)cinema => bash session recording
<#
.SYNOPSIS
Migrates a Azure Virtual Machine to another subscription or data centre
.DESCRIPTION
Shutsdown the source VM
Exports the VM config to a temporary file
Loops through all Azure disks attached to the source VM
Schedules an async copy of the underlying VHD to the destination storage account
- optionally overwrites existing VHD in destination if it exists
@dalini
dalini / supervisord_graphite_statsd.conf
Created October 23, 2012 14:08 — forked from bhang/supervisord_graphite_statsd.conf
Graphite + statsd supervisord configuration
[program:gunicorn-graphite]
command=/usr/local/bin/gunicorn_django -u www-data -g www-data -b 127.0.0.1:8080 --log-file=/opt/graphite/storage/log/webapp/gunicorn.log /opt/graphite/webapp/graphite/settings.py
process_name=%(program_name)s
autostart=true
autorestart=true
stopsignal=QUIT
user=www-data
[program:carbon-cache]
command=python /opt/graphite/bin/carbon-cache.py --debug start
@dalini
dalini / install_graphite_statsd_ubuntu_precise.sh
Created October 23, 2012 13:46 — forked from bhang/install_graphite_statsd_ubuntu_precise.sh
Install Graphite and statsd on Ubuntu 12.04 LTS (Precise Pangolin)
#!/bin/bash
#source: git://gist.github.com/3938837.git
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd