by xero updated 10.29.24
| #!/bin/bash | |
| # | |
| # Copy data from a Time Machine volume mounted on a Linux box. | |
| # | |
| # Usage: copy-from-time-machine.sh <source> <target> | |
| # | |
| # source: the source directory inside a time machine backup | |
| # target: the target directory in which to copy the reconstructed | |
| # directory trees. Created if it does not exists. | |
| # |
I just put the finishing touches on my Raspberry Pi 3 emulation machine running RetroArch. I was not a huge fan of RetroPie due to the reliance on Emulation Station - more moving parts meant that there were more things that could potentially break. I just wanted something that would run raw RetroArch, no frills.
This tutorial is mostly recreated from memory and was most recently tested with a Raspberry Pi 3 running Raspbian Stretch and RetroArch 1.7.7. If there is a mistake or a broken link, PLEASE message me and I will fix it.
I used Raspbian Stretch Lite from this page. Write the image to your SD card using something like Win32 Disk Imager, or if you're using OSX/Linux follow a tutorial on how to write the image using dd.
| # Nathan Craddock 2016 | |
| from PIL import Image | |
| size = (256, 256) | |
| num_pixels = size[0] * size[1] | |
| # Returns the list of base 256 colors | |
| def get_pixel_colors(n): | |
| color_values = [] |
The instructions were tested on a Lenovo X1 Carbon 5th Gen (X1C5) on Arch Linux but should be applicable to other Lenovo models and Linux distributions.
BACKUP YOUR DATA! I created a bootable Ubuntu Image like this:
$ sudo sh -c 'curl --location --silent --fail "http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso" | pv > /dev/<your-usb-drive>'
# note that pv is only there to show progress, it is perfectly fine to redirect curl to the usb drive directly.then I booted from this drive by pressing F12 on reboot and dumped my NVMe disk to an external hard drive like this:
| import os | |
| path = "node-master" | |
| out = open("out.txt", 'w') | |
| for file in os.listdir(path): | |
| in_file = open(os.path.join(path, file)) | |
| out.write(file) |
| -- put this file somewhere in your nvim config, like: ~/.config/nvim/lua/config/lua-lsp.lua | |
| -- usage: require'lspconfig'.sumneko_lua.setup(require("config.lua-lsp")) | |
| local library = {} | |
| local path = vim.split(package.path, ";") | |
| -- this is the ONLY correct way to setup your path | |
| table.insert(path, "lua/?.lua") | |
| table.insert(path, "lua/?/init.lua") |