Skip to content

Instantly share code, notes, and snippets.

@gdamjan
gdamjan / arch-mirror.service
Last active May 12, 2024 15:15
script to rsync from an arch mirror
[Unit]
Description=Mirror arch linux
[Service]
Type=oneshot
ExecStart=/usr/local/bin/sync_arch_mirror.sh
User=arch
IPAccounting=yes
NoNewPrivileges=yes
PrivateTmp=yes
@jaysridhar
jaysridhar / Ubuntu-KVM.md
Last active May 12, 2024 15:14
Setting up virtual machines on Ubuntu using KVM

Started with Ubuntu 18.04 LTS minimal install on KVM host

Installed the following KVM related packages

Running as root, obviously:

apt install -y qemu-kvm libvirt-bin bridge-utils virtinst
@nikhita
nikhita / update-golang.md
Last active May 12, 2024 15:14
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 12, 2024 15:13
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@lmullen
lmullen / Makefile
Last active May 12, 2024 15:11
PDF slides and handouts using Pandoc and Beamer
SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md))
HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md))
all : $(SLIDES) $(HANDOUTS)
%.md.slides.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -o $@
%.md.handout.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -V handout -o $@
@maelvls
maelvls / How-to-automate-build-bottles-your-homebrew-tap.md
Last active May 12, 2024 15:10
Automate build workflow for Homebrew tap bottles (Linux and macOS)

How to automate the build of bottles on your Homebrew tap

Note on Oct 4, 2018: due to a change in Homebrew's brew test-bot behaviour, the user must set HOMEBREW_TRAVIS_CI and HOMEBREW_TRAVIS_SUDO appropriately (it was previously using Travis-CI-provided TRAVIS and TRAVIS_SUDO).

This tutorial is a follow-up to the discussion we had on davidchall/homebrew-hep#114. It relies on a fork of the test-bot provided by davidchall; you can get it with brew tap maelvalais/test-bot. First:

  1. the Github project must be of the form https://github.com//homebrew- with the following tree
@tyrell
tyrell / metasploit-on-m1-macbook-air.md
Last active May 12, 2024 15:07
Installing Metasploit on an M1 Macbook Air

Introduction

This method installs Metasploit from the official OSX installer found at https://osx.metasploit.com/metasploitframework-latest.pkg

Run the installer

  1. Download the installer from https://osx.metasploit.com/metasploitframework-latest.pkg
  2. Run the installer.
  3. You should get it blocked from running.
  4. Go to OSX System Preferences -> Security & Privacy and tell OSX to "Open it anyway".
  5. The installer will start.
  6. At some point you will have to type your password to give the installer elevated privileges to continue.
@Varneon
Varneon / VRCSdkControlPanelWorldBuilder_ValidationStripping.md
Last active May 12, 2024 15:07
How to speed up VRCSDK - Worlds control panel by disabling redundant scene checks

How to speed up VRCSDK - Worlds control panel by disabling redundant scene checks

This guide shows you how to make VRCSDK faster by disabling scene checks considered redundant by many advanced world creators who just want the SDK to do its job, which is building and uploading the content they create to VRChat.

⛔ Follow this guide at your own risk! Please do not proceed if you do not consider yourself an advanced world creator and/or you are not familiar with VRChat's inner workings. ⛔

All changes in this guide will be made in the following file: Packages\com.vrchat.worlds\Editor\VRCSDK\SDK3\VRCSdkControlPanelWorldBuilder.cs, so go ahead and open it in your favourite code editor and let's get started!

⚠️ This guide applies to VRCSDK version 3.6.0

Be careful with applying these changes to different versions of the VRCSDK, double check what you're about to disable

@mikroskeem
mikroskeem / gccemacs_osx.md
Last active May 12, 2024 15:07
gccemacs on OSX

gccemacs on OS X

Read this first: http://akrl.sdf.org/gccemacs.html

Prerequisites

1) GCC with libgccjit enabled

For that you need to compile gcc (duh). I edited Homebrew's gcc formula:

@e7d
e7d / remove-obsolete-gpg-key-from-dnf.md
Last active May 12, 2024 15:06
Remove obsolete GPG key from DNF (Fedora)