This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// ==UserScript== | |
// @name Duplicate tab | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-21 | |
// @description Duplicate current tab with Cmd + D | |
// @author Warren Seine | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Keycloak Auto-Login | |
// @namespace http://tampermonkey.net/ | |
// @include /^https:\/\/.*\/auth\/realms\/.*\/(saml|auth)\?/ | |
// @version 1.0 | |
// @author Warren Seine | |
// @description Auto-login on Keycloak | |
// @icon https://upload.wikimedia.org/wikipedia/commons/2/29/Keycloak_Logo.png | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example to use Docker instead of containerd & nerdctl | |
# $ limactl start ./docker.yaml | |
# $ limactl shell docker docker run -it -v $HOME:$HOME --rm alpine | |
# To run `docker` on the host (assumes docker-cli is installed): | |
# $ export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock') | |
# $ docker ... | |
# Example to run ubuntu using vmType: vz instead of qemu (Default) | |
# This example requires Lima v0.14.0 or later and macOS 13. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name OneLogin Auto-Login | |
// @namespace http://tampermonkey.net/ | |
// @match https://*.onelogin.com/login2/* | |
// @version 1.0 | |
// @author Warren Seine | |
// @description Auto-login on OneLogin if password is auto-filled | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=onelogin.com | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AWS VPN Auto-Close | |
// @namespace http://tampermonkey.net/ | |
// @match http://127.0.0.1/ | |
// @grant window.close | |
// @version 1.0 | |
// @author Warren Seine | |
// @description Close the tab when successful AWS VPN is on | |
// @icon https://a0.awsstatic.com/libra-css/images/site/fav/favicon.ico | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: hello-fprintf.html hello-iostream.html hello-write.html | |
hello-fprintf.html: hello-fprintf.cpp | |
em++ -std=c++11 -O2 hello-fprintf.cpp -o hello-fprintf.bc | |
emcc -O2 hello-fprintf.bc -o hello-fprintf.html | |
hello-iostream.html: hello-iostream.cpp | |
em++ -std=c++11 -O2 hello-iostream.cpp -o hello-iostream.bc | |
emcc -O2 hello-iostream.bc -o hello-iostream.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main.html: main.cpp | |
em++ -std=c++11 -O2 main.cpp -o main.bc | |
emcc -O2 main.bc -o main.html | |
clean: | |
rm -f main.bc main.js main.html main.html.map main.html.mem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
set -e | |
BFG_URL="http://repo1.maven.org/maven2/com/madgag/bfg/1.11.7/bfg-1.11.7.jar" | |
BFG_BIN=`basename ${BFG_URL}` | |
BFG="/tmp/${BFG_BIN}" | |
[[ -n "$1" ]] || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (c) 2014 Aerys | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getBoundingBoxOfGroup(group : Group) : BoundingBox | |
{ | |
var min : Vector4 = new Vector4(Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE); | |
var max : Vector4 = new Vector4(Number.MIN_VALUE, Number.MIN_VALUE, Number.MIN_VALUE); | |
for each (var mesh : Mesh in group.getDescendantsByType(Mesh)) | |
{ | |
var worldMin : Vector4 = mesh.localToWorld( | |
mesh.geometry.boundingBox.min, null, false, true | |
); |
NewerOlder