This file contains 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 python:2.7 | |
RUN apt-get update -qqy; \ | |
apt-get install -qqy \ | |
ruby \ | |
ruby-dev \ | |
rubygems; \ | |
apt-get clean -qqy; | |
RUN gem install jekyll |
This file contains 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
import threading | |
from tasks import add | |
for i in reversed(range(10)): | |
add.apply_async((0, i), priority=i) | |
# Redis should list multiple queues like this: | |
# 127.0.0.1:6379[3]> keys * | |
# 1) "_kombu.binding.celeryev" | |
# 2) "default\x06\x163" ====> 3 |
This file contains 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
mv 4024 org.laptop.WebActivity | |
mv 4026 org.laptop.community.TypingTurtle | |
mv 4027 org.laptop.TurtleArtActivity | |
mv 4028 org.laptop.sugar.ReadActivity | |
mv 4029 org.sugarlabs.IRC | |
mv 4030 org.vpri.EtoysActivity | |
mv 4031 com.martindengler.WirelessGraph | |
mv 4032 org.laptop.ImageViewerActivity | |
mv 4034 com.garycmartin.Moon | |
mv 4035 org.laptop.sugar.ReadEtextsActivity |
This file contains 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/sh | |
TALK_VERSION=3.4.0 | |
TALK_BASEDIR=/opt/talk | |
TALK_ROOT_URL=http://your-domain.tld | |
#mongo repo | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list |
This file contains 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
import os | |
from aiohttp import web | |
async def build(): | |
os.system('git pull') | |
os.system('rm -rf doc') | |
os.system('/docker/docker -I -c default --extras addHeader,noFiles' | |
' -x node_modules') | |
os.system('cp -r images doc') | |
print("Building has finished!") |
This file contains 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
import sys | |
import argparse | |
import redis | |
import json | |
import requests | |
def parse_arguments(): | |
parser = argparse.ArgumentParser(description='') | |
parser.add_argument( |
This file contains 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
{ | |
"redis": { | |
"host": "127.0.0.1", | |
"port": 6379, | |
"db": 0, | |
"password": "" | |
}, | |
"aws": { | |
"access_key_id": "<access>", | |
"secret_access_key": "<secret>", |
This file contains 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 bpftrace | |
/* | |
* killsnoop Trace signals issued by the kill() syscall. | |
* For Linux, uses bpftrace and eBPF. | |
* | |
* USAGE: killsnoop.bt | |
* | |
* Also a basic example of bpftrace. | |
* | |
* This is a bpftrace version of the bcc tool of the same name. |
This file contains 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
2,3c2 | |
< int AVX3Threshold = 4096 {ARCH diagnostic} {default} | |
< bool AbortVMOnCompilationFailure = false {diagnostic} {default} | |
--- | |
> ccstrlist AOTLibrary = {product} {default} | |
6,8d4 | |
< bool AbortVMOnSafepointTimeout = false {diagnostic} {default} | |
< bool AbortVMOnVMOperationTimeout = false {diagnostic} {default} | |
< intx AbortVMOnVMOperationTimeoutDelay = 1000 {diagnostic} {default} | |
67c63 |
This file contains 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" | |
"log" | |
"os" | |
"os/signal" | |
"strconv" | |
"syscall" |
OlderNewer