PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
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
version: '2' | |
volumes: | |
nextcloud: | |
db: | |
services: | |
db: | |
image: mariadb | |
restart: always |
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
{ | |
"checkers": [{ | |
"type": "http", | |
"endpoint_name": "Website", | |
"endpoint_url": "http://www.example.com", | |
"attempts": 5 | |
}], | |
"storage": { | |
"provider": "s3", | |
"access_key_id": "<yours>", |
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
Invoke-WebRequest | |
-UseBasicParsing | |
-Method GET | |
-Uri "https://master.dockerproject.org/windows/x86_64/docker.zip" | |
-OutFile "$env:TEMP\docker.zip" | |
Expand-Archive -Path "$env:TEMP\docker.zip" | |
-DestinationPath $env:ProgramFiles | |
$env:path += ";c:\program files\docker" | |
[Environment]::SetEnvironmentVariable("Path", $env:Path + "; | |
C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine) |
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
# Join AD Domain Powershell Script | |
# j3rmbadger | |
Add-computer –domainname lab.local -Credential LAB1\netsecadmin -restart –force |
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
cat > /etc/systemd/network/10-static-en.network << "EOF" | |
[Match] | |
Name=eth0 | |
[Network] | |
Address=192.168.1.12/24 | |
Gateway=192.168.1.1 | |
DNS=192.168.1.5 | |
EOF |
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
version: '2' | |
services: | |
mongodb: | |
image: mongo:3 | |
volumes: | |
- mongo_data:/data/db | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9 | |
volumes: | |
- es_data:/usr/share/elasticsearch/data |
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
# Sigma profile | |
Import-Module W:\Gits\posh-git\posh-git.psm1 | |
set-executionpolicy Unrestricted process | |
$baseDir = Split-Path -parent $MyInvocation.MyCommand.Definition | |
. "$baseDir\hand.ps1" | |
# General actions | |
function edit ($file) { & "${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" $file } |
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
Byobu is a suite of enhancements to tmux, as a command line | |
tool providing live system status, dynamic window management, | |
and some convenient keybindings: | |
F1 * Used by X11 * | |
Shift-F1 Display this help | |
F2 Create a new window | |
Shift-F2 Create a horizontal split | |
Ctrl-F2 Create a vertical split | |
Ctrl-Shift-F2 Create a new session |
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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
ens160: | |
addresses: | |
- 192.168.1.93/24 | |
gateway4: 192.168.1.1 |
NewerOlder