A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
; Cycle between windows of the same app like in macOS - Alt+backtick. | |
; Source: https://gist.github.com/rbika/014fb3570beaef195db0bd53fa681037 | |
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% | |
!`:: | |
WinGet, activeProcess, ProcessName, A ; Retrieves the name of the process that owns the active window | |
WinGet, winList, List, ahk_exe %activeProcess% ; Retrieves a pseudo-list of windows belonging to this process |
#!/bin/bash | |
# Retrieve public and private ip of instance | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
mkdir ~/docker-ca | |
chmod 0700 ~/docker-ca | |
cd ~/docker-ca || exit 1 |
#--------------------------------------------------------------------------------------------------------------------------------------- | |
# | |
# Author: Kyle Brumm | |
# Description: File used to hold Bash configuration, aliases, functions, completions, etc... | |
# | |
# Sections: | |
# 1. ENVIRONMENT SETUP | |
# 2. MAKE TERMINAL BETTER | |
# 3. FOLDER MANAGEMENT | |
# 4. MISC ALIAS' |
To remove a submodule you need to:
ECHO OFF | |
cd /d %~dp0 | |
for /f "tokens=2* delims= " %%F IN ('vagrant status ^| find /I "default"') DO (SET "STATE=%%F%%G") | |
ECHO Close this window if it remains open, and http://localhost:8081 is responsive | |
IF "%STATE%" NEQ "saved" ( | |
ECHO Starting Vagrant VM from powered down state... | |
vagrant up | |
) ELSE ( |