openpgp4fpr:2EF36070F66BF5BF11FF8B982952E9FB0AF56D74
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
| #!/bin/bash | |
| #requires jq -> http://stedolan.github.io/jq/ | |
| #optional change working_dir | |
| working_dir=${1-$(pwd)} | |
| cd $working_dir | |
| user="github_username" | |
| token="application token" | |
| organization="Organization_Name" |
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
| users: | |
| tester: | |
| fullname: Joe Test | |
| shell: '/bin/bash' | |
| groups: | |
| - sudo | |
| crypt: longrandomSHA512hashedpassword | |
| pub_ssh_keys: | |
| - ssh-rsa 123456789aBcDeFgH123456789aBcDeFgH123456789aBcDeFgH123456789aBcDeFgH123456789aBcDeFgH123456789aBcDeFgH user@mailbox |
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
| # loop over all users presented by pillar: | |
| # create user's group, create user, then add pub keys | |
| {% for username, details in pillar.get('users', {}).items() %} | |
| {{ username }}: | |
| group: | |
| - present | |
| - name: {{ username }} | |
| - gid: {{ details.get('gid', '') }} |
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
| from network import LoRa | |
| import time | |
| import binascii | |
| import pycom | |
| pycom.heartbeat(False) #needs to be disabled for LED functions to work | |
| pycom.rgbled(0x7f0000) #red | |
| #Set AppEUI and AppKey - use your values from the device settings --> https://console.thethingsnetwork.org/ | |
| app_eui = binascii.unhexlify('1234567890ABCDEF') |
I hereby claim:
- I am leogaggl on github.
- I am leogaggl (https://keybase.io/leogaggl) on keybase.
- I have a public key whose fingerprint is 5644 5BF8 A121 61A0 790D B870 1417 399E 8CCA EDFD
To claim this, I am signing this object: