Skip to content

Instantly share code, notes, and snippets.

@busybox11
busybox11 / twitter-close-friends.user.js
Last active December 13, 2023 20:44
Bring back Twitter's Close Friends feature
// ==UserScript==
// @name Bring back close friends - twitter.com
// @namespace twitter scripts
// @match *://*.twitter.com/*
// @run-at document-start
// @grant none
// @version 1.2
// @author @busybox11
// @description 11/3/2023, 1:12:10 AM
// @updateURL https://gist.githubusercontent.com/busybox11/d0530e396bd4597a62587032ee55d214/raw
@Mygod
Mygod / export-ble-infos.py
Last active April 22, 2024 17:14
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@augustocdias
augustocdias / sennheiser.md
Last active October 18, 2021 22:27
Sennheiser GSX 1000/1200 on Linux

UPDATE: this is out of date and although it worked for me at the time, there is a better solution to make it work: https://github.com/evilphish/sennheiser-gsx-1000

In order to make the Sennheiser amplifier GSX 1000/1200 work on Linux as a 7.1 device it is needed to change a configuration file of pulseaudio. Execute this command to identify the output sound cards:

aplay -l

This is a sample output

# nixos-rebuild build-vm -I nixpkgs=/home/eric/Projects/nixos/nixpkgs -I nixos-config=/tmp/wireguard-conf.nix
{ config, pkgs, ... }:
{
imports =
[
<nixos/modules/installer/scan/not-detected.nix>
];
nix.maxJobs = 4;
@imjasonh
imjasonh / markdown.css
Last active May 24, 2024 22:56
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@n3dst4
n3dst4 / ConEmu Git Bash.md
Last active July 19, 2022 17:11
My ConEmu / Cmder git bash task config
  1. Open Conemu

  2. Open Settings -> Tasks or go to new tab button -> Setup tasks.

  3. Click + to add a new task

  4. Enter the name as Git Bash or whatever you like

  5. Task parameters:

     /icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
    
  6. Command:

@cardil
cardil / Installation.sh
Last active September 5, 2018 09:46
Linux NVidia Optimus with external monitor - enable/disable scripts tested on Ubuntu. Source article: http://www.unixreich.com/blog/2013/linux-nvidia-optimus-on-thinkpad-w520w530-with-external-monitor-finally-solved
# You will need latest NVIDIA drivers installed. At the time of writing, version is 331.20.
# On ubuntu 13.10, it looks like this:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-331
# Now we need to install bumblebee:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get install bumblebee bumblebee-nvidia bbswitch-dkms
@robinsmidsrod
robinsmidsrod / gist:911561
Created April 9, 2011 17:06
Booting PXELinux with an explicit TFTP prefix
#!ipxe
echo
echo Booting SystemRescueCD 2.1.0 x86 for ${hostname}
# PXELinux options, see http://syslinux.zytor.com/wiki/index.php/PXELINUX for details
set 210:string http://boot.smidsrod.lan/sysrcd-2.1.0-x86/
set 209:string isolinux.cfg
set filename ${210:string}pxelinux.0
chain ${filename} ||
echo Booting ${filename} failed, dropping to shell
shell