Skip to content

Instantly share code, notes, and snippets.

View dajo's full-sized avatar

Jason Lachowsky dajo

View GitHub Profile
@tstellanova
tstellanova / stlink-raspi.md
Last active June 7, 2025 15:50
Install st-link on raspberry pi
@paveleremin
paveleremin / Cisco.vbs
Created February 24, 2017 06:45
Cisco AnyConnect: save password
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """%PROGRAMFILES(x86)%\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe"""
WScript.Sleep 1500
WshShell.AppActivate "Cisco AnyConnect Secure Mobility Client"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
@deargle
deargle / client.conf
Last active November 2, 2025 00:02
OpenVPN server.conf and client.conf
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

@DustinWehr
DustinWehr / beeftext_to_espanso.js
Created March 4, 2021 19:20
Beeftext snippets to Espanso snippets
/*
1. Replace my snippets json with yours.
2. Copy paste this whole file into your browser console.
*/
beeftext_json = {
"combos": [
{
"creationDateTime": "2019-01-25T11:23:30.000",
"enabled": true,
@kirbah
kirbah / dual-boot-windows-and-ubuntu-with-luks-tpm2-encryption.md
Last active November 8, 2025 17:40
Dual booting Windows 11 and Ubuntu 22.04 LTS with LUKS and TPM2 encryption

Dual booting Windows 11 and Ubuntu 22.04 LTS with LUKS and TPM2 encryption

Note

Ubuntu 24.04 Compatibility

This guide is not compatible with Ubuntu 24.04 and a clear migration path from the Ubuntu 22.04 setup described here is not available. A guide for Ubuntu 24.04 has not been prepared.

The major differences in Ubuntu 24.04 are:

  • LUKS Setup: The setup for LUKS during installation is tricky and requires the following steps:
    1. When you get to the "Disk setup" step, select "Erase disk and install Ubuntu".
@seinecle
seinecle / list-of-ai-apps-for-visual-creation.md
Last active December 25, 2025 23:22
updated regularly!

130 AI apps for visual creation in 11 categories

A curated list of generative AI applications for creating, editing, and enhancing visual assets: images, videos, 3D models and more.

by Clement Levallois


💎 : nearly unmatched