Skip to content

Instantly share code, notes, and snippets.

View ygorth's full-sized avatar
🐧
I put the 'fun' in 'function'... with sudo!

Ygor Almeida ygorth

🐧
I put the 'fun' in 'function'... with sudo!
View GitHub Profile
Error messages:
$ tailf /var/log/jenkins/jenkins.log
WARNING: Prober(fe80:0:0:0:c2b:e0ff:feff:d000%eth1.local.).run() exception
java.io.IOException: Operation not permitted (sendto failed)
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:693)
at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1537)
at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
at java.util.TimerThread.mainLoop(Timer.java:555)
@ygorth
ygorth / login-background.sh
Created May 23, 2018 02:10 — forked from jjvillavicencio/login-background.sh
Genome Login Background
WORKDIR=~/tmp/gdm-login-background
GST=/usr/share/gnome-shell/gnome-shell-theme.gresource
GSTRES=$(basename $GST)
mkdir -p $WORKDIR
cd $WORKDIR
mkdir theme
for r in `gresource list $GST`; do
gresource extract $GST $r >$WORKDIR$(echo $r | sed -e 's/^\/org\/gnome\/shell\//\//g')
@ygorth
ygorth / aws-cfn-bootstrap-centos7.sh
Last active August 22, 2018 16:13 — forked from JetFault/aws-cfn-bootstrap-centos7.sh
aws-cfn-bootstrap for CentOS 7
yum install -y epel-release
yum install -y python-pip
cd /usr/bin
pip install pystache
pip install argparse
pip install python-daemon
pip install requests
cd /opt
@ygorth
ygorth / googlebot-load-testing-script
Last active February 10, 2021 03:18
googlebot-load-testing-script
# How to use:
# curl -L https://gist.githubusercontent.com/ygorth/7afc92d89badcf81ef47fe8e681c5e9f/raw/4d542337675dc23cf357c6d15458da054af480df/googlebot-load-testing-script | bash -s 20 "http://server.com/api"
# This keeps hitting your server at the rate of 20 calls/second until you ask it to stop
max="$1"
date
echo "url: $2
rate: $max calls / second"
START=$(date +%s);
get () {
@ygorth
ygorth / list.txt
Created May 17, 2023 23:04 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
#!/bin/bash
# Stop all running containers
echo "Stopping all running containers..."
docker stop $(docker ps -q)
# Remove all containers
echo "Removing all containers..."
docker rm $(docker ps -a -q)