Skip to content

Instantly share code, notes, and snippets.

@daqi
daqi / rebuild-uos.js
Created July 17, 2022 03:39
UOS 或 deepin 打包流程
// UOS 或 deepin 打包流程
// 参考 https://www.vvave.net/archives/how-to-build-a-debian-series-distros-installation-package.html
// sudo apt-get install dh-make
// sudo apt-get install build-essential
const fs = require('fs-extra');
const path = require('path');
const { spawn } = require('child_process');
const globby = require('globby');
@niklaskeerl
niklaskeerl / notability_local_webdav_backup.md
Created May 24, 2021 08:50
Notability local webdav backup

Backup your Notability notes on your machine using webdav

Setup

  1. Prepare a folder where you want your backup to be.

  2. Install rclone for your system

  3. Run the webdav server using rclone

@cnlohr
cnlohr / CNLohr's Guide for Windows C Apps in 2021.md
Last active March 16, 2025 12:01
How to Set Up a Windows Computer to Write C applications in 2021

Building C apps on Windows in 2021

This document was written on April 3, 2021. The procedure may change over time. This is a companion gist to the youtube video here, where I go through every step of both options

Youtube Version Of This Document

@broestls
broestls / Remove_VMwareTools.ps1
Last active December 22, 2025 16:16
Force removal of VMware Tools, Program Files, and Windows Services
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes.
# This function pulls out the common ID used for most of the VMware registry entries along with the ID
# associated with the MSI for VMware Tools.
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{
reg_id = $item.PSChildName;
@skeeto
skeeto / README.md
Last active September 23, 2024 02:16
AI driving simulation
@abcdw
abcdw / nix vs guix.org
Last active December 27, 2025 06:03
nix vs guix.org

Nix vs Guix

These are notes to the stream: https://youtu.be/S9V-pcTrdL8

Some notes

  • We are not aware of a lot of GNU software available to us.
  • Seems that Guix more hacker-friendly/explorable.

General comparsion

DescriptionNixGuixComment
@le0pard
le0pard / dns.rb
Created October 1, 2020 11:21
Simple Ruby DNS server
# frozen_string_literal: true
require 'socket'
require 'bindata'
class DnsHeader < BinData::Record
endian :big
uint16 :transaction_id
bit1 :flag_QR

Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!

Four things needed overall:

  1. you need WSL2, not WSL1
  2. you need node, of course, and that part isn't so bad
  3. you need to apt install several dependencies
  4. you need an X Server so it can display the electron GUI over in Windows-land

Setup instructions, in order:

Installing GCC 9 on CentOS 7

Introduction

If you need GCC newer than version 4.8.5(default version of centos 7), you can get it by using centos-release-scl

Steps

yum install -y centos-release-scl
yum install -y devtoolset-9
>scl enable devtoolset-9 bash

@trongnghia203
trongnghia203 / install_pyenv.md
Last active July 10, 2025 10:57
Install pyenv