- SC1000 $ is not used specially and should therefore be escaped.
- SC1001 This
\o
will be a regular 'o' in this context. - SC1003 Want to escape a single quote? echo 'This is how it'\''s done'.
- SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
- SC1007 Remove space after = if trying to assign a value (or for empty string, use var='' ... ).
- SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
- SC1009 The mentioned parser error was in ...
- SC1010 Use semicolo
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
# how to use this script | |
# iex (new-object system.net.webclient).DownloadString("https://git.io/JsnxS") | |
# if that fails, it is probably something with the tls level ( took from chocolatey install ) | |
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 | |
# then run the iex command again | |
# src: https://nedimmehic.org/2017/02/17/how-to-find-windows-product-key-allversions-of-windows/ | |
function Get-WindowsKey { | |
## function to retrieve the Windows Product Key from any PC | |
## by Nedim Mehic | |
param ($targets = ".") |
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
# thanks to https://vmarena.com/how-to-enable-remote-desktop-rdp-remotely-using-powershell/ | |
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 | |
Enable-NetFirewallRule -DisplayGroup "Remote Desktop" |
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
mapfile -t env_varz < <(env | grep -iE 'packet|tf_|vagrant_|circle|release' | cut -d '=' -f 1) | |
IFS=" " read -r -a env_vars_array <<< "$(printf ' -e %s' "${env_varz[@]}")" | |
docker container run --rm -it "${env_vars_array[@]}" -v "${PWD}/scripts":/scripts bash |
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
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
# for python dev | |
pylint = "*" | |
bandit = "*" | |
black = "==20.8b1" |
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
--- | |
- hosts: localhost | |
tasks: | |
- name: Linux | Find all versions of Vagrant | |
uri: | |
url: https://releases.hashicorp.com/vagrant/index.json | |
return_content: yes | |
register: vagrant_index | |
# this was the original code from here: https://github.com/diodonfrost/ansible-role-vagrant/blob/master/tasks/setup-Linux.yml#L14 |
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 | |
set -${-//[s]/}eu${DEBUG+xv}o pipefail | |
season=( | |
'Spring' | |
'Summer' | |
'Fall' | |
'Autumn' | |
'Winter' |
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
function Get-OUPermissions{ | |
<# | |
.SYNOPSIS | |
FindOuPermissions is a Windows PowerShell script that finds all of the different OUs in a domain, | |
determins the permissions assigned to different users and groups, and reports back which are different | |
from their parent; including what those permissions are. | |
This script does require that the device be joined to the domain being queried and RSAT is installed. |
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 | |
set -exuo pipefail | |
################################################## | |
### Variables | |
## apt | |
apt_repos=( | |
'ppa:kgilmer/regolith-stable' # https://blog.elreydetoda.site/minimal-i3-gaps-install-ubuntu/ | |
'ppa:linuxuprising/shutter' # awesome screenshotting software |
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
# https://github.com/elreydetoda/vagrant-files/tree/master/bento_ubuntu-18.04 | |
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-18.04" | |
config.ssh.forward_agent = true | |
config.ssh.forward_x11 = true | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
apt-get install -y xauth | |
SHELL | |
end |