- This is quick and dirty and not terribly maintainable. But it's very useful for creating quick cards from the terminal. Requires familiarity with Trello and a basic understanding of bash.
- Log-in to Trello.
- Go to: https://trello.com/1/appKey/generate
- Make note of your key. Replace any mention of
YourTrelloKey
with this hash. - Create a token. Go to https://trello.com/1/authorize?key=YourTrelloKey&name=SimpleBASHScript&expiration=never&response_type=token&scope=read,write in your browser and follow directions.
- Make note of the token. Replace any mention of
YourTrelloToken
with this looong hash. - Pick a reasonable number of the most popular boards you use. Grab the URLs of those boards. At the same time, think of short, one-word, easy-to-remember names for each board (e.g., work, homeprojects, wedding).
- Grab the board IDs of the boards you chose. It'll be the ~8 character hash-like string in the URL. E.g., for https://trello.com/b/aWsGTrsD/work the ID is aWsGTrsD
- One by one, plug thos
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
How to Completely Remove Android Studio | |
Execute these commands from the terminal | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* |
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
""" | |
KEONN - Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
python3.9 httpServer.py 8000 | |
""" | |
import sys | |
if str(sys.version)[0] == '3': | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
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 | |
################################################################################ | |
### TBW for Samsung SSD ### | |
### -by GGetsov ### | |
### ------------------------------------------------------------------------ ### | |
### Requires: Cygwin, bash (with arrays support), bc, smartctl ### | |
################################################################################ | |
arrtest[0]="1"||(echo "Failure: arrays not supported in this version of bash."&&exit 2) | |
#var | |
ver="0.2.4" |
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
#!/usr/bin/env bash | |
# This script requires: | |
# - that the directory $HOME/.mpv exist | |
# - that the program socat be installed | |
# - that you start mpv with the unix socket feature pointing at that directory | |
# I recommend an alias in your .bashrc or equivalent file: | |
# alias mpv="mpv --input-unix-socket=$HOME/.mpv/socket" | |
socket="$HOME/.mpv/socket" |
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/sh | |
#################################### | |
# Update a UniFi Controller installation on Alpine Linux | |
# | |
# Assumes that the unifi service can be manipulated with "rc-service unifi <start/stop>" | |
# | |
# For initial installation see https://wiki.alpinelinux.org/wiki/UniFi_Controller | |
# Additional steps: | |
# - apk add --no-cache libc6-compat |
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
<div class="row" style="margin-bottom: 12px;"> | |
<div class="col-md-12" style="text-align: center;"> | |
This page will refresh in <div class="time">{{minutes}}</div> Min <div class="time">{{seconds}}</div> Sec | |
</div> | |
</div> |
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
import nltk | |
text = """The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital | |
computer or the gears of a cycle transmission as he does at the top of a mountain | |
or in the petals of a flower. To think otherwise is to demean the Buddha...which is | |
to demean oneself.""" | |
# Used when tokenizing words | |
sentence_re = r'''(?x) # set flag to allow verbose regexps | |
([A-Z])(\.[A-Z])+\.? # abbreviations, e.g. U.S.A. |
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
git config --global alias.ignore-create '!gi() { \ | |
if [ $# -eq 0 ]; then \ | |
echo "Usage: git ignore-create list-item,...\n" ;\ | |
echo "Avalaible list items:" ;\ | |
curl -sL "https://www.gitignore.io/api/list" | tr -d "\n" ;\ | |
echo "" ;\ | |
else \ | |
echo "# DO NOT EDIT THIS FILE" ;\ | |
echo "# Put your local changes on .gitignore.local, then\n" ;\ | |
echo "# To update type: git ignore-update" ;\ |