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
{ | |
"update": "2021-03-02T03:30:23.228Z", | |
"list": [ | |
{ | |
"awsElastiCache": false, | |
"azure": false, | |
"name": "Cache", | |
"host": "redis-cache", | |
"port": 6379, | |
"id": "P3Xid67eebf0f7710100003b2b6c50560d6", |
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
DROP FUNCTION IF EXISTS SANITIZE_EMAIL; | |
DROP FUNCTION IF EXISTS GET_RANDOM_FIRSTNAME; | |
DROP FUNCTION IF EXISTS GET_RANDOM_LASTNAME; | |
DROP FUNCTION IF EXISTS GET_RANDOM_STREET; | |
DROP FUNCTION IF EXISTS GET_CITY; | |
DROP FUNCTION IF EXISTS GET_REGION; | |
DROP FUNCTION IF EXISTS GET_RANDOM_ZIP; | |
DROP FUNCTION IF EXISTS GET_RANDOM_PHONE_NUMBER; | |
DROP FUNCTION IF EXISTS GET_RANDOM_COMPANY; | |
DROP FUNCTION IF EXISTS GET_RANDOM_CC_LAST_4; |
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
#https://hadler.me/linux/openfortigui/ | |
wget https://apt.iteas.at/iteas/pool/main/o/openfortigui/openfortigui_0.9.3-1_amd64_focal.deb | |
sudo apt-get install libqt5keychain1 | |
sudo dpkg -i openfortigui_0.9.3-1_amd64_focal.deb |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
// Fetch from origin server. | |
let response = await fetch(request) | |
// don't do the find and replace for png file,s should probably use content type here instead. | |
if (request.url.endsWith('.png')) { | |
return response |
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
image: docker:latest | |
# When using dind, it's wise to use the overlayfs driver for | |
# improved performance. | |
variables: | |
DOCKER_DRIVER: overlay | |
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID | |
IMAGE_NAME: image_id | |
services: |
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 | |
include './app/Mage.php'; | |
try { | |
Mage::app(); | |
echo gethostname(); | |
} Catch (Exception $e) { | |
header("HTTP/1.0 503 Service Unavailable"); | |
} |
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 | |
gcloud container images list > images.list | |
sed -i 1d images.list | |
while IFS='' read -r CONTAINERIMAGE || [[ -n "$CONTAINERIMAGE" ]]; | |
do | |
gcloud container images list-tags \ | |
"$CONTAINERIMAGE" \ | |
--filter='-tags:*' --format='get(digest)' --limit=2000 | | |
while read DIGEST ; | |
do |
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
# set the project | |
gcloud config set project my-projectid | |
# get all images names | |
gcloud container images list > images.list | |
# remove first line (string NAME) | |
sed -i 1d images.list | |
# delete don't ask me | |
gcloud container images --quiet delete $(cat images.list) |