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
apt-get clean autoclean | |
apt-get autoremove --yes | |
rm -rf /var/lib/{apt,dpkg,cache,log}/ |
# 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 |
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') |
#!/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 |
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. |