Follow this tutorial. It's perfect https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
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
/* Larvel Form Manipulator | |
* Enables Multiple submit buttons in one form, and manipulates form-action, form-method and crud-method. | |
* Usage: | |
* <input type="submit" value="Submit to alternative action" data-submit-action="/new-target"> | |
* <input type="submit" value="Submit to alternative target" data-submit-target="_blank"> | |
* <input type="submit" value="Submit as delete" data-submit-method="delete"> | |
* <input type="submit" value="Submit with confirmation" data-submit-confirmation="Are you sure?"> | |
* Of course it works with laravelcollective forms as well: |
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
sudo apt-get update && sudo apt-get install bridge-utils | |
sudo nano /etc/network/interfaces | |
iface eth0 inet manual | |
iface eth1 inet manual | |
auto eth0 | |
iface br0 inet manual | |
bridge_ports eth0 eth1 |
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
#!/usr/bin/awk -f | |
# Usage example: | |
# get all of first column: ./minmax awk data.txt | |
# set a custom field separator (default: ,): ./minmax.awk -v fs=":" data.txt | |
# get all of the fourth column: ./minmax.awk -v column="4" data.txt | |
# get min of the first column: ./minmax.awk -v type="min" data.txt | |
# get min of the fourth column: ./minmax.awk -v column="4" -v type="min" data.txt | |
# | |
# valid "column": 1..no |
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 | |
# # # # # # # # # # # # # # # # # # # | |
# Enable Serial Interface via UART # | |
# # # # # # # # # # # # # # # # # # # | |
# Dominik Kohler @ 19.11.2018 | |
# Tested on Raspbian Stretch (9.4) |
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/sh | |
# $1 mode | |
# $2 gpio | |
# $3 write: value 0/off | 1/on | |
usage() { | |
# command help: | |
echo " |
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 | |
return | |
[ // Type Unit Multiplicator | |
1 => ['Energy', 'Wh', '0.01'], | |
2 => ['Energy', 'Wh', '0.1'], | |
3 => ['Energy', 'Wh', '1'], | |
4 => ['Energy', 'Wh', '10'], | |
5 => ['Energy', 'Wh', '100'], | |
6 => ['Energy', 'Wh', '1000'], |
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
:: HOW-TO :: | |
:: Copy this file to any directory in your computer | |
:: Adjust drive letter (dletter) and drive path (dpath) | |
:: Create a shortcut to the file | |
:: Change the run mode to minimized in shortcut properties | |
:: If you want to execute in on start: copy it to "shell:startup" (WIN+R) | |
:: Set the drive-letter and drive-path | |
SET dletter=Z: |
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
pipelines: | |
pull-requests: | |
'**': | |
- step: | |
name: Build Testing | |
image: composer:latest | |
artifacts: | |
- "vendor/**" | |
script: | |
# Install php dependencies |
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
/* | |
Example Request | |
{ | |
"incident":{ | |
"incident_id":"0.123", | |
"resource_id":"", | |
"resource_name":"some-resource-name", | |
"resource":{ | |
"type":"gce_instance", |
OlderNewer