Skip to content

Instantly share code, notes, and snippets.

@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)
@manualbashing
manualbashing / blog.md
Last active May 12, 2024 15:04 — forked from joncloud/pr.md
Checkout Azure DevOps Pull Requests locally

Forked from piscisaureus

Fetch and checkout one specific pull request

To identify one particular pull request, find the pull request number on the Azure DevOps site:

image

Then fetch and checkout the pull request in a local branch named pull/137

@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active May 12, 2024 15:03
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 12, 2024 15:02
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@sckalath
sckalath / windows_privesc
Last active May 12, 2024 15:00
Windows Privilege Escalation
// What system are we connected to?
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
// Get the hostname and username (if available)
hostname
echo %username%
// Get users
net users
net user [username]