- https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag
- https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv
- https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces
- https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
- https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh
- https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl
- https://marketplace.visualstudio.com/items?itemName=GrapeCity.gc-excelviewer
- https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
- https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph
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
<?php | |
class Tribe__Debug { | |
/** | |
* constructor | |
*/ | |
public function __construct() { | |
add_action( 'tribe_debug', [ __CLASS__, 'render' ], 10, 2 ); | |
} |
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
import { axios } from "@pipedream/platform" | |
export default defineComponent({ | |
props: { | |
twitter: { | |
type: "app", | |
app: "twitter", | |
} | |
}, | |
async run({steps, $}) { | |
let q = `${encodeURIComponent('from:@josh412 gm -filter:replies')}`; |
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
<?php | |
/** | |
* Static accessor for plugin container | |
* | |
* @return array | |
*/ | |
function wordpress_plugin() | |
{ | |
static $container; | |
if (!$container) { |
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
<?php | |
namespace App\Services; | |
use Illuminate\Http\Client\PendingRequest; | |
use Illuminate\Http\Client\Response; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\UploadedFile as HttpUploadedFile; | |
use Illuminate\Support\Facades\Http; |
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
//https://stackoverflow.com/a/56071867/1469799 | |
export const getAllCookies = () => document.cookie.split(';').reduce((ac, str) => Object.assign(ac, {[str.split('=')[0].trim()]: str.split('=')[1]}), {}); | |
export const getCookie(name, defaultValue = null) => { | |
let cookies = getAllCookies(); | |
return cookies.hasOwnProperty(name) ? cookies[name] : defaultValue; | |
} | |
fetch('/api/v1/rocks, { | |
method: "PUT", | |
body: JSON.stringify({ |
Go to ec2 console
- "Launch Instance"
- Name:
- Ami: Ubuntu in quickstart
- Defaults are fine
- Instance type:
- t2.micro is free tier
- Key pair:
- Can create one (make sure to download and save)
- Save to .ssh config or something
These scripts can be run with the following commands, by a super user. This installs a lot of stuff, read first.
You can add -s -- --dry-run
to then end to do a dry run first.
These are tested on an ec2 instance running vscode remote
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
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Artisan; | |
class Name extends Command | |
{ | |
protected $signature = 'something'; | |
protected $description = 'Calls other commands'; |
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
import { defineConfig } from 'vite'; | |
import laravel from 'laravel-vite-plugin'; | |
import vue from '@vitejs/plugin-vue2' | |
export default defineConfig({ | |
plugins: [ | |
laravel([ | |
'resources/js/app.js', | |
]), | |
vue({ |