Skip to content

Instantly share code, notes, and snippets.

@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active April 28, 2024 04:39
crack activate Office on mac with license file

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

@cvan
cvan / set-up-chromium-keys.md
Last active March 19, 2024 10:44
Launch Chromium with API Keys on Mac OS X and Windows

Last Updated: March 2023

IMPORTANT: Ignore the out-of-date steps below for getting Chromium keys.

Instead, read this up-to-date guide (Jan 2023) written by @LearningToPi.

P.S. Thank you to every contributor below who provided tips over the years on what should be a straightforward process: setting up Chromium for local development.

Long live the web!

@nicerobot
nicerobot / README.md
Last active February 25, 2024 02:41
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@Kingtous
Kingtous / dsdt.dsl
Last active January 30, 2024 12:25
Thinkbook 14p patched DSDT for enabling S3 suspend state and fixing ACPI Error for \.SB_.LID0 (Based on BIOS version 39WW)
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20211217 (64-bit version)
* Copyright (c) 2000 - 2021 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Fri Apr 8 00:35:05 2022
*
* Original Table Header:
@nschneid
nschneid / zotselect-link.js
Last active January 15, 2024 02:56
Zotero export translator that generates a zotero://select link to an item in the Zotero library. (First a simple version, as well as a version that displays minimal citation information and stores further details as title text.)
@ivan
ivan / install_all_fonts.bat
Last active January 10, 2024 23:59
Install all supplemental fonts on Windows 10
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Arab~~~und-ARAB~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Beng~~~und-BENG~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Cans~~~und-CANS~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Cher~~~und-CHER~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Deva~~~und-DEVA~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Ethi~~~und-ETHI~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Gujr~~~und-GUJR~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Guru~~~und-GURU~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hans~~~und-HANS~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hant~~~und-HANT~0.0.1.0
@insin
insin / bash_prompt.sh
Created December 3, 2011 01:49 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to active virtualenv, git branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@textarcana
textarcana / centos-install-syntax-highlighting-in-less.sh
Last active May 1, 2023 01:01
2020 update: just use bat(1) instead!!!! bat has git integration and also can show invisible characters! OLD STUFF: How to enable syntax-highlighting in less. Use `less -N` (or type -N while in less) to enable line numbers. Based on the procedure described in http://superuser.com/questions/71588
# Enable syntax-highlighting in less.
# Last tested on CentOS 6.3.
#
# First, add these two lines to ~/.bashrc
# export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
# export LESS=" -R "
sudo yum -y install boost boost-devel ctags
wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm
@Explorare
Explorare / com.google.Chrome.mobileconfig
Last active November 28, 2022 05:54
Add local chrome extensions to whitelist in MacOS. https://hencolle.com/2016/10/16/baidu_exporter/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.google.Chrome</key>