Use Vim as a hex editor
- Open the file in Vim.
- Run the command
:% ! xxd
- Edit.
- Once done, run
:% ! xxd -r
- Save.
Original source: https://stackoverflow.com/questions/827326/whats-a-good-hex-editor-viewer-for-the-mac
#!/bin/bash | |
# Removes old revisions of snaps | |
# CLOSE ALL SNAPS BEFORE RUNNING THIS | |
set -eu | |
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
done |
#!/usr/bin/env bash | |
readonly FOLDER=$1 | |
create_checksum_file () | |
{ | |
local folder=$1 | |
local file="$folder/md5_sums" | |
echo "Create checksum file $file" |
:% ! xxd
:% ! xxd -r
Original source: https://stackoverflow.com/questions/827326/whats-a-good-hex-editor-viewer-for-the-mac
function concat(firstText, secondText) { | |
return firstText + secondText; | |
} | |
function escape(key) { | |
if (key.match(/^[A-Za-z0-9\-\_]+$/)) | |
return key | |
else | |
return `"${key}"` | |
} |
import Color exposing (..) | |
import Graphics.Collage exposing (..) | |
import Graphics.Element exposing (..) | |
import Mouse | |
import Window | |
type alias Box = (Int,Int) | |
type alias Editor = { boxes: List Box } | |
main : Signal Element |
Show timing information
curl -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total}
#Rule and Runners
idealo
@StefanBirkner
##Rule
Generates classes that wrap other classes. Such wrapper classes can be used for named parameters in order to write better code.
The Semantic Wrapper Maven plugin is available from Maven Central.
sudo apt-get install python-sphinx | |
sphinx-apidoc -o dist <module> | |
sphinx-build -b html source build |