Instructions for running Debian sid with systemd on WSL2
- Make sure you're running Windows 10 Build 19041+ (run
ver
) - Enable the Windows Subsystem for Linux (reboot if needed):
# syntax=docker/dockerfile:1 | |
# Keep this syntax directive! It's used to enable Docker BuildKit | |
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865 | |
# but I try to keep it updated (see history) | |
################################ | |
# PYTHON-BASE | |
# Sets up all our shared environment variables | |
################################ |
----[[ Helpers ]]---- | |
vim.cmd 'packadd paq-nvim' | |
local lsp = require 'lspconfig' | |
local paq = require 'paq-nvim'.paq | |
local scopes = {o = vim.o, b = vim.bo, w = vim.wo} | |
local function map(mode, lhs, rhs, opts) | |
local options = {noremap = true, silent = true} | |
if opts then options = vim.tbl_extend('force', options, opts) end | |
vim.api.nvim_set_keymap(mode, lhs, rhs, options) |
{ | |
"useTaobaoRegistry": false, | |
"presets": { | |
"vue-project-template": { | |
"useConfigFiles": true, | |
"plugins": { | |
"@vue/cli-plugin-babel": {}, | |
"@vue/cli-plugin-typescript": { | |
"classComponent": true, | |
"useTsWithBabel": true |
{ | |
"$schema": "http://json-schema.org/draft-07/schema", | |
"description": "Taskfile YAML Schema", | |
"oneOf": [ | |
{ | |
"type": "object", | |
"properties": { | |
"version": { | |
"description": "Specify the Taskfile format that this file conforms to.", | |
"anyOf": [ |
#!/bin/bash | |
export WINHOME=$(wslpath "$(wslvar USERPROFILE)") | |
# github username is needed to pull down the dot files | |
export GITHUBUSERNAME="mattetti" | |
# wininstall does an install using winget and checks that it went well | |
function wininstall { | |
echo "Installing $1"; | |
cmd.exe /C winget.exe install -e $1; |
Instructions for running Debian sid with systemd on WSL2
ver
)import time | |
import praw | |
USERNAME = "" | |
PASSWORD = "" | |
CLIENT_ID = "" | |
CLIENT_SECRET = "" |
if(!(Get-Command git -ErrorAction SilentlyContinue)) { | |
$gitDir = "$env:LOCALAPPDATA\CustomGit" | |
if(Test-Path $gitDir) { Remove-Item -Path $gitDir -Recurse -Force } | |
New-Item -Path $gitDir -ItemType Directory | |
$gitLatestReleaseApi = (Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/git-for-windows/git/releases/latest).Content | ConvertFrom-Json | |
$mingitObject = $gitLatestReleaseApi.assets ` | |
| Where-Object {$_.name -match "MinGit-[\d.]*?-64-bit.zip"} ` | |
| Select-Object browser_download_url |
I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.
I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.
There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru
# Starship command prompt configuration file. Colour choice and over-use of emoji | |
# is to help blend in with Ubuntu MATE default theme, Ambiant-Mate. | |
# disable starship from forcing a new line to be taken. Solved the empty line | |
# at start of terminal | |
add_newline = false | |
[line_break] | |
disabled = true |