Skip to content

Instantly share code, notes, and snippets.

View jeystaats's full-sized avatar
🏠
Working from home

Jasper Staats jeystaats

🏠
Working from home
View GitHub Profile
<scheme name="Staatstheme" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2019-10-21T12:57:27</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2017.3.2.0.0</property>
<property name="modified">2019-10-21T12:57:36</property>
<property name="originalScheme">Staatstheme</property>
</metaInfo>
<colors>
<option name="CARET_COLOR" value="ffffff" />
@jeystaats
jeystaats / gist:88ec4fa505d2a34caf2602c5da2cf805
Created February 9, 2020 11:25
Regex for detecting criminal names
[A-Z]+[a-zA-Z^\p{L}\p{M}]++\s[a-zA-Z]\.\s
@jeystaats
jeystaats / insomnia-sync-script.sh
Created February 11, 2020 14:21
Sync insomnia locally
echo "Copying insomnia settings"
files=("Settings" "Workspace" "Request" "RequestGroup" "RequestMeta" "RequestGroupMeta" "WorkspaceMeta" "Stats" "RequestVersion")
# Look for signs of trouble in each log
for i in ${!files[@]};
do
file=${files[$i]}
cp /Users/USERNAME/Library/'Application Support'/Insomnia/insomnia.${file}.db ~/Projects/insomnia/insomnia.${file}.db
@jeystaats
jeystaats / insomnia-sync-script.sh
Created February 11, 2020 14:21
Sync insomnia locally
echo "Copying insomnia settings"
files=("Settings" "Workspace" "Request" "RequestGroup" "RequestMeta" "RequestGroupMeta" "WorkspaceMeta" "Stats" "RequestVersion")
# Look for signs of trouble in each log
for i in ${!files[@]};
do
file=${files[$i]}
cp /Users/USERNAME/Library/'Application Support'/Insomnia/insomnia.${file}.db ~/Projects/insomnia/insomnia.${file}.db
@jeystaats
jeystaats / push-to-redis-queue-laravel.ts
Last active October 3, 2022 12:39
Add to Laravel Queue (Redis) from NodeJS [Laravel > 9 )
import { createClient } from 'redis';
import { serialize } from 'php-serialize';
const RedisClient = createClient();
export class Job {
job = null;
connection = null;
queue = null;
chainConnection = null;