Skip to content

Instantly share code, notes, and snippets.

View ozten's full-sized avatar

Austin King ozten

View GitHub Profile
@ozten
ozten / gist:9b7f7c7e7c92898bedbacfe273026a74
Created July 31, 2025 23:56
Install ALL shadcn svelte components in one go
npx shadcn-svelte@latest add button accordion badge card collapsible dialog input navigation-menu radio-group select skeleton table toggle-group alert breadcrumb carousel command drawer input-otp pagination range-calendar separator slider tabs tooltip aspect-ratio button chart context-menu dropdown-menu label popover resizable sheet sonner textarea avatar calendar checkbox data-table hover-card menubar progress scroll-area sidebar switch toggle
diff --git a/Assets/DefaultVolumeProfile.asset b/Assets/DefaultVolumeProfile.asset
index 50cea1f..2dc4156 100644
--- a/Assets/DefaultVolumeProfile.asset
+++ b/Assets/DefaultVolumeProfile.asset
@@ -660,6 +660,9 @@ MonoBehaviour:
skyOcclusionIntensityMultiplier:
m_OverrideState: 1
m_Value: 1
+ worldOffset:
+ m_OverrideState: 1
@ozten
ozten / handlebars_layouts_express_handlebars_adapter.js
Last active March 11, 2017 15:11
Adapter layer for bridging `handlebars-layouts` and `express-handlebars`.
/**
* Adapter layer for bridging `handlebars-layouts` and `express-handlebars`.
*
* Usage:
* var exphbs = require('express-handlebars');
* var handlebarsLayout = require('handlebars-layouts');
* var exphbsAdapter = require('express-handlebars-layouts-adapter');
*
* handlebarsLayout(exphbsAdapter);
* var exphbs.create({
@ozten
ozten / walker_tests.sh
Created July 29, 2014 19:30
List of manifests which should be good in production
Environments: docs/ENVIRONMENTS.md
export APP=minimalist
export MANI=http://minimalist.ngokevin.com/minimalist.webapp
echo $APP
mkdir $APP
rm -Rf $APP/*
curl -v -k "${ENDPOINT}/application.apk?manifestUrl=${MANI}" -o ${APP}/${APP}.apk
java -jar ~/Projects/apk-factory-service/lib/ext/apktool.jar d -f ${APP}/${APP}.apk ${APP}/${APP}
@ozten
ozten / gist:4c6a6e8e4f00d5b0c62d
Created July 9, 2014 17:37
client-sessions secureProxy
+++ b/server/bin/betafox
@@ -78,6 +78,7 @@ confsys.withConfig(function(config) {
cookieName: sessionConf.cookieName,
secret: sessionConf.secret,
duration: sessionConf.duration,
+ secureProxy: true,
cookie: {
secure: (config.env === 'production' ? true : false),
httpOnly: true,
macro _arms {
rule {(default => $value:expr)} => {
else {
return $value;
}
}
rule {(rule {$cond:expr} => $value:expr)} => {
if($cond) {
return $value;
}
macro _match_cond {
rule {$o($field)} => {
(typeof $o.$field !== 'undefined')
}
rule {$o($field $rest...)} => {
_match_cond $o($field) && _match_cond $o($rest...)
}
}
macro _match_var {
rule {$o($field)} => {
macro $if {
rule {
($x...)
} => {
if (relCar($x...))
}
}
macro $while {
rule {
macro def {
rule {
$name:ident ( $($params:ident : $type:ident) (,) ...) $body
} => {
// just throwing away the type annotation. The semantics of type
// annotations left as an exercise to the reader :)
function $name ($params (,) ...) $body
}
}
@ozten
ozten / twitter-manfiest-rate-limit.txt
Created June 3, 2014 04:51
A Cache file being rated limited for ec2 instance
curl -v https://mobile.twitter.com/cache/twitter.webapp
* About to connect() to mobile.twitter.com port 443 (#0)
* Trying 199.16.156.43... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):