Skip to content

Instantly share code, notes, and snippets.

View rustyrazorblade's full-sized avatar

Jon Haddad rustyrazorblade

View GitHub Profile
@brbrown25
brbrown25 / mwaa-plugins-packaging.md
Last active October 26, 2023 13:28
Building a whl zip for mwaa

Create a folder files

In the folder create the following files Dockerfile

FROM python:3.10.13

WORKDIR /managed-airflow

COPY mwaa-requirements-build.txt /managed-airflow/requirements.txt
COPY build-whl.sh /managed-airflow/build-whl.sh
@marvell
marvell / remove_apt_cache
Created May 18, 2015 15:29
Remove APT cache (for Dockerfile)
apt-get clean autoclean
apt-get autoremove --yes
rm -rf /var/lib/{apt,dpkg,cache,log}/
@rustyrazorblade
rustyrazorblade / gist:54e58548a60d52248d5a
Last active February 24, 2017 04:11
7days to die dedicated server
# original guide http://steamcommunity.com/sharedfiles/filedetails/?id=360404397
# as root
apt-get install lib32gcc1
adduser steam
# as steam user
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar zxvf steamcmd_linux.tar.gz
./steamcmd.sh
package org.jboss.resteasy.test;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
2......jump.to.line.number.2048.........................................................
8......print_to_console.my.var.is.prty.lngly.named.but..................................
32.........return.value.of.type.(*integer*).function.main(array.of.arguments):..........
128....var.this.variable.has.some.length.but.is.luckily.longer.and.different.enough.<==:.1
2048...jump.to.line.number.32...........................................................
8192...var.my.variable.is.pretty.longly.named.but.<==:.<<Hello\\.World!\\.newline>>.....
131072.from.current_directory.import.C://usr/local/lib/ericscript0\\\.1/standard_library.print_to_console
@garnaat
garnaat / gist:2917662
Created June 12, 2012 13:55
Example using boto to create an IAM role and associate it with an EC2 instance
In [1]: policy = """{
...: "Statement":[{
...: "Effect":"Allow",
...: "Action":["s3:*"],
...: "Resource":["arn:aws:s3:::mybucket"]}]}"""
In [2]: import boto
In [4]: c = boto.connect_iam()
In [5]: instance_profile = c.create_instance_profile('myinstanceprofile')
In [6]: role = c.create_role('myrole')
In [7]: c.add_role_to_instance_profile('myinstanceprofile', 'myrole')
@rustyrazorblade
rustyrazorblade / echoserver.py
Created February 7, 2012 22:22
tornado 2.1 echo server
#!/usr/bin/env python
#coding:utf-8
import sys, os, re
import logging
from tornado.ioloop import IOLoop
from tornado.iostream import IOStream
from tornado.netutil import TCPServer
@justfalter
justfalter / how_to_install_qcachegrind_on_osx.txt
Created June 16, 2011 16:04
How to install qcachegrind (kcachegrind) on OSX Snow Leopard
SUMMARY
I like to use kcachegrind for doing profiling on my ruby code. Most of my development
is done on OSX, and while you can install kcachegrind via macports, it takes forever
because it has to build KDE, as well. Much to my surprise, the fine folks who
wrote kcachegrind also made a QT version, qcachegrind. I was able to build this on
OSX without too much effort, only having to install QT and GraphViz. Yippie!
I'm running OSX 10.6.7, with Xcode 4. My default gcc/g++ version is 4.2. I'm sure
it will build just fine on earlier versions of Xcode, but I haven't tested it.