- meshcore.io: Fancier version of the main site, with better documentation and screenshots
- Meshcore: The original main site with some docs and the device flasher
- Bay Area Meshcore: Site for the Bay Area Meshcore community
- Bay Area Meshcore Discord: Highly active local Meshcore-related chat. I recommend joining this if you get into Meshcore around here
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
| # ============================================================================== | |
| # Packages / M3000 | |
| # @file packages/m3000.yaml | |
| # Adapted from https://gist.github.com/dale3h/b1c4e571947438728164dbe2ead728ec | |
| # IMPORTANT: Enable packages in `configuration.yaml` | |
| # @see https://www.home-assistant.io/docs/configuration/packages/ | |
| # | |
| # @notes Set `input_text.m3000_host` to the IP address of your Verizon | |
| # Jetpack hotspot. | |
| # @notes Set `input_number.m3000_data_cap` to the amount of data that |
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 math import sqrt, ceil | |
| def find_primes(n): | |
| primes = list(range(2, n+2)) | |
| for c in range(ceil(sqrt(n))): | |
| pp = primes[c] | |
| if pp == -1: | |
| c += 1 | |
| continue | |
| for i in range(c+1, len(primes)): |
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
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import shutil | |
| import datetime | |
| import pyperclip | |
| clipboard_copy = pyperclip.clipboards.init_osx_clipboard()[0] |
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 | |
| ATHENA="ternus" | |
| USERNAME="ternus@cternus.net" | |
| PASSWORD="" | |
| cwaitlistnum='' | |
| while true; do | |
| waitlistnum=$(curl -s -X POST https://tickets.fireflyartscollective.org/cgi-bin/ticketing.pl -F "email=$USERNAME" -F "password=$PASSWORD" -F "action=Log In" | pcregrep -o1 "(\d+) confirmed") | |
| if [[ $waitlistnum == '' ]]; then |
I hereby claim:
- I am ternus on github.
- I am ternus (https://keybase.io/ternus) on keybase.
- I have a public key whose fingerprint is A163 C976 EAD7 2A6F CEB4 EC7D 5A6B 0839 B7BC F4EA
To claim this, I am signing this object:
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
| cternus@astarael ~/foo> cat errorregex.py 2 | |
| import re | |
| class ErrorRegex(): | |
| def __init__(self): | |
| self.regex = re.compile(r"[^\\]\{}".format("|")) | |
| def split(self,line): | |
| line = line.replace("\n","") | |
| print line | |
| splitted = self.regex.split(line) |
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
| function fitString(str, size, strclass) { | |
| // Fits a string to a given pixel size | |
| // Based on a solution from stackoverflow.com | |
| var nstr = str; | |
| var tmp = document.createElement("span"); | |
| tmp.className = strclass; | |
| tmp.style.visibility = "hidden"; | |
| tmp.style.padding = "0px"; | |
| document.body.appendChild(tmp); | |
| tmp.innerHTML = nstr; |