My general thumb of rule to download a new tool is to wait until I Google a tool to solve a problem, and then integrate it into my workflow. So download the tools which you think are useful to your workflow.
Discover gists
#---- Create key on client ----# | |
ssh-keygen -b 2048 -t rsa | |
#---- Validate creation ----# | |
ls ~/.ssh | |
#---- SSH to Pi and create the SSH directory and file ----# | |
mkdir .ssh | |
cd .ssh | |
touch authorized_keys |
These are working as of 2nd July 2021, some dispense once daily, once every hour etc Please return testnet coins when you're done testing so that others can keep building
A list of links containing cool references, resources and things related to books about Computer Science and related.
- Haskell Programming for First Principles
- Types and Programming Languages #math/type-theory
- Essentials of Compilation #computer-science/compilers
- How to design computer programs
- Structure and Interpretation of Computer Programs
- Introduction to Theory of Computation, Michael Sipser #computer-science/theory-of-computation
blueprint: | |
name: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
function Piecewise(xs, ys) { | |
return function(x) { | |
//bisect | |
var lo = 0, hi = xs.length - 1; | |
while (hi - lo > 1) { | |
var mid = (lo + hi) >> 1; | |
if (x < xs[mid]) hi = mid; | |
else lo = mid; | |
} | |
//project |
If anyone is having trouble commiting and pushing signed commits in IntelliJ IDEA (or any other JetBrains IDE) like me, here are the steps:
This guide assumes that you have [generated a GPG key added it to your GitHub account][github_sign_gpg].
- Let Git use the pin entry app which comes with gpg4win:
From: http://stackoverflow.com/questions/1676632/whats-a-quick-way-to-comment-uncomment-lines-in-vim
For those tasks I use most of the time block selection.
Put your cursor on the first #
character, press Ctrl``V
(or Ctrl``Q
for gVim), and go down until the last commented line and press x
, that will delete all the #
characters vertically.
For commenting a block of text is almost the same: First, go to the first line you want to comment, press Ctrl``V
, and select until the last line. Second, press Shift``I``#``Esc
(then give it a second), and it will insert a #
character on all selected lines. For the stripped-down version of vim shipped with debian/ubuntu by default, type : s/^/#
in the second step instead.