Skip to content

Instantly share code, notes, and snippets.

View aarondfrancis's full-sized avatar

Aaron Francis aarondfrancis

View GitHub Profile
<scheme name="PlanetScale" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2023-05-09T10:40:36</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2023.1.0.0</property>
<property name="modified">2023-05-09T10:40:42</property>
<property name="originalScheme">PlanetScale</property>
</metaInfo>
<option name="CONSOLE_FONT_NAME" value="Menlo" />
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Hide Everything
# @raycast.mode silent
# @raycast.packageName Recording
# Optional parameters:
# @raycast.needsConfirmation false
<?php
Builder::macro('debug', function ($name = null) {
$name = $name ?? 'Untitled';
$sql = SqlFormatter::format($this->toBoundSql(), false);
$sql = htmlentities($sql);
$html = <<<EOT
ad60c65d9cb0c183c49f589c210e0bd2
<?php
namespace Tests\Unit\Style;
use Illuminate\Database\Migrations\Migrator;
use Illuminate\Foundation\Testing\RefreshDatabase;
use ReflectionClass;
use Tests\TestCase;
class NoDownMigrationsTest extends TestCase
(function ($$) {
// Open a console in your web browser and paste
// this entire script into it. This script doesn't
// phone home at any point, you have to do that
// manually. Still, give it a read.
// `Cmd + Opt + J` on Chrome
var user;
{"params":{"TargetArn":"arn:aws:sns:us-west-2:954910203979:endpoint\/APNS\/Traxo_APNS_Prod\/49eed133-282d-3194-a526-2acdbba4585d","Message":"{\"APNS\":\"{\\\"aps\\\":{\\\"alert\\\":\\\"American Airlines Flight 2512 is on time for departure at 7:59 pm.\\\",\\\"content-available\\\":1,\\\"sound\\\":\\\"default\\\"},\\\"traxo\\\":{\\\"notification_uuid\\\":\\\"0aff976e-977a-452c-8eef-6fff59cc156c\\\",\\\"notification_key\\\":\\\"flight_departure_on_time\\\",\\\"notification_level\\\":\\\"success\\\",\\\"text\\\":\\\"{{ airline }} Flight {{ flight_number }} is on time for departure at {{ departure_time }}.\\\",\\\"plain_text\\\":\\\"American Airlines Flight 2512 is on time for departure at 7:59 pm.\\\",\\\"data\\\":{\\\"airline\\\":\\\"American Airlines\\\",\\\"flight_number\\\":\\\"2512\\\",\\\"air_segment_id\\\":\\\"1027796\\\",\\\"departure_time\\\":\\\"7:59 pm\\\",\\\"arrival_airport_code\\\":\\\"ATL\\\"},\\\"metadata\\\":{\\\"flight_number\\\":{\\\"value\\\":\\\"1027796\\\",\\\"type\\\":\\\"segment\\\"}}}}\"
"{\"APNS\":\"{\\\"aps\\\":{\\\"alert\\\":\\\"Delta Air Lines Flight 2537 will now depart from Gate 45 at 7:06 pm\\\",\\\"content-available\\\":1,\\\"sound\\\":\\\"default\\\"},\\\"traxo\\\":{\\\"notification_uuid\\\":\\\"f12718a8-30a4-47cb-b2b9-7165e6b2c48f\\\",\\\"notification_key\\\":\\\"flight_departure_gate_changed\\\",\\\"notification_level\\\":\\\"heads_up\\\",\\\"text\\\":\\\"{{ airline }} Flight {{ flight_number }} will now depart from Gate {{ departure_gate }} at {{ departure_time }}\\\",\\\"plain_text\\\":\\\"Delta Air Lines Flight 2537 will now depart from Gate 45 at 7:06 pm\\\",\\\"data\\\":{\\\"airline\\\":\\\"Delta Air Lines\\\",\\\"flight_number\\\":\\\"2537\\\",\\\"air_segment_id\\\":\\\"1025292\\\",\\\"departure_terminal\\\":\\\"B\\\",\\\"departure_gate\\\":\\\"45\\\",\\\"departure_time\\\":\\\"7:06 pm\\\",\\\"departure_time_zone_abbreviation\\\":\\\"EST\\\"},\\\"metadata\\\":{\\\"flight_number\\\":{\\\"value\\\":\\\"1025292\\\",\\\"type\\\":\\\"segment\\\"}}}}\",\"GCM\":\"{\\\"data\\\":{\\\"

web-boot.sh

for var in `env|cut -f1 -d=`; do
  echo "PassEnv $var" >> /app/apache/conf/httpd.conf;
done
touch /app/apache/logs/error_log
touch /app/apache/logs/access_log
touch /app/apache/logs/app_log
tail -F /app/apache/logs/error_log &
tail -F /app/apache/logs/access_log &amp;
@aarondfrancis
aarondfrancis / gist:4323639
Created December 18, 2012 00:08
Inheritance in alloy?
var App = require('application');
exports.definition = {
config: {
"adapter": {
"type": "properties",
"collection_name": "someChildClass"
}
},
extendModel: function(Model) {