Anki is a great open source flashcard app that can be used to learn anything.
This Gist is a full end to end example of how to:
- export Anki decks from Anki
- import Anki decks into MySQL
- edit Anki decks using MySQL
- export Anki decks from MySQL
| kubectl get pods --field-selector=status.phase!=Running,status.phase!=Succeeded -o custom-columns=NAME:.metadata.name,STATUS:.status.phase | |
| #!/bin/bash | |
| for i in {1..2300} | |
| do | |
| touch "file_${i}.txt" | |
| done |
| { | |
| "Add include guard": { | |
| "prefix": "guard", | |
| "description": "Adds an ifndef include guard to a C header", | |
| "body": [ | |
| "#ifndef __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__", | |
| "#define __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__", | |
| "", | |
| "$0", | |
| "", |
| #!/bin/sh | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
Anki is a great open source flashcard app that can be used to learn anything.
This Gist is a full end to end example of how to:
If you are getting this in gdb on macOS while trying to run a program:
Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))gdbc)| var fs = require('fs'); | |
| var d3 = require('d3') | |
| require('jsdom-global')() | |
| var body = document.querySelector('body') | |
| d3.select(body) | |
| .append('svg:svg') | |
| .attr('xmlns', 'http://www.w3.org/2000/svg') | |
| .attr('xmlns:xlink', 'http://www.w3.org/1999/xlink') |
These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).
Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.
Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.
| PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default) | |
| PASSWORD2==>examplePass # replace with 'examplePass' instead | |
| PASSWORD3==> # replace with the empty string | |
| regex:password=\w+==>password= # Replace, using a regex | |
| regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines |