Skip to content

Instantly share code, notes, and snippets.

View bradleyg's full-sized avatar
💭
send busy

Bradley Griffiths bradleyg

💭
send busy
View GitHub Profile
def get(self, request, *args, **kwargs):
res = super(SubmissionDetailView, self).get(request, *args, **kwargs)
if not request.is_ajax():
return res
ctx = self.get_context_data()
return json_response(ctx['data'], 200, False)
docker inspect thesweetshoptv_db_1
[{
"ID": "361405204c70e5351774d66ddbc4f9bdd8622eedfd3f035385c704b439b25611",
"Created": "2014-05-02T10:53:22.081521701Z",
"Path": "/usr/local/bin/run",
"Args": [],
"Config": {
"Hostname": "361405204c70",
"Domainname": "",
"User": "",
docker inspect thesweetshoptv_db_1
[{
"ID": "8b678edcafada191931d3b1f22ec64ca5a07660a3af970a3d74eb1a216773404",
"Created": "2014-05-02T10:55:43.398473089Z",
"Path": "/usr/local/bin/run",
"Args": [],
"Config": {
"Hostname": "8b678edcafad",
"Domainname": "",
"User": "",
# config
export HOME=/root
export SPINNERS=$HOME/spinners
# setup spinners
mkdir $SPINNERS
# deps
apt-get update -y
apt-get install -y docker.io git-core python-pip nginx golang byobu
Adobe After Effects 8.0 Keyframe Data
Units Per Second 30
Source Width 1920
Source Height 1080
Source Pixel Aspect Ratio 1
Comp Pixel Aspect Ratio 1
Motion Trackers Tracker #1 Track Point #1 Attach Point Offset
Frame X Y
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x7f7084140598 pc=0x7f709414dae0]
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7f709414dae0
runtime.throw(0xa75ee5)
/usr/local/go/src/pkg/runtime/panic.c:520 +0x69
runtime: unexpected return pc for runtime.sigpanic called from 0x7f709414dae0
runtime.sigpanic()
/usr/local/go/src/pkg/runtime/os_linux.c:222 +0x3d
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import requests
url = "http://api.impossible.io/v1/token/upload/0fa84b7d-51b034861-9a7d-501a9b289e08.mp4"
payload = {
"task": {
func LongPoll(w http.ResponseWriter, quit chan struct{}) {
ticker := time.NewTicker(25 * time.Second)
for {
select {
case <-ticker.C:
log.Println("writing")
w.Write([]byte(" "))
w.(http.Flusher).Flush()
case <-quit:
<html>
<head>
<meta charset="utf-8">
<title>s3direct</title>
<link href="/static/s3direct/css/bootstrap-progress.min.css" type="text/css" media="all" rel="stylesheet" />
<link href="/static/s3direct/css/styles.css" type="text/css" media="all" rel="stylesheet" />
<script type="text/javascript" src="/static/s3direct/js/scripts.js"></script>
</head>
<body>
<form action="" method="post">
REGIONS = {
'gb': ('ad', 'al', 'at', 'ba', 'be', 'bg', 'by', 'ch', 'cs', 'cz', 'de', 'dk', 'ee', 'es', 'fi', 'fo', 'fx', 'gb', 'gi', 'gr', 'hr', 'hu', 'ie', 'is', 'it', 'li', 'lt', 'lu', 'lv', 'mc', 'md', 'mk', 'mt', 'nl', 'no', 'pl', 'pt', 'ro', 'se', 'si', 'sj', 'sk', 'sm', 'ua', 'va'),
'us': ('na', 'us', 'ca', 'ai', 'ag', 'aw', 'bs', 'bb', 'bz', 'bm', 'vg', 'ky', 'cr', 'cu', 'cw', 'dm', 'do', 'sv', 'gl', 'gd', 'gp', 'gt', 'ht', 'hn', 'jm', 'mq', 'mx', 'pm', 'ms', 'cw', 'kn', 'ni', 'pa', 'pr', 'kn', 'lc', 'pm', 'vc', 'tt', 'tc', 'vi', 'sx', 'mx', 'sa', 'ar', 'bo', 'br', 'cl', 'co', 'ec', 'fk', 'gf', 'gy', 'gy', 'py', 'pe', 'sr', 'uy', 've'),
'me': ('dz', 'bh', 'dj', 'eg', 'ir', 'iq', 'jo', 'kw', 'lb', 'ly', 'mt', 'ma', 'om', 'qa', 'sa', 'sy', 'tn', 'ae', 'ps', 'ye'),
'au': ('au',),
'nz': ('fj', 'nz', 'sb', 'ws', 'to', 'vu', 'ck'),
'as': ('th', 'my', 'sg', 'id', 'ph', 'jp', 'kr', 'cn', 'vn', 'la', 'mm', 'in', 'pk', 'bd', 'lk', 'tw', 'hk', 'kh', 'np', 'bt', 'mn', 'bn', 'mv'),
'de':