For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| cfg.parser () { | |
| fixed_file=$(cat $1 | sed 's/ = /=/g') # fix ' = ' to be '=' | |
| IFS=$'\n' && ini=( $fixed_file ) # convert to line-array | |
| ini=( ${ini[*]//;*/} ) # remove comments | |
| ini=( ${ini[*]/#[/\}$'\n'cfg.section.} ) # set section prefix | |
| ini=( ${ini[*]/%]/ \(} ) # convert text2function (1) | |
| ini=( ${ini[*]/=/=\( } ) # convert item to array | |
| ini=( ${ini[*]/%/ \)} ) # close array parenthesis | |
| ini=( ${ini[*]/%\( \)/\(\) \{} ) # convert text2function (2) | |
| ini=( ${ini[*]/%\} \)/\}} ) # remove extra parenthesis |
| // http://www.wigwag.com/devblog/using-icu4c-regex-test-program/ | |
| // The following code is freeware: | |
| // regextest.c | |
| // Author: ed | |
| // | |
| // Simple test program for regex using ICU's regex matching. | |
| #include <stdio.h> | |
| #include <getopt.h> | |
| #include <string.h> |
| Over time, I collected some options to make Firefox really fast. | |
| WARNING! NO WARRANTY, use on your own risk! | |
| If you know what you're doing, go to 'about:config' and edit the listed values accordingly. | |
| Hint: Double-click boolean values to toggle true/false. | |
| ########################### | |
| If mouse-wheel scrolling is slow, try |
| #!/bin/bash | |
| # This Works is placed under the terms of the Copyright Less License, | |
| # see file COPYRIGHT.CLL. USE AT OWN RISK, ABSOLUTELY NO WARRANTY. | |
| # | |
| # COPYRIGHT.CLL can be found at http://permalink.de/tino/cll | |
| # (CLL is CC0 as long as not covered by any Copyright) | |
| OOPS() { echo "OOPS: $*" >&2; exit 23; } | |
| [ -z "`pidof openssl`" ] || OOPS "openssl running, consider: killall openssl" |
| dpkg-verify() { | |
| exitcode=0 | |
| for file in $*; do | |
| pkg=`dpkg -S "$file" | cut -d: -f 1` | |
| hashfile="/var/lib/dpkg/info/$pkg.md5sums" | |
| if [ -s "$hashfile" ]; then | |
| rfile=`echo "$file" | cut -d/ -f 2-` | |
| phash=`grep -E "$rfile\$" "$hashfile" | cut -d\ -f 1` | |
| hash=`md5sum "$file" | cut -d\ -f 1` | |
| if [ "$hash" = "$phash" ]; then |
| <?xml version="1.0" standalone='no'?> | |
| <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
| <service-group> | |
| <name replace-wildcards="yes">%h</name> | |
| <service> | |
| <type>_adisk._tcp</type> | |
| <txt-record>sys=waMa=0,adVF=0x100</txt-record> | |
| <txt-record>dk0=adVN=Time Capsule,adVF=0x82</txt-record> | |
| </service> | |
| <service> |
Original post : https://unix.stackexchange.com/a/310699
nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"