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
HCKU\Software\Policies\Microsoft\office\16.0\outlook\disablepst |
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 | |
# acquires and cleans travel warnings from US State Department | |
curl 'https://travel.state.gov/content/passports/en/alertswarnings.html' \ | |
| tr "\n" "|" \ | |
| grep -o '<table.*</table>' \ | |
| tr "|" "\n" \ | |
| sed 's/^[\ \t]*//g' \ | |
| tr -d '\n\r' \ | |
| sed 's/\(<[^>]*>\)\s*\([^>]*\)\s*\(<\/[^>]*>\)/\1\2\3/Ig' \ | |
| sed 's/<\/TR[^>]*>/\n/Ig' \ |
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 | |
# acquires and cleans country codes | |
curl 'http://www.worldatlas.com/aatlas/ctycodes.htm' \ | |
| tr "\n" "|" \ | |
| grep -o '<table.*</table>' \ | |
| tr "|" "\n" \ | |
| tr -d '\n\r' \ | |
| sed 's/\(<[^>]*>\)\s*\([^>]*\)\s*\(<\/[^>]*>\)/\1\2\3/Ig' \ | |
| sed 's/<\/TR[^>]*>/\n/Ig' \ | |
| sed 's/<\?\(TABLE\|TBODY\|TR\)[^>]*>//Ig' \ |
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
VMWare Horizon 4.3 On Fedora64 | |
Prepare the client workstation | |
Update all installed packages | |
sudo dnf upgrade (or sudo dnf install fedora-upgrade; sudo fedora-upgrade) | |
sudo dnf update | |
Need the following packages/libraries | |
RDesktop v1.7.0 | |
sudo dnf install rdesktop |
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
VMWare Horizon 4.3 On Ubuntu 16.04 | |
Prepare the client workstation | |
Update all installed packages | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
(or sudo apt-get update && sudo apt-get upgrade -y) | |
Find package containing a file: dpkg [-S | --search] *filename* | |
Find out if package is installed: apt-cache policy pkgname* |
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 | |
#source: https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29 | |
#source: manpage | |
#source: http://www.tedunangst.com/flak/post/new-openssh-key-format-and-bcrypt-pbkdf | |
#source: https://blog.g3rt.nl/upgrade-your-ssh-keys.html | |
YEL='\033[1;33m' | |
RED='\033[1;31m' | |
GRN='\033[1;32m' |
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 | |
files=$@ | |
for keyfile in $files; do ssh-keygen -l -f "${keyfile}"; done | uniq |
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
#!/usr/bin/env view | |
command prefixes: $ normal user; # sudo | |
file contents between ............ | |
check if dhcpd installed | |
$ apt --list|grep isc-dhcp-server | |
if not, install it | |
# apt-get install isc-dhcp-server -y |
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 work via CL | |
iw replaces iwconfig | |
ip replaces ifconfig, route | |
systemd --> networkctl list; | |
Check if hardware is detected | |
# lshw [-class network | -C network] | |
$ ls /sys/class/net | |
$ lsusb | |
$ lspci |
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
PowerShell - already on Win7+ | |
-create profile folder ~/Documents/WindowsPowershell/ | |
-create modules folder ~/Documents/WindowsPowershell/Modules | |
-Keep this handy: http://technet.microsoft.com/en-us/library/ee692764.aspx | |
-recommend | |
installing Chocolatey: http://chocolatey.org/ (you'll need something like CPAN for Perl to keep track of PS stuff and other things) | |
to install: | |
cmd.exe> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin - See more at: http://chocolatey.org/#sthash.5KjLIpD5.dpuf | |
IMPORTANT NOTE: You can install apps through Chocolatey as .Install or not (.Install shows up in Windows Add/Remove Pgm; the other is "portable") | |
See the following for more info: |
NewerOlder