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 | |
#Binary built in alpine docker causes OOM exceptions in runtime on c3.xl centos7 (self.golang) | |
#submitted 9 hours ago | |
#If I build on the c3.xl it's fine. Everything I'm reading about cross compilation involves building from nix to Windows/ Darwin but not much about platform. I'm woefully ignorant here. | |
#Anyone have tips for reading resources? | |
#2 commentsshare | |
#all 2 comments | |
#sorted by: best | |
#[–]kron4eg 3 points 4 hours ago |
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
// vertSplitter parses an AWS credentials file and splits the sections | |
// up based on profiles. It then parses each section to build a | |
// JSON profile struct for each profile including comments. | |
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"fmt" |
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
FROM ruby | |
RUN gem install vimgolf | |
RUN apt-get update | |
RUN apt-get install vim -y | |
ENTRYPOINT /bin/bash |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"dynamodb:BatchGetItem", | |
"dynamodb:Scan", | |
"dynamodb:ListTagsOfResource", |
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
''' | |
delete_slack_images.py | |
Deletes all images from slack to free up space on free slack. | |
Usage: | |
Set your slack user token to the env variable "SLACK_TOKEN" then run like: | |
python delete_slack_images.py |
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
""" | |
Platform: Lambda - Python 2.7 | |
This function is designed to troubleshoot lambda DNS resolution | |
and log the current source IP of a lambda request. | |
Change the host var to whatever you want to test and go. | |
""" | |
import urllib2 | |
import socket | |
import logging |
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
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLQtYd/lGX2ZwpbYcCscuumXZoL88BTnj5KsEntUzf+odOrtWwrhIb69gOE/sGSvmhLZc1YMezWXWRpiu5B+XNRDuRiFJ4GP5ojIVakq9EWPjjkPa90UgmGZrr+WO+eeOhLvi5bk53M2Tb6hqifyGI5QUuOCySfeXqnISd2bLVAfAK9tMoViZQyCMCgsfSJcHahEBO7QjSqHZ5AB4fXxQv9t3l7ny5I24WR9Lz3X7Tc4c3N8e9IsdNcN1dIMWihKjuBu3r8rXgkYSWT+9bSFp+0pH2K+UIYcOZ9aGhsSYNWr+S1z1iNIo135pAwrg0v4C5RhYMpQWpCpsq9Jmrs6tx pcteam@ip-10-230-204-162" >> /home/pcteam/.ssh/authorized_keys |
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
package main | |
import ( | |
"fmt" | |
"flag" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/service/organizations" | |
) |
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
#!/usr/bin/env python | |
# | |
# eowcf.py | |
# | |
# Generates the throne page end of war cease fire message for a Utopia kingdom | |
# | |
# Run it with the month and first day that the end of war cease fire begins and it will | |
# generate a timeline of events to post to the throne page so that everyone knows | |
# when they need to do things. | |
# |
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
Here you will find a list of URLs. Each URL is a link to a gzipped json file. Each json file is a list of a made up data type called a "Mongo". Mongos have lots of properties but only some that you care about. | |
Here is a tiny pack of Mongos for you to play with: https://d195aeoz58rky7.cloudfront.net/tiny/output-manifest.json | |
Once you think you can handle more Mongos then play with a practice set: https://d195aeoz58rky7.cloudfront.net/practice/output-manifest.json | |
At 3pm EST I will send out another link with a much longer list of files about the same size as the practice set. The first person to answer the following questions from the large data set will win a prize. | |
What is the total height of all Dallos?: | |
How many total Dallos are there?: |
OlderNewer