View client.c
#include <stdio.h> | |
#include <sys/socket.h> | |
#include <linux/un.h> | |
#include <unistd.h> | |
#include <string.h> | |
int main(void) | |
{ | |
struct sockaddr_un address; | |
int socket_fd, nbytes; |
View icecast.xml
<icecast> | |
<limits> | |
<clients>100</clients> | |
<sources>2</sources> | |
<threadpool>5</threadpool> | |
<queue-size>524288</queue-size> | |
<client-timeout>30</client-timeout> | |
<header-timeout>15</header-timeout> | |
<source-timeout>10</source-timeout> | |
View repo-apply.sh
#!/bin/sh | |
## Script to patch up diff reated by `repo diff` | |
# from https://groups.google.com/d/msg/repo-discuss/43juvD1qGIQ/7maptZVcEjsJ | |
if [ -z "$1" ] || [ ! -e "$1" ]; then | |
echo "Usages: $0 <repo_diff_file>"; | |
exit 0; | |
fi | |
rm -fr _tmp_splits* |
View 001.mkd
- http://flask.pocoo.org/
- https://exploreflask.com/
- http://packages.python.org/Flask-Testing/
- http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-flask-mongoengine/
- Flask blueprint
- http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
- http://terse-words.blogspot.it/2011/06/flask-extensions-for-authorization-with.html
- http://charlesleifer.com/blog/structuring-flask-apps-a-how-to-for-those-coming-from-django/
- http://mattupstate.com/python/2013/06/26/how-i-structure-my-flask-applications.html
- http://www.jeffknupp.com/blog/2014/01/29/productionizing-a-flask-application/
View pec.py
import re | |
from pathlib import Path | |
import os | |
import sys | |
import requests | |
import logging | |
logging.basicConfig() |
View Manifest.plist
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |
View 000.md
The dependencies needed for build package from source are
# sudo apt-get install build-essential fakeroot devscripts dpatch dh-make expect
to build a package obviously you need the source and its dependencies
$ apt-get source blender
# apt-get build-dep blender
and finally you can build it
View README.md
Setup
Install the package lxc lxc-stuffs
, and configure the cgroup
mount entry in /etc/fstab
cgroup /sys/fs/cgroup cgroup defaults 0 0
If is the first time mount it (# mount /sys/fs/cgroup
). The final check can be done with lxc-checkconfig
.
Create containers
View 00.md
- http://balau82.wordpress.com/2010/03/10/u-boot-for-arm-on-qemu/
- http://balau82.wordpress.com/2010/04/12/booting-linux-with-u-boot-on-qemu-arm/
- http://rechtzeit.wordpress.com/tag/u-boot-qemu-fatal-error/
- http://www.elinux.org/Virtual_Development_Board
- http://buildroot.uclibc.org/
- http://www.slideshare.net/andrewmurraympc/elce-the
- http://lists.busybox.net/pipermail/buildroot/2010-February/032488.html
- http://www.devttys0.com/2012/07/hacking-the-linksys-wmb54g/
NewerOlder