_ssh()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
This file contains 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
#!/bin/bash | |
git restore * | |
git clean -fd | |
git reset --hard |
- Installing the Expect package and naming "unbuffer" this script:
#!/usr/bin/expect --
# Description: unbuffer stdout of a program
# Author: Don Libes, NIST
eval spawn -noecho $argv
set timeout -1
expect
- Installing the Expect package and naming "unbuffer" this other script:
Replace "vboxmanage modifyhd" with "vboxmanage clonehd"
- Create a new virtual disk VDI (With the size you want to expand). Example: Old.vdi had 50gb. New.vdi create it with 100GB
VBoxManage createhd --filename /path/New.vdi --size 100000
- Clone it with the following command:
vboxmanage clonehd /path/Old.vdi /path/New.vdi --existing
Sublime Text 3 documentation
◳
= Right Mouse Button
◰
= Left Mouse Button
⇧
= Shift
⌫
= Delete
↩
= Enter
←↑→↓
= Arrow keys
apk add --no-cache vault libcap
setcap cap_ipc_lock= /usr/sbin/vault
This file contains 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
#!/bin/bash | |
docker network create some-network | |
docker volume create some-docker-certs-ca | |
docker volume create some-docker-certs-client | |
docker run --privileged --name some-docker -d \ | |
--network some-network --network-alias docker \ | |
-e DOCKER_TLS_CERTDIR=/certs \ | |
-v some-docker-certs-ca:/certs/ca \ | |
-v some-docker-certs-clients:/certs/client \ | |
docker:dind |
This file contains 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
FROM debian:7 | |
RUN apt-get update && \ | |
apt-get -y install socat && \ | |
apt-get clean | |
USER nobody | |
CMD socat -dddd TCP-LISTEN:1521,reuseaddr,fork TCP:db:1521 |
Docker tun device into container install openvpn or other soft, which uses tun devices