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 | |
# This is copy of script used in Github Actions of https://github.com/AnTheMaker/GoodBots | |
# Requirements: curl, whois, jq | |
WORKING_DIRECTORY=$(pwd) | |
mkdir -p iplists | |
# Generate GoogleBot IP-List | |
curl -s https://developers.google.com/static/search/apis/ipranges/googlebot.json | jq -r '.prefixes[].ipv6Prefix,.prefixes[].ipv4Prefix | select( . != null )' | tr -d "[:blank:]" > $WORKING_DIRECTORY/iplists/googlebot.ips |
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
swagger: "2.0" | |
info: | |
title: Simple service endpoint for GCP | |
version: 1.0.0 | |
host: $DOMAIN_NAME | |
x-google-endpoints: | |
- name: $DOMAIN_NAME | |
target: $IP_ADDR | |
x-google-allow: all | |
basePath: / |
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 | |
for bin in ~/.local/share/flatpak/exports/bin/*; do | |
appid="$(basename $bin)" | |
cmd="$(flatpak info -m $appid | awk -F= '/^command=/ {print $2}')" | |
echo "alias ${cmd}=$bin" | |
done |
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
AJS.$.ajax({ | |
url: '/rest/api/latest/search', | |
data: {jql:'watcher = currentUser() AND status in (Done, Deployed, Closed)'}, | |
success: function (response) { | |
AJS.$.each(response.issues, function(i,issue) { | |
var completed = ['Done', 'Deployed', 'Closed'] | |
if (completed.includes(issue.fields.status.name)) { | |
AJS.$.ajax({ | |
url: '/rest/api/1.0/issues/' + issue.id + '/watchers', |
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 | |
# Copyright 2017-present: Intoli, LLC | |
# Source: https://intoli.com/blog/installing-google-chrome-on-centos/ | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, |
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 | |
# Copyright 2017-present: Intoli, LLC | |
# Source: https://intoli.com/blog/installing-google-chrome-on-centos/ | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, |
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 | |
SERVICE="wp-cli action-scheduler" | |
MAX_RUNNING_SCHEDULERS=3 | |
WP_CLI_PATH="/usr/local/bin/wp" | |
if (( $(ps aux | grep '/bin/wp action-scheduler' | grep -v 'grep' | wc -l) >= MAX_RUNNING_SCHEDULERS )) | |
then | |
echo "$SERVICE tasks are running at it's limit ($MAX_RUNNING_SCHEDULERS)." | |
else | |
echo "$SERVICE tasks are NOT running at it's limit ($MAX_RUNNING_SCHEDULERS)." |
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
git branch -r --merged | grep -v '\\*\\|master\\|develop' | sed 's/origin\///' | xargs -n 1 git push --delete origin |
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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
DOCKER_COMPOSE_VERSION="2.6.0" | |
# Alternatively you can use the official docker install script | |
wget -qO- https://get.docker.com/ | sh | |
# Install docker-compose |
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 apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
sudo usermod -aG docker $USER |
NewerOlder