| #!/bin/bash | |
| ### | |
| ### my-script — does one thing well | |
| ### | |
| ### Usage: | |
| ### my-script <input> <output> | |
| ### | |
| ### Options: | |
| ### <input> Input file to read. | |
| ### <output> Output file to write. Use '-' for stdout. |
Update
RPi4 now supports booting directly from USB. First update to get an eeprom which supports USB Boot, then configure the bootloader to boot from USB.
Original guide
- Download Raspbian from the official site
| kubectl get po -a --all-namespaces -o json | \ | |
| jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | | |
| "kubectl delete po \(.metadata.name) -n \(.metadata.namespace) --grace-period=0 --force " ' | xargs -n 1 bash -c |
💥NOTE💥: Don't do this yet, all of this stuff is still 🚑💣BLEEDING EDGE💣🚑, and you will 🔪cut yourself🔪 badly if you choose to do it. Please wait for 🗿Wilba's QMK code to be refactored prior to pushing anything to QMK, as we don't want to end up with a bunch of different forks of the code.
So you've seen VIA Configurator in action, and you want to get this magic supported for your board?
There's two main steps:
- Add dynamic keymap support to keyboard in QMK
- Add layout to VIA
Make sure you have a working and configured s3cmd and you have notify-send installed
Update upload_screenshot to point to your s3 bucket and path
you may need to update DISPLAY and DBUS_SESSION_BUS_ADDRESS (from a working terminal in your X session you can find these by doing echo $DISPLAY && echo $DBUS_SESSION_BUS_ADDRESS )
make sure upload_screenshot is in your (and probably root's) PATH (I put mine in /usr/local/bin) -- also make sure it's executable chmod a+x upload_screenshot
Set up the directory to watch in your incrontab (in my example /home/chadkouse/screenshots ) Any file you put into this directory will get uploaded to s3 and it's url copied to the clipboard.
| from app import db | |
| from sqlalchemy import func | |
| from sqlalchemy.dialects.mysql import insert | |
| def upsert(model, insert_dict): | |
| """model can be a db.Model or a table(), insert_dict should contain a primary or unique key.""" | |
| inserted = insert(model).values(**insert_dict) | |
| upserted = inserted.on_duplicate_key_update( | |
| id=func.LAST_INSERT_ID(model.id), **{k: inserted.inserted[k] | |
| for k, v in insert_dict.items()}) |
| pragma solidity ^0.4.18; | |
| /** | |
| * @title SafeMath | |
| * @dev Math operations with safety checks that throw on error | |
| */ | |
| library SafeMath { | |
| /** | |
| * @dev Multiplies two numbers, throws on overflow. |
- Download strongswan
https://www.strongswan.org/download.html
sudo apt-get update
sudo apt-get install build-essential libgmp3-dev
tar xvf strongswan.tar.gz
cd strongswan
