Note
Highlights information that users should take into account, even when skimming.
| # Edit this configuration file to define what should be installed on | |
| # your system. Help is available in the configuration.nix(5) man page, on | |
| # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). | |
| { config, lib, pkgs, unstablePkgs, ... }: | |
| { | |
| imports = | |
| [ # Include the results of the hardware scan. | |
| ./hardware-configuration.nix |
| I tried setting up tree-sitter with kakoune, | |
| and it turned out to be not quite trivial. | |
| There are multiple plugins that aim to provide this functionality | |
| of varying degree of completeness. | |
| I felt that existing documentation for them focuses low-level details, | |
| and there isn't a simple list of steps to get something working. | |
| Below are such steps to get a minimal working syntax highlighting for Kakoune using tree-sitter. | |
| I use use `latex` language as an example, put your languages in its place. |
Note
Highlights information that users should take into account, even when skimming.
| ### Keybase proof | |
| I hereby claim: | |
| * I am gnull on github. | |
| * I am ph14nix (https://keybase.io/ph14nix) on keybase. | |
| * I have a public key ASD_jCqn6gZMq2ZhDG0rVEO3d_AMkdy-FVjk1G4MSzEEeQo | |
| To claim this, I am signing this object: |
| #!/bin/bash | |
| # shellcheck disable=SC2059 | |
| # | |
| #.USAGE | |
| # To start, run: | |
| # wget https://raw.githubusercontent.com/danielewood/sierra-wireless-modems/master/autoflash-7455.sh && sudo bash autoflash-7455.sh | |
| #.SYNOPSIS | |
| # - Only for use on Ubuntu 20.04 (or later) LiveUSB | |
| # - Changes all models of EM7455/MC7455 Modems to the Generic Sierra Wireless VID/PID |
| #!/bin/sh -xefu | |
| # https://stackoverflow.com/questions/61385594/create-pdf-where-each-page-is-a-merge-of-image-and-a-svg-file | |
| # https://stackoverflow.com/questions/501723/overlay-one-pdf-or-ps-file-on-top-of-another | |
| # https://superuser.com/questions/381125/how-do-i-convert-an-svg-to-a-pdf-on-linux | |
| # http://notesofaprogrammer.blogspot.com/2017/03/converting-svg-to-pdf-on-linux-command.html | |
| mkdir -p res/ready | |
| for i in $(seq 1 242); do |
| #!/bin/sh -efux | |
| # This file works only with IPv4. The variables in capitals are the parameters | |
| # you can adjust to your needs | |
| # The name of the modem network interface as shown in `ip a` | |
| INTERFACE=wwp0s20f0u3i12 | |
| # The access point address. This is the same value as the one you typically | |
| # have in the internet settings of your mobile phone. |
| asdasdsa |
| import Data.Word | |
| freq = 0.3 | |
| spread = 8.0 | |
| unbase :: Integral int => int -> Word8 -> Word8 -> Word8 -> int | |
| unbase base r g b = (fi r*base+fi g)*base+fi b | |
| where fi = fromIntegral | |
| -- | Approximate a 24-bit Rgb colour with a colour in the xterm256 6x6x6 colour cube, returning its index. |
| import Control.Concurrent.Async | |
| import Control.Monad | |
| sites = ["http://www.google.com", | |
| "http://www.bing.com", | |
| "http://www.yahoo.com", | |
| "http://www.wikipedia.com/wiki/Spade", | |
| "http://www.wikipedia.com/wiki/Shovel"] | |
| printRepeat :: String -> IO [String] |