-
Install XQuartz.
-
Install dwm using Homebrew (or whatever):
brew install dwm
-
Create a
xinitrc.d
script for dwm:
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 | |
# | |
# Certbot hook for Hurricane Electric DNS service | |
# | |
# Usage: | |
# | |
# Renew all certificates: | |
# HE_SESSID=<session_id> certbot renew \ | |
# --preferred-challenges dns \ |
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
// Just copy this into console while on a playlist page (https://www.youtube.com/playlist?list=.....) | |
alert(((document) => { | |
let seconds = Array.from(document.querySelectorAll('.pl-video-time .timestamp span')) | |
.map((span) => { | |
let time = span.textContent.split(':'); | |
return (Number(time[0]) * 60) + Number(time[1]); | |
}) | |
.reduce((a,b) => { | |
return a + b; |
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
/* | |
* Simple hash function that uses Web Cryptography API | |
* @param {string} algo - SHA-1/SHA-256/SHA-384/SHA-512 | |
* @param {string} text - text to compute digest from | |
* @return {Promise} - A promise returning text. | |
*/ | |
function hash (algo, text) { | |
const encoded = new TextEncoder().encode(text); | |
return window.crypto.subtle.digest(algo, encoded) | |
.then(result => |
This is similar to best18650battery.com but much simpler and better updated. These are the absolute top 18650s.
Name | Model | Capacity | Discharge | Fasttech links | Note |
---|---|---|---|---|---|
Sony | [US18650VTC6][d-vtc6] | 3120mAh | 30A | [1pcs][vtc6-1], [2-pack][vtc6-2], [4-pack][vtc6-4] | |
LG Chem | [INR18650MJ1][d-mj1] | 3500mAh | 10A | [1pcs][mj1-1], [2-pack][mj1-2], [4-pack][mj1-4] | |
Sanyo (Panasonic) | [NCR18650GA][d-ga] | 3500mAh* | 10A | [1pcs][ga-1], [2-pack][ga-2], [4-pack][ga-4] | NCR** |
Samsung SDI | [INR18650-35E][d-35e] | >3350mAh | 8A | [1pcs][ |
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
; | |
; Infimouse.au3 | |
; an AutoIt script | |
; | |
; Author: Ondrej Simek | |
; License: MIT | |
; | |
; If you move mouse to one border, it'll come from the other. | |
; | |
; Works for multiple screens too, but will have issues if the screen |
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 | |
# Description: Lists packages that were explicitly installed by user. | |
# Run this: curl -Ls goo.gl/RV7oiB | sh | |
export LC_ALL=C | |
MIN=2 # First is the OS installation | |
MAX=$(yum history | awk 'NR==4 { print $1 }') |
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
<html> | |
<head> | |
<title>hi</title> | |
</head> | |
<body> | |
hi | |
</body> | |
</html> |
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
<script src='bench.js'></script> |
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
package gui; | |
import java.awt.Dimension; | |
import java.awt.event.ActionEvent; | |
import javax.swing.AbstractAction; | |
import javax.swing.Action; | |
import javax.swing.BorderFactory; | |
import javax.swing.JFrame; | |
import javax.swing.JMenu; |
NewerOlder