Skip to content

Instantly share code, notes, and snippets.

@erkobridee
erkobridee / 01__second-brain-system.md
Last active January 6, 2025 15:50
Second Brain System and productive useful references

Contributor License Agreement (CLA)

Thank you for contributing to ShowScript! In addition to this open-source version hosted on GitHub and licensed under AGPL 3.0, MCParks maintains a private version of ShowScript that has a few hooks into internal build systems, legacy plugins, and custom configuration. We use Copybara to remove these irrelevant parts of our internal version before publishing to GitHub and attaching the open source license. We also use Copybara to integrate contributions from folks like you into our internal version. We promise our internal version will never hide or obfuscate useful features or functionality available in the open source version! Before accepting your contribution, we ask that you sign the following Contributor License Agreement (CLA) that will allow us to maintain this minimally-changed internal version. Thanks again for helping us improve ShowScript!

1. Grant of License

@foosel
foosel / .Xmodmap
Created January 31, 2021 23:45
KMonad config to turn a ThinkPad X240 keyboard UHK alike. Combined with .Xmodmap for german umlauts and fixed ins/end shenanigans.
! Fix ThinkPad shenanigans
keycode 118 = End
keycode 115 = Insert
! AltGr is Mode_switch
clear mod5
keycode 108 = Mode_switch
! AltGr shortcuts for umlauts
keycode 39 = s S ssharp
@andreasonny83
andreasonny83 / README.md
Last active January 6, 2025 15:47
Readme template

npm version code style: prettier

Project Name

Write a project description

Prerequisites

This project requires NodeJS (version 8 or later) and NPM.

@gramcha
gramcha / having-multiple-jdk-macos.md
Created November 28, 2020 14:34
Managing multiple Java versions in MacOS

Installing different versions of open jdk through Homebrew(assuming already installed) and already having Java 8.

We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).

brew install jenv

Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc

@forstie
forstie / frca_info.sql
Created February 7, 2024 12:01
The path to achieving improved security on IBM i is sometimes a winding road. SQL can help to get you there on time. In this installment, FRCA is raised from obscurity to something understandable. #SQLcandoit,
--
-- Subject: HTTP Servers and FRCA
-- Author: Scott Forstie
-- Date : February, 2024
-- Features Used : This Gist uses SQL PL, qsys2.object_statistics, qsys2.syspartitionstat,
-- SQL aliases, SQL built-in functions, UDTF, qsys2.ifs_read, and pipe
--
-- HTTP Server configuration detail resides in the IFS.
-- The HTTP Server instance file (QUSRSYS/QATMHINSTC *FILE)
-- points to the IFS path to use for each specific server.
@MrMocchy
MrMocchy / Main.cpp
Last active January 6, 2025 15:44
もちもち伸びる円の描画
# include <Siv3D.hpp> // Siv3D v0.6.15
class MochiMochiCircle {
private:
// ポリゴン作成量を減らすため、単位円を所持。
Array<Vec2> m_vertices;
public:
Vec2 center;
double radius;
@seanchatmangpt
seanchatmangpt / gen_pydantic_instance.py
Last active January 6, 2025 15:42
Create DSPy Signatures from Pydantic Models
import ast
import logging
import inspect
from typing import Type, TypeVar
from dspy import Assert, Module, ChainOfThought, Signature, InputField, OutputField
from pydantic import BaseModel, ValidationError
logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR)
@chrisvfritz
chrisvfritz / index.html
Created November 18, 2014 19:22
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@perrygeo
perrygeo / us_counties_geocoding.md
Created December 13, 2022 15:27
Geocoding US Counties with PostGIS

County/State level geocoding in postgis

If your geocoding task requires only US county and state level information, you can avoid a third party web service dependency using open data and postgis.

Data source

Natural Earth counties, US only.