Convert the output of http://www.keyboard-layout-editor.com/ to exact offsets in inches and mm.
| // #include "analog.h" | |
| #include "stdio.h" | |
| #include "stdlib.h" | |
| #include "stdint.h" | |
| #include "stdbool.h" | |
| // dz+s | 98*s | s+dz | |
| // 100s+2dz = 1024 | |
| // dz = 12 | |
| // s = 10 |
| msort :: Ord a => [a] -> [a] | |
| msort [] = [] | |
| msort [a] = [a] | |
| msort as = let half = div (length as) 2; merge [] ys = ys; merge xs [] = xs | |
| merge (x:xs) (y:ys) = if x <= y then x:merge xs (y:ys) else y:merge (x:xs) ys | |
| in merge (msort $ take half as) (msort $ drop half as) |
| # This code is public domain. | |
| import json | |
| data = {} | |
| images = {} | |
| def imagename_to_id(name): | |
| return list(filter(lambda img: img['file_name'] == name, data['images']))[0]['id'] |
| { | |
| "name": "Darcula", | |
| "variables": | |
| { | |
| "bg": "#2B2B2B", | |
| }, | |
| "globals": | |
| { | |
| "background": "var(bg)", | |
| "foreground": "#A9B7C6", |
Analyze traffic of a remote host with local Wireshark.
ssh user@host sudo tcpdump -U -n -i eth0 not port 22 -w - | wireshark -k -S -i -
This was originally posted here on reddit. If you decide to try this, please post a comment either confirming that it works or stating any issues that came up. Thanks to reddit user /u/mat_storm1 for pointing out some typos and thanks to reddit user /u/supercore23 for pointing out potential issues with spaces in the world path.
This guide explains how to install and run a Terraria server on your Raspberry Pi. I assume you have already installed Raspbian and have a very basic understanding of the command line. Installation on other Unix-based systems should be very similar. The goal is to reach a setup that only requires you to plug in your Pi to start the server. Connecting to the server should be easily done by using a hostname, not an IP. We should also be able to ssh into the server and do server-admin stuff at any t