sudo dnf install git qt5-qtbase-devel qt5-qtsvg-devel qt5-qtserialport-devel
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/env python3 | |
# simple script to convert notes from https://github.com/robsoncouto/arduino-songs | |
# to note/durations for use in apps/buzzer-test/ | |
# from https://github.com/joeycastillo/Sensor-Watch | |
tempo = int(input("tempo in bpm (e.g. 120): ")) | |
print("melody string (e.g. \"NOTE_B4,2,NOTE_E5,2\")") | |
print("Ctrl-D or Ctrl-Z ( windows ) to continue") | |
melody_str = "" |
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
Patch for 7.4 compatibility | |
@package bolt/bolt | |
@level 1 | |
diff -uNBr bolt-orig/src/Controller/Frontend.php bolt/src/Controller/Frontend.php | |
--- bolt-orig/src/Controller/Frontend.php 2020-11-29 20:23:33.138756011 +0100 | |
+++ bolt/src/Controller/Frontend.php 2021-04-02 17:32:03.669398282 +0200 | |
@@ -541,18 +541,27 @@ | |
if ($isLegacy) { |
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
from cmsis_svd.parser import SVDParser | |
def getaccess(field): | |
if field.access == 'read-only': | |
return ': ro' | |
if field.access == 'write-only': | |
return ': wo' | |
return '' | |
def getoffset(field): |
I hereby claim:
- I am niclashoyer on github.
- I am niclashoyer (https://keybase.io/niclashoyer) on keybase.
- I have a public key whose fingerprint is 7693 6404 9CAC 6CED BC02 C3E4 EDCE 346C 637C 3F49
To claim this, I am signing this object:
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 | |
curl -s http://www.ndr.de/sport/live/index.html | sed -n -e 's/.*\(http:\/\/.*akamaihd.*\.m3u8\).*/\1/p' |
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 | |
# deps: bash, curl, sed, metaflac, jq | |
# remember to insert your own application client id (see CLIENTID below) | |
# to get an application client id register at http://developer.jamendo.com | |
set -e | |
set -u | |
function filtername() { | |
tr -cs "[:alnum:] \-&\(\)\?!" _ |
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
###* | |
@jsx React.DOM | |
### | |
L20nMixin = | |
propTypes: | |
context: React.PropTypes.any.isRequired | |
getInitialState: -> | |
if @props.getLocalizedEntities? | |
ids = @props.getLocalizedEntities() |
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 | |
set -e | |
set -u | |
CONTAINER=$(docker ps -a --no-trunc | awk 'NR>1' | awk 'BEGIN {FS=" +"}; $5 ~ "^Up" {print $1}') | |
for C in $CONTAINER; do | |
echo "Backup for $C" | |
DATA=$(docker inspect $C) |
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
# get volumes for a container | |
docker inspect $container | jq '.[].Volumes|to_entries[].key' |
NewerOlder