Skip to content

Instantly share code, notes, and snippets.

View yunlzheng's full-sized avatar
🎯
Focusing

ylzheng yunlzheng

🎯
Focusing
View GitHub Profile
sudo aptitude -y install nginx
cd /etc/nginx/sites-available
sudo rm default
sudo cat << EOF > jenkins
upstream app_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;
apt-get install xvfb
apt-get install firefox
#!/usr/bin/env python
import pika
credentials = pika.PlainCredentials("guest", "guest")
params = pika.ConnectionParameters(host="127.0.0.1", port=5672,
virtual_host="/", credentials=credentials)
connection = pika.BlockingConnection(params)
channel = connection.channel()
import ctypes
import unittest
import time
import os.path
from sdl2 import *
from sdl2.sdlmixer import *
class MixerTests(unittest.TestCase):