Skip to content

Instantly share code, notes, and snippets.

View David7ce's full-sized avatar
👋

David7ce David7ce

👋
View GitHub Profile
@David7ce
David7ce / github-dg-actions.yml
Created November 6, 2023 18:52
Deploy Digital Garden to GitHub Pages with this workflow
name: GH Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
@h3ssan
h3ssan / JetBrains trial reset.md
Last active July 18, 2025 03:07
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@kepano
kepano / obsidian-web-clipper.js
Last active July 21, 2025 04:15
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@captainhook
captainhook / SpotifyWhitelist
Last active March 20, 2025 18:02
Spotify whitelist, Pi-hole compatible. Original source: https://github.com/x0uid/SpotifyAdBlock
# Spotify's Anti-Adveritsing blocking servers, tricking services to stop music services (DONT BLOCK THESE!):
gcdn.2mdn.net
r9---sn-n4v7kn76.c.2mdn.net
gew1-accesspoint-b-zzfg.ap.spotify.com
ns1.p23.dynect.net
ns3.p23.dynect.net
ns4.p23.dynect.net
dns1.p07.nsone.net
dns2.p07.nsone.net
dns3.p07.nsone.net
#!/bin/bash
## UNLICENSE file for license information
# Misc checks
if [ $(id -u) -ne 0 ]
then
echo "This script needs root to work." # It really does. We're installing packages.
exit 1
fi
@MartinAngeloni
MartinAngeloni / ahorcado.cs
Created August 31, 2017 16:43
Simulando el juego del ahorcado en c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AhorcadoPalabras;
namespace ahorcadoString
{
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active July 22, 2025 09:58
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@lmmx
lmmx / opml2html.pl
Created December 3, 2015 15:22
OPML to HTML bookmarks file converter, via http://jeremy.zawodny.com/blog/archives/000386.html
#!/usr/bin/perl -w
#
# opml2html.pl, (c) Jeremy Zawodny -- http://jerermy.zawodny.com/blog/
#
# Updated by Michael Radwin (http://www.radwin.org/michael/blog/)
# on Dec 26th, 2003 to include image size attributes and link
# titles.
#
# You may distribute this code freely. It's not rocket science.
#
@fomightez
fomightez / remove blank lines regex.md
Last active March 10, 2025 15:35
remove all blank lines using regular expressions