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
This covers both unmanaged (non-Network Manager) and Network Manager managed vlans | |
***For Unmanaged interfaces*** | |
need user-space util | |
$sudo apt-get install vlan | |
load 8021q mod | |
$sudo modprobe 8021q | |
make permanant with | |
$sudo su -c 'echo "8021q" >> /etc/modules' |
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
My journey with PowerShell, Git, GitHub (CygWin, Strawberry Perl already installed) | |
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 |
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
Using PowerShell | |
ls|foreach-object {if ($_.subject -like "*entrust*") {$_|select-object @{Name="SigAlgo"; Expression={$_.SignatureAlgorithm.FriendlyName}},FriendlyName,Subject,NotBefore,NotAfter,Issuer}} | |
ls|foreach-object {if ($_.subject -like "*entrust*") {$_|select @{n="SigAlgo"; e={$_.SignatureAlgorithm.FriendlyName}},FriendlyName,Subject,NotBefore,NotAfter,Issuer}} | |
ls|where-object -filterscript {$_.subject -like "*entrust*"} | select @{n="SigAlgo"; e={$_.SignatureAlgorithm.FriendlyName}},FriendlyName,Subject,NotBefore,NotAfter,Issuer | |
ls|?{$_.subject -like "*entrust*"} | select @{n="SigAlgo"; e={$_.SignatureAlgorithm.FriendlyName}},FriendlyName,Subject,NotBefore,NotAfter,Issuer |
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
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
#!/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
#!/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 | |
#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' |
NewerOlder