Skip to content

Instantly share code, notes, and snippets.

View jasondewitt's full-sized avatar
:shipit:

Jason DeWitt jasondewitt

:shipit:
View GitHub Profile
[13Dec2022 23:10:06.233] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: KidsUsername joined the game
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.StacklessClosedChannelException
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.StacklessClosedChannelException
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.StacklessClosedChannelException
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.StacklessClosedChannelException
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.StacklessClosedChannelException
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.StacklessClosedChannelException
[13Dec2022 23:10:06.233] [Netty Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.channel.St
@jasondewitt
jasondewitt / volume.sh
Created December 14, 2018 20:50 — forked from sebastiencs/volume.sh
Script to get volume notification with dunst http://imgur.com/a/qWgAw
#!/bin/bash
# You can call this script like this:
# $./volume.sh up
# $./volume.sh down
# $./volume.sh mute
function get_volume {
amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1
}
@jasondewitt
jasondewitt / sns-to-slack.py
Created August 9, 2018 17:02 — forked from hayd/sns-to-slack.py
sns to slack aws lambda python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Follow these steps to configure the webhook in Slack:
1. Navigate to https://<your-team-domain>.slack.com/services/new
2. Search for and select "Incoming WebHooks".
### Keybase proof
I hereby claim:
* I am jasondewitt on github.
* I am jasondewitt (https://keybase.io/jasondewitt) on keybase.
* I have a public key ASBTUzl9HrHjwumj6v8pNIC2TpPAAoCJ0JJM6GrrZjqvuwo
To claim this, I am signing this object:
@jasondewitt
jasondewitt / README.md
Created March 24, 2017 14:49 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@jasondewitt
jasondewitt / kops_iam.txt
Created January 13, 2017 23:09
iam for kops user
Some notes from a new cluster with a manual IAM group and user:
Navigate to the IAM home page after logging onto the console
Click the Groups link on the left tab and then click Create New Group
Set Group Name: to kops and then click Next Step
Attach the following policies and then click Next Step:
AmazonEC2FullAccess
AmazonRoute53FullAccess
AmazonS3FullAccess
IAMFullAccess
@jasondewitt
jasondewitt / moveusers.sh
Created October 20, 2016 20:46
migrate all users from one linux server to another
#!/usr/bin/env bash
targetsrv=user@ip.add.re.ss
for user in $(ssh $targetsrv ls /home)
do
if ! id $user > /dev/null 2>&1
then
echo "create user $user"
useradd -m -s /bin/bash $user
@jasondewitt
jasondewitt / gist:08c234697e3428738dbf69ae9c46bb31
Last active June 2, 2016 21:00
search and replace all http://domain.com occurrences with https://domain.com in a WP multisite install for all sites
for x in $(wp site list --fields=domain --format=csv);
do
if [ $x != 'domain' ];
then
wp search-replace http://$x https://$x --network --url=$x
fi
done
import sys
import locust
import gevent
from gevent.socket import socket
from gevent.queue import Queue
import time
from utils.bootstrap import test_conf as TEST_CONFIG
import insight