#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "Usage: MediaPlayer2-cmd { PlayPause | Next | Previous | Stop | ... }" | |
exit 1 | |
fi | |
tried_starting_something=false |
func split(buf []byte, lim int) [][]byte { | |
var chunk []byte | |
chunks := make([][]byte, 0, len(buf)/lim+1) | |
for len(buf) >= lim { | |
chunk, buf = buf[:lim], buf[lim:] | |
chunks = append(chunks, chunk) | |
} | |
if len(buf) > 0 { | |
chunks = append(chunks, buf[:len(buf)]) | |
} |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
I've been looking for the best Linux backup system, and also reading lots of HN comments.
Instead of putting pros and cons of every backup system I'll just list some deal-breakers which would disqualify them.
Also I would like that you, the HN community, would add more deal breakers for these or other backup systems if you know some more and at the same time, if you have data to disprove some of the deal-breakers listed here (benchmarks, info about something being true for older releases but is fixed on newer releases), please share it so that I can edit this list accordingly.
- It has a lot of management overhead and that's a problem if you don't have time for a full time backup administrator.
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
- It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
- It is free, with no quotas.
- Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"net/mail" | |
"net/smtp" | |
"crypto/tls" | |
) |
(defun extract-translation (start end) | |
(interactive "r") | |
(if (region-active-p) | |
(let* ((text (buffer-substring start end)) | |
(keyname (read-string "Key name: " (extract-translation-default-key-name text))) | |
(short-keyname (car (last (split-string keyname "\\.") 1))) | |
(rails-root (if (fboundp 'ffip-project-root) | |
(ffip-project-root) | |
(projectile-project-root))) |
Decode | |
====== | |
openssl enc -base64 -d <<< SGVsbG8sIFdvcmxkIQo= | |
Encode | |
====== | |
openssl enc -base64 <<< 'Hello, World!' |
diff --git a/Makefile b/Makefile | |
index 12fbe8e..81d25db 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -3,7 +3,7 @@ BINDIR ?= ${PREFIX}/bin | |
CC ?= gcc | |
-SRCS_RAW = skippy wm dlist mainwin clientwin layout focus config tooltip img | |
+SRCS_RAW = skippy wm dlist mainwin clientwin layout focus config tooltip img img-xlib |