Skip to content

Instantly share code, notes, and snippets.

@MatMercer
MatMercer / wsl-vpn-fix.sh
Last active August 23, 2022 06:24
Fix WSL 2 DNS resolution when connected to Cisco AnyConnect VPN
#!/bin/bash
#--------------------------------------------------------------------------------#
# #
# Fix WSL DNS resolution with Cisco AnyConnect #
# #
# ! Don't forget to set this configuration in /etc/wsl.conf: #
# [network] #
# generateResolvConf = false #
# #
# Based on: #
@steve-chavez
steve-chavez / docker-compose.yml
Created July 12, 2018 19:35
Quickstart for PostgREST with TimescaleDB
version: '3'
services:
db:
image: timescale/timescaledb:latest-pg10
ports:
- "5432:5432"
environment:
POSTGRES_DB: devices_small
POSTGRES_USER: app_user
pgrest:
@ivan
ivan / install_all_fonts.bat
Last active January 10, 2024 23:59
Install all supplemental fonts on Windows 10
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Arab~~~und-ARAB~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Beng~~~und-BENG~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Cans~~~und-CANS~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Cher~~~und-CHER~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Deva~~~und-DEVA~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Ethi~~~und-ETHI~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Gujr~~~und-GUJR~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Guru~~~und-GURU~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hans~~~und-HANS~0.0.1.0
DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hant~~~und-HANT~0.0.1.0
@graemerocher
graemerocher / script-gorm-mongodb.groovy
Last active September 19, 2016 06:40
Using GORM for MongoDB in a Groovy Script
@Grab("org.grails:grails-datastore-gorm-mongodb:2.0.1.RELEASE")
import grails.persistence.*
import grails.mongodb.geo.*
import grails.mongodb.bootstrap.*
import org.bson.types.ObjectId
import com.mongodb.BasicDBObject
def initializer = new MongoDbDataStoreSpringInitializer(City)
initializer.configure()
@bbeck
bbeck / jenkins-swarm-client
Created October 28, 2013 23:05
jenkins swarm client init.d script for CentOS
#!/bin/bash
#
# Jenkins Swarm Client
#
# chkconfig: 2345 89 9
# description: jenkins-swarm-client
source /etc/rc.d/init.d/functions