I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.
This file contains hidden or 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
| /* | |
| * This document is provided to the public domain under the | |
| * terms of the Creative Commons CC0 public domain license | |
| */ | |
| How to boot Arch Linux ARM in QEMU (patched for M1) | |
| Prerequisites: | |
| QEMU - patched for M1 processors - patches: https://github.com/utmapp/qemu |
Installing Arch Linux ARM on a SD card for Raspberry Pi 0 W and loading wifi credentials for headless usage
Before starting I highly suggest you create a new directory on your /home/user directory with an appropiate name for this task like rpi0alarm so you can change directory to /home/user/rpi0alarm and go through the following steps.
As I wrote this guide after collecting info from different sources (listed at the end) be mindful of your current path and the commands you are running to not damage your current installation on the host computer you are creating the SD Card.
This file contains hidden or 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
| $.fn.select2.amd.define('select2/data/extended-ajax',['./ajax','../utils','jquery'], function(AjaxAdapter, Utils, $){ | |
| function ExtendedAjaxAdapter ($element,options) { | |
| //we need explicitly process minimumInputLength value | |
| //to decide should we use AjaxAdapter or return defaultResults, | |
| //so it is impossible to use MinimumLength decorator here | |
| this.minimumInputLength = options.get('minimumInputLength'); | |
| this.defaultResults = options.get('defaultResults'); | |
| ExtendedAjaxAdapter.__super__.constructor.call(this,$element,options); |
This file contains hidden or 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
| ; This code is hereby released by its author (Per Vognsen) into the public domain. | |
| ; It's mostly a proof of concept though it was surprisingly usable for how simple it was to code. | |
| ; If you want to use it as a starting point for a more polished package, go right ahead. | |
| (require 'cl) | |
| (defstruct wm-window buffer (point 0) (start 0) (hscroll 0) dedicated) | |
| (defvar wm-windows) | |
| (defvar wm-windows-alist) |
This file contains hidden or 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 | |
| # Recursive file convertion windows-1251 --> utf-8 | |
| # Place this file in the root of your site, add execute permission and run | |
| # Converts *.php, *.html, *.css, *.js files. | |
| # To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
| find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
| while read file | |
| do |
This file contains hidden or 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
| ;; emacsd-tile.el -- tiling windows for emacs | |
| (defun swap-with (dir) | |
| (interactive) | |
| (let ((other-window (windmove-find-other-window dir))) | |
| (when other-window | |
| (let* ((this-window (selected-window)) | |
| (this-buffer (window-buffer this-window)) | |
| (other-buffer (window-buffer other-window)) | |
| (this-start (window-start this-window)) |
NewerOlder
