This file contains hidden or 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
| ## Setup | |
| ``` | |
| curl -fsSL https://get.pnpm.io/install.sh | sh - | |
| npm uninstall npm -g | |
| ``` | |
| ## Prompt | |
| In this repo and ../recordimpact.com I need to level up security in a couple ways: |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| /** | |
| * 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({ |
This file contains hidden or 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
| 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} |
This file contains hidden or 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
| +++ 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, |
This file contains hidden or 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
| macro _arms { | |
| rule {(default => $value:expr)} => { | |
| else { | |
| return $value; | |
| } | |
| } | |
| rule {(rule {$cond:expr} => $value:expr)} => { | |
| if($cond) { | |
| return $value; | |
| } |
This file contains hidden or 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
| 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)} => { |
This file contains hidden or 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
| macro $if { | |
| rule { | |
| ($x...) | |
| } => { | |
| if (relCar($x...)) | |
| } | |
| } | |
| macro $while { | |
| rule { |
This file contains hidden or 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
| 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 | |
| } | |
| } | |
NewerOlder