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
# set the variables | |
SSH_HOST="gitlab.com" | |
SSH_USER=`whoami` | |
SSH_PORT=22 | |
# create folder with the correct permissions | |
mkdir -p ~/.ssh/; | |
chmod 700 ~/.ssh/; | |
touch ~/.ssh/authorized_keys |
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
#attempt 2 | |
sudo iwlist wlan0 scan | |
sudo iwconfig wlan0 essid $WIFI key $KEY | |
sudo dhclient wlan0 |
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
(define (toHex dec) | |
;local-function:solveHex | |
(define (solveHex dec res) | |
(let ((base 16)) | |
(cond | |
[(null? dec) res] | |
[(>= dec (- base 1)) (solveHex (quotient dec base) (string-append (getHex (remainder dec base)) res) )] | |
[else (string-append (getHex dec) res)] | |
) | |
) |
NewerOlder