~/.config/systemd/user/pulseaudio.service:
[Unit]
Description=Pulseaudio Sound Service
Requires=pulseaudio.socket
[Service]
Type=notify
ExecStart=/usr/bin/pulseaudio --verbose --daemonize=no
| #!/usr/bin/env python3 | |
| import os | |
| import paramiko | |
| ssh_key_filename = os.getenv('HOME') + '/.ssh/id_rsa' | |
| jumpbox_public_addr = '168.128.52.199' | |
| jumpbox_private_addr = '10.0.5.10' | |
| target_addr = '10.0.5.20' |
| $ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data |
| // Examples for using socat (and filan) | |
| //"$" means normal user, "#" requires privileges, "//" starts a comment | |
| /////////////////////////////////////////////////////////////////////////////// | |
| // similar to netcat | |
| // connect to 10.1.1.1 on port 80 and relay to and from stdio |
| def netmask_to_cidr(m_netmask): | |
| return(sum([ bin(int(bits)).count("1") for bits in m_netmask.split(".") ])) |
~/.config/systemd/user/pulseaudio.service:
[Unit]
Description=Pulseaudio Sound Service
Requires=pulseaudio.socket
[Service]
Type=notify
ExecStart=/usr/bin/pulseaudio --verbose --daemonize=no
True fact: Mon server MariaDB s'est fait attaqué comme ça alors que le port dans l'iptable n'était pas ouvert.
| rm -f out | |
| mkfifo out | |
| trap "rm -f out" EXIT | |
| while true | |
| do | |
| cat out | nc -w1 -l 1500 > >( # parse the netcat output, to build the answer redirected to the pipe "out". | |
| export REQUEST= | |
| while read line | |
| do | |
| line=$(echo "$line" | tr -d '[\r\n]') |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| #!/usr/bin/env python2 | |
| """ | |
| Other Repositories of python-ping | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| * https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
| * https://bitbucket.org/delroth/python-ping | |