This file contains hidden or 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
Sub CalculateSerialNumbers() | |
'Define ranges for loops | |
Dim productCell As Range | |
Dim SerialCell As Range | |
'Loop through products (main loop) | |
Set currentCell = Range("B5") | |
Set productCell = Range("G5") | |
Dim qty As Integer | |
This file contains hidden or 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
Sub CalcSales() | |
'Define main search, currency search and product search variables | |
Dim currentCell As Range | |
Dim productCell As Range | |
Dim currencyCell As Range | |
' Loop from I7 until empty cell is found, and calculate expected output | |
Set currentCell = Range("I7") | |
Do While Not IsEmpty(currentCell.Value) | |
This file contains hidden or 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 | |
killall Teams | |
rm -rf ~/Library/Caches/com.microsoft.teams | |
rm -rf ~/Library/Application\ Support/Microsoft/Teams/Application\ Cache/Cache | |
rm -rf ~/Library/Application\ Support/Microsoft/Teams/blob_storage | |
rm -rf ~/Library/Application\ Support/Microsoft/Teams/Cache | |
rm -rf ~/Library/Application\ Support/Microsoft/Teams/databases | |
rm -rf ~/Library/Application\ Support/Microsoft/Teams/GPUCache | |
rm -rf ~/Library/Application\ Support/Microsoft/Teams/IndexedDB |
This file contains hidden or 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 | |
if [ ! -f /var/run/reboot-required ]; then | |
# no reboot required (0=OK) | |
echo "OK: no reboot required" | |
exit 0 | |
else | |
# reboot required (1=WARN) | |
echo "WARNING: `cat /var/run/reboot-required`" | |
exit 1 | |
fi |
This file contains hidden or 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 | |
$pattern = "/^(AT|B[GE]|C[YZ]|D[EK]|E[ELS]|F[IR]|GB|H[RU]|I[ET]|L[TUV]|MT|NL|P[LT]|RO|S[EIK])([A-Z]|[0-9])+$/"; | |
$vatnumber = strtoupper($_REQUEST['q']); | |
$value = $vatnumber; | |
if (preg_match($pattern, $vatnumber)){ | |
// Create validation request to VIES service | |
$country_code = substr($vatnumber, 0, 2); | |
$vatnum = substr($vatnumber, 2, strlen($vatnumber)-2); | |
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"); |
This file contains hidden or 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 | |
if [ -z "$1" ] | |
then | |
echo "Please specify a folder" | |
exit | |
fi | |
if [ -z "$2" ] | |
then |
This file contains hidden or 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
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "pwd/path/for/git/repo" | |
} | |
], |
This file contains hidden or 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 | |
/* | |
* Special thanks to Jeffrey Way | |
* Original file: https://gist.github.com/JeffreyWay/224de894c4d4e228d5af | |
*/ | |
return [ | |
"us" => "United States", | |
"af" => "Afghanistan", |
This file contains hidden or 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="Super" version="142" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.4" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="CONSOLE_FONT_NAME" value="Menlo" /> | |
<option name="CONSOLE_FONT_SIZE" value="10" /> | |
<option name="EDITOR_FONT_NAME" value="Menlo" /> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="292d38" /> | |
<option name="ANNOTATIONS_COLOR" value="8b999f" /> | |
<option name="CARET_COLOR" value="7b7d83" /> |