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
# You can run the pipeline image locally using the following command: | |
# docker run --platform linux/amd64 -it --volume="$PWD:/app" --workdir="/app" --entrypoint=/bin/bash avetkhov/flutter:latest | |
definitions: | |
caches: | |
pub: ~/.pub-cache # $PUB_CACHE default value | |
flutter: /opt/flutter # flutter sdk path | |
steps: | |
- step: &flutter-run | |
name: Flutter Test |
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
Show hidden characters
{ | |
"cmd": ["flutter", "run", "--hot"], | |
"selector": "source.dart", | |
"working_dir": "$project_path", | |
"variants": [ | |
{ | |
"name": "Flutter - Format File", | |
"cmd": ["dart", "format", "$file"] | |
}, | |
{ |
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
{ | |
"folders": [ | |
{ | |
"path": ".", | |
"folder_exclude_patterns": [ | |
".dart_tool", | |
"build", | |
"web", | |
"windows", | |
"linux", |
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
# `npx create-payload-app` with a project called `demo` | |
version: '3' | |
services: | |
payload: | |
image: node:18-alpine | |
ports: | |
- "3000:3000" | |
volumes: | |
- ./demo:/home/node/app |
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
# docker run -d --name inbucket -p 9000:9000 -p 2500:2500 -p 1100:1100 inbucket/inbucket | |
# open http://localhost:9090/ | |
version: '3.8' | |
services: | |
inbucket: | |
container_name: inbucket | |
image: inbucket/inbucket:3.0.3 | |
ports: | |
- '2500:2500' # SMTP |
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 | |
declare(strict_types=1); | |
use App\Models\User; | |
use Illuminate\Support\Facades\Artisan; | |
use Symfony\Component\HttpFoundation\Cookie; | |
use Illuminate\Cookie\CookieValuePrefix; | |
Artisan::command('user-cookie', function (): void { |
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
# espanso match file | |
# For a complete introduction, visit the official docs at: https://espanso.org/docs/ | |
# You can use this file to define the base matches (aka snippets) | |
# that will be available in every application when using espanso. | |
# Matches are substitution rules: when you type the "trigger" string | |
# it gets replaced by the "replace" string. | |
matches: |
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
--[[ | |
Name: Touchpad Control | |
Author: James Doyle <james2doyle@gmail.com> | |
Description: Hook into events/gestures that are triggered on the trackpad | |
Installation: Just require this file in your Hammerspoon init.lua file | |
Usage: | |
Bind the click actions or swipe actions to events | |
]]-- | |
local trackpad_actions = {} |
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
! 2022-03-24 https://twitter.com | |
twitter.*##div[aria-label="Timeline: Trending now"] | |
twitter.*##div[aria-label="Home timeline"] > div > div article:has(div > div > div > span:has-text(Ad)) | |
! 2022-03-29 https://google.com | |
google.*##.g:has(a[href*="thetopsites.com"]) | |
google.*##.g:has(*:has-text(/bye topic of noninterest/i)) |
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 network | |
import utime | |
import socket | |
import machine | |
p2 = machine.Pin(2, machine.Pin.OUT) # create input pin on GPIO2 (builtin LED) | |
p2.off() | |
def toggle_pin(): | |
p2.value(1) if p2.value() == 0 else p2.value(0) |