Skip to content

Instantly share code, notes, and snippets.

View FatalMerlin's full-sized avatar
🧙
Magic

Merlin FatalMerlin

🧙
Magic
View GitHub Profile
@ChriRas
ChriRas / readme.md
Last active July 24, 2024 15:18
Set up default audio device on Ubuntu 20.04 LTS

Problem

I have a notebook connected to a port replicator. I want to use the build-in speakers and microfone and not the external ones. If I boot my notebook in my port replicator Ubuntu changes the devices to external.

Solution

  1. Find your internal speaker
pactl list short sinks
@yovko
yovko / ohmyzsh.md
Last active July 27, 2024 07:26
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

@jondjones
jondjones / Powershell Script To Enable Proxy Within IIS (ARR) - 1
Created March 28, 2020 15:04
Powershell Script To Enable Proxy Within IIS (ARR) - 1
$assembly = [System.Reflection.Assembly]::LoadFrom("$env:systemrootsystem32inetsrvMicrosoft.Web.Administration.dll")
$manager = new-object Microsoft.Web.Administration.ServerManager
$sectionGroupConfig = $manager.GetApplicationHostConfiguration()
$sectionName = 'proxy';
$webserver = $sectionGroupConfig.RootSectionGroup.SectionGroups['system.webServer'];
if (!$webserver.Sections[$sectionName])
{
$proxySection = $webserver.Sections.Add($sectionName);
@ewauq
ewauq / logitech-bind-f13-f24.lua
Last active June 5, 2024 19:47
How to: Bind F13 to F24 keys on the G-keys (Logitech Gaming Keyboards)
-- How to use this script:
-- 1. Install the Logitech Gaming Software: http://support.logitech.com/en_us/software/lgs
-- 2. Launch it, and right click on your profile (the gear icon) and then click on "Scripts".
-- 3. Add the following code into the Script window, save it, and close it. Enjoy.
-- Now G1 is bound to F13, G2 to G14, ... G12 to F24.
function OnEvent(event, arg)
-- OutputLogMessage("event = %s, arg = %s\n", event, arg)
@nicolasdao
nicolasdao / open_source_licenses.md
Last active July 21, 2024 20:51
What you need to know to choose an open source license.
@0xjac
0xjac / private_fork.md
Last active July 28, 2024 03:57
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git