Skip to content

Instantly share code, notes, and snippets.

@markalanevans
markalanevans / redis-init-rhel
Created November 3, 2011 03:22
Simple RedHat Redis init.d script
#!/bin/sh
#
# redis Startup script for Redis Server
#
# chkconfig: - 90 10
# description: Redis is an open source, advanced key-value store.
#
# processname: redis-server
# config: /etc/redis.conf
# pidfile: /var/run/redis.pid
@textarcana
textarcana / install-jenkins-centos-6-3.sh
Last active June 3, 2020 15:27
How to install Jenkins on CentOS 6.3
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum -y install jenkins
sudo yum -y install java-1.7.0-openjdk.x86_64
# Login as the jenkins user and specify shell explicity,
# since the default shell is /bin/false for most
# jenkins installations.
sudo su jenkins -s /bin/bash
@jmoiron
jmoiron / valuer.go
Created October 14, 2013 18:03
Example uses of sql.Scanner and driver.Valuer
package main
import (
"bytes"
"compress/gzip"
"database/sql/driver"
"errors"
"fmt"
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
@gourneau
gourneau / setup_pandas_notebook.sh
Last active May 2, 2024 04:53 — forked from westurner/setup_pandas_notebook.sh
Setting up dev pandas with OS X 10.9 and IPython notebook
First install brew if you don't have it and XCode if you don't have them already. Also get pip if you don't have it.
Get the 10.9 GFortran from http://coudert.name/software/gfortran-4.8.2-Mavericks.dmg
(http://gcc.gnu.org/wiki/GFortranBinaries)
brew install readline
brew install zeromq
sudo pip install ipython pyzmq tornado pygments jinja2
#optional python -c 'from IPython.external import mathjax; mathjax.install_mathjax()'
@flisky
flisky / django-server-config.md
Created July 7, 2014 03:48
Django部署方案

Django服务部署

## About Me

  • 09年底至今,主要工作内容:基于Django的Web开发,从0.96版本到1.7,向Django及相关社区贡献了50+ commits
  • 期间涉猎了javascript, golang, clojure等开发语言,对nginx, tornado, nodejs等工具的异步模型有一定了解
  • 熟悉Linux下开发,了解部署,但之前未接触过Django的服务部署调优
@flisky
flisky / asyncio intro.md
Last active August 6, 2020 03:56
Introduce to AsyncIO

AsyncIO

Prerequisite

Overviews

PEP: 3165
python module name: asyncio, new in Python 3.4
reference implementation: tulip
backport: trollius ( python >= 2.6)