Skip to content

Instantly share code, notes, and snippets.

@aaronparker
aaronparker / Export-GPO.ps1
Created May 1, 2023 14:06
Export GPO objects from a lab/test domain and zip
<#
Export GPO objects from a lab/test domain and zip
#>
# Local path over RDP connection
$Destination = "C:\Backup"
# Create backups, zip file and copy to client path
$Path = "C:\Temp\Prod-GPO"
$Domain = "home.stealthpuppy.com"
@xavdid
xavdid / custom.css
Created April 23, 2023 06:20
Obsidian CSS Customizations
/* set my own variables */
.theme-dark {
/* ==highlights== */
--text-highlight-bg: darkorchid;
/* vertical lines in lists */
--indentation-guide-color: cyan;
/* active sidebar item */
--nav-item-background-active: #e67e00;
/* don't make code smaller than normal text */
body {
/* for some reason, this is needed to avoid
* the first checkbox not colouring.... */
}
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task="x"],
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task="X"],
ul > li.task-list-item[data-task="x"],
ul > li.task-list-item[data-task="X"] {
text-decoration: none;
@hazycora
hazycora / youtube-subscription-csv-export.md
Last active October 12, 2025 18:35
Export YouTube subscriptions in CSV Google Takeout format.

Go to youtube.com/feed/channels

The page should display a list of your YouTube subscriptions. Run the following JavaScript in the console. Your YouTube subscriptions will be displayed on screen for you to copy-paste.

This CSV response can be saved and imported into other apps which can load Google Takeout subscription files, such as NewPipe.

@vielhuber
vielhuber / index.html
Created February 9, 2022 00:13
link open multiple urls at the same time #html #js
<a
onclick="window.open('https://foo.com');return true;"
href="https://bar.com"
>
This opens https://foo.com in a new window and https://bar.com in the same window and works without triggering popup blockers.
</a>
@DanilAndreev
DanilAndreev / Rainbow tables (hash-chains).md
Last active September 28, 2025 23:26
Rainbow tables (hash-chains)

Rainbow tables

Introduction

A lot of water has flowed under the bridge since then, when the theme of rainbow tables was at its peak, but, nevertheless, the idea is entertaining. It is about this kind of intricate tables that I want to tell you.

Theory

Brute force method

@extratone
extratone / ddrop.md
Created December 4, 2020 13:00
How to convert a list of URLs to a bookmarks.html file.

Discord Channel Links to Raindrop Bookmarks

How to Migrate Links in Discord Channels to Raindrop Collections

The Dilemma

I have used a Discord channel as my "Reading List" for years, but have been using Raindrop in the past month and would like to migrate all the links to all the articles, essays, videos, etc that I've posted in the channel through its existence into my Reading List Collection on Raindrop.

Requisites

Links for Nisght tools and tutorials

Download center

Installing Nsight compute from command-line:

# Download .run file from website and accept the terms and conditions.
sudo ./nsight-compute-linux-2020.1.1.8-28506821.run --nox11
@bcdavasconcelos
bcdavasconcelos / Pisium Night.css
Last active December 12, 2023 17:12
Pisium CSS for Obsidian with several modifications
/* global */
:root
{
--font-size-normal: 26px;
--font-size-code: 22px;
--font-size-side-dock: 13.5px;
--font-size-side-dock-title: 15px;
--font-size-blockquote: 20px;
--font-size-status-bar: 12px;
--line-height-preview: 1.7em;
:root {
--dark0: #2e3440;
--dark1: #3b4252;
--dark2: #434c5e;
--dark3: #4c566a;
--light0: #d8dee9;
--light1: #e5e9f0;
--light2: #eceff4;