Skip to content

Instantly share code, notes, and snippets.

View benzBrake's full-sized avatar
🏪
忙着赚钱

Ryan Lieu benzBrake

🏪
忙着赚钱
View GitHub Profile
@benzBrake
benzBrake / README.md
Last active June 22, 2021 12:30 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp
#!/bin/sh
# $1 is gid.
# $2 is the number of files.
# $3 is the path of the first file.
DOWNLOAD=/data/aria2/download # no trailing slash!
COMPLETE=/data/aria2/gg # no trailing slash!
LOG=/data/aria2/mvcompleted.log
SRC=$3
@benzBrake
benzBrake / Baidu Light
Last active June 12, 2016 14:00 — forked from funsunz/no_ad_baidu.css
百度轻样式
body {
overflow-x: hidden;
min-width: 600px;
background-color: #F7F7F7
}
#container {
width: 100%
}
#content_right {
display: none
@benzBrake
benzBrake / apns-conf.xml
Last active December 12, 2017 11:08 — forked from imnuts/apns-conf.xml
A listing of APNs to be used as the apns-conf.xml file in Android. Hoping to make as complete and accurate of a list as possible.
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2006, Google Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0