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 | |
public function decrypt($secret, $data) | |
{ | |
$secret = hex2bin($secret); | |
$iv = base64_decode(substr($data, 0, 16), true); | |
$data = base64_decode(substr($data, 16), true); | |
$tag = substr($data, strlen($data) - 16); | |
$data = substr($data, 0, strlen($data) - 16); | |
try { |
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
gender: { | |
nominative: { | |
neutral: 'they', | |
masculine: 'he', | |
feminine: 'she', | |
elverson: 'ey', | |
spivak: 'E', | |
humanist: 'hu', | |
peh: 'peh', | |
per: 'per', |
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
FROM php:7.4-fpm-alpine | |
WORKDIR "/application" | |
# Install essential build tools | |
RUN apk add --no-cache \ | |
git \ | |
yarn \ | |
autoconf \ | |
g++ \ | |
make \ |
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 href="https://drive.google.com/uc?export=view&id=XXX"><img src="https://drive.google.com/uc?export=view&id=XXX" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a> |
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
/** | |
This is based on the example provided at: | |
https://developers.google.com/apps-script/samples/automations/vacation-calendar | |
The following changes were made: | |
- Uses the outOfOffice eventType to identify events to sync. It does not use a keyword search. | |
- Events use the full names of members, pulled from the Google Workspace API (AdminDirectory.) | |
- Recurring OOF events are supported. | |
- Creates "shadow events" instead of importing the actual events, to circumvent "forbidden" errors in some cases, and issues with recurring events. |
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
#1E1F2B,#1E1F2B,#282A3A,#FFD76D,#1E1F2B,#9A9DA7,#95E18A,#F47777 |
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
$app->hook('slim.before.dispatch', function () use ($app) { | |
$app->render('/views/header.php'); | |
}); | |
$app->hook('slim.after.dispatch', function () use ($app) { | |
$app->render('/views/footer.php'); | |
}); |
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 | |
/* | |
* (c) Mark Badolato <mbadolato@gmail.com> | |
* | |
* This content is released under the {@link http://www.opensource.org/licenses/MIT MIT License.} | |
*/ | |
namespace Bado\ScoreCalculator; |
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
apt-get install pigz |
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 | |
mysqlUser="" | |
mysqlPass="" | |
backup="/home/username/mysqldump" | |
databases=( $(mysql -u"$mysqlUser" -p"$mysqlPass" --skip-column-names --batch -e "show databases;" 2>"$temp") ); | |
echo "found ${#databases[@]} databases."; | |
for i in ${databases[@]}; do |
NewerOlder