Skip to content

Instantly share code, notes, and snippets.

View gp-slick-coder's full-sized avatar

Georg Perhofer gp-slick-coder

View GitHub Profile
@junielton
junielton / antigravity-browser-wsl.md
Last active March 18, 2026 04:41
How to Run Antigravity Browser Automation on WSL2

Strategy: Bridge the WSL connection to use the native Windows Chrome installation via port forwarding. This avoids slow rendering inside Linux and utilizes your GPU.

1. Windows Setup (One-Time)

Open PowerShell as Administrator for these steps.

  1. Get your WSL Gateway IP (Run this inside your WSL terminal):
    ip route show | grep -i default | awk '{ print $3}'
    
@wassname
wassname / jupyter_logging.py
Last active December 9, 2024 21:49
simple logging for jupyter or python which outputs to stdout (or a console or terminal) and a log file
"""
In jupyter notebook simple logging to console
"""
import logging
import sys
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
# Test
logger = logging.getLogger('LOGGER_NAME')
@Narven
Narven / bulma-form-renderer.ts
Created October 10, 2017 14:13
Bulma.io form renderer for aurelia and aurelia form.
/**
* Bulma.io form renderer for aurelia and aurelia form.
*
* Converted from "Bootstrap form renderer for aurelia and aurelia form."
*
* @export
* @class BulmaFormRenderer
*/
export class BulmaFormRenderer {
render(instruction) {
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@sfwn
sfwn / 0 gc-step.md
Last active June 7, 2023 13:06
docker registry cleanup script : just reserve most recently 5 images per repo

you need jq first.

Steps:

  1. download the script && chmod +x
  2. enable "delete" inside docker registry container
/etc/docker/registry/config.yml

storage:
 delete:
@adamreisnz
adamreisnz / package.json
Last active April 12, 2025 09:09
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",
@JasonKleban
JasonKleban / LiteEvent.ts
Last active November 5, 2024 18:59
TypeScript LiteEvent Events implementation
interface ILiteEvent<T> {
on(handler: { (data?: T): void }) : void;
off(handler: { (data?: T): void }) : void;
}
class LiteEvent<T> implements ILiteEvent<T> {
private handlers: { (data?: T): void; }[] = [];
public on(handler: { (data?: T): void }) : void {
this.handlers.push(handler);
@jdanyow
jdanyow / app.html
Last active March 23, 2025 10:09
Aurelia Validation Demo
<template>
<require from="./registration-form"></require>
<registration-form></registration-form>
</template>
@Kukks
Kukks / unit-of-work-observer.ts
Last active February 14, 2020 09:03
Aurelia Unit Of Work Observer
import { CloneUtility } from "./clone";
import { Disposable } from "aurelia-binding";
import { BindingEngine } from "aurelia-binding";
/**
* Unit Of Work Observer
* Based on the work of fragsalat's MultiObserver found at
* https://gist.github.com/fragsalat/819a58021fc7b76a2704
*
*
* The purpose of this observer is to observe all changes made to a model and allows you
" Make IE Better Compatible "
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
======================================================
IE6 Only
==================
_selector {...}