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 { createClient } from 'redis'; | |
import { serialize } from 'php-serialize'; | |
const RedisClient = createClient(); | |
export class Job { | |
job = null; | |
connection = null; | |
queue = null; | |
chainConnection = null; |
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
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 |
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
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 |
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
[A-Z]+[a-zA-Z^\p{L}\p{M}]++\s[a-zA-Z]\.\s |
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
<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" /> |
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
var change = 0; | |
var simultanius = 0; | |
var que = 1000; // number of tests | |
Array(que).join(0).split(0).forEach(function(a,i){ | |
var xhr = new XMLHttpRequest; | |
xhr.open("GET",'/?' + i); // cacheBust | |
xhr.onreadystatechange = function() { | |
if(xhr.readyState == 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
#!/bin/bash | |
export var=`valet fetch-share-url` | |
sed -i -e "s@.*APP_URL.*@APP_URL=$var@" $result | |
echo "💪 - Valet share URL has been replaced 📋 " |
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 | |
$this->notification('Nieuw bericht', 'Er is een nieuw bericht :ghost:', config('slack.color'), | |
[ | |
'title' => "Veld 1", | |
'value' => 'Dingen', | |
'short' => true, | |
], [ | |
'title' => "Veld 2", | |
'value' => 'Nog meer dingen', |
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 | |
$array1 = ['Rocket','Thruster','Space']; | |
$array2 = ['Rocket','Rocks','Space']; | |
$collection = collect($array1); | |
$intersect = $collection->intersect($array2); | |
var_dump($intersect ) | |
// $intersect = ['Rocket','Space']; |
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
public toSeconds(time) { | |
var parts = time.split(':'); | |
return (+parts[0]) * 60 * 60 + (+parts[1]) * 60 + (+parts[2]); | |
} |
NewerOlder