- Turn Windows features on or off
- Enable:
- Windows Subsystem for Linux (WSL)
- Virtual Machine Platform
wsl --update
This file contains 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
version: "3.9" | |
# borrowed from | |
# https://github.com/docker/awesome-compose/blob/master/wordpress-mysql/compose.yaml | |
services: | |
db: | |
# https://make.wordpress.org/hosting/handbook/compatibility/#wordpress-php-mysql-mariadb-versions | |
image: mariadb:11.3 | |
command: '--default-authentication-plugin=mysql_native_password' | |
volumes: |
This file contains 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
#!/usr/bin/env python | |
""" | |
Pack the GOG games entries into a SQLite database | |
License: WTFPL | |
https://github.com/ezerear/gog-games.to_backup | |
""" | |
import json |
This file contains 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
import java.awt.Color; | |
import java.awt.Component; | |
import java.awt.Graphics; | |
import java.awt.Frame; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
class CzechiaFlag { | |
static class CzechiaFlagComponent extends Component { | |
public void paint(Graphics g) { |
This file contains 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
#!/usr/bin/env node | |
/* eslint-env node */ | |
const process = require("process"); | |
const fs = require("fs"); | |
const args = process.argv.slice(2); | |
if (args.length !== 1) { | |
console.error("Please pass in path to angular.json file"); | |
process.exit(1); |
This file contains 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
#!/usr/bin/env python3 | |
import urllib.request | |
import urllib.parse | |
from bs4 import BeautifulSoup | |
base_url = 'https://www.sigstick.com/stickers' | |
params = { 'author': 'kal (we-巫巴多-duck)' } | |
url = f'{base_url}?{urllib.parse.urlencode(params)}' |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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 | |
CURRENT_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" | |
cd "$CURRENT_DIR" | |
workpath="$1" | |
cd "${workpath}" | |
for image in *.jpeg; do | |
date_format=$(echo "${image}" | awk '{gsub(/-/, ":", $3); print $3}') |
This file contains 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
import { Action, createReducer, on } from '@ngrx/store'; | |
export const featureKey = 'niceFeature'; | |
export interface State {} | |
export const initialState: State = {}; | |
const reducerFn = createReducer( | |
initialState, |
This file contains 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 | |
# install via | |
# bash <(curl -L 'https://gist.githubusercontent.com/altbdoor/9c801dcad5f11352e3dc346ba9ebaf9c/raw/install_node.sh') | |
default_version="14" | |
node_regexp='node-v.+?-linux-x64.tar.xz' | |
read -p "Enter desired major version, or leave blank for latest-v${default_version}.x: " node_version |
NewerOlder