- 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
@if (Route::has('login')) | |
<div class="hidden fixed top-0 right-0 px-6 py-4 sm:block"> | |
@auth | |
<a href="{{ url('/dashboard') }}" class="text-sm text-gray-700 dark:text-gray-500 underline">Dashboard</a> | |
@else | |
<a href="{{ route('login') }}" class="text-sm text-gray-700 dark:text-gray-500 underline">Log in</a> | |
@if (Route::has('register')) | |
<a href="{{ route('register') }}" class="ml-4 text-sm text-gray-700 dark:text-gray-500 underline">Register</a> | |
@endif |
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
$.post( url_of_wp_endpoint, {email: 'roy@roysivan.com' } ); |
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
laravel.test: | |
build: | |
context: ./vendor/laravel/sail/runtimes/8.1 | |
dockerfile: Dockerfile | |
args: | |
WWWGROUP: '${WWWGROUP}' | |
image: sail-8.1/app | |
extra_hosts: | |
- 'host.docker.internal:host-gateway' | |
ports: |
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