This document will help you to establish wireless network connection without installing any programs and then, configure wicd that manages connections automatically.
List all net devices:
# Example of simple echo server | |
# www.solusipse.net | |
import socket | |
def listen(): | |
connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
connection.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
connection.bind(('0.0.0.0', 5555)) | |
connection.listen(10) |
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <netdb.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <pthread.h> |
python3.3 -m venv app-env | |
cd app-env/ | |
source bin/activate | |
curl -O http://python-distribute.org/distribute_setup.py | |
python distribute_setup.py | |
bin/easy_install pyramid | |
bin/pcreate -s alchemy app | |
cd app | |
python setup.py develop | |
cd .. |
url = request.route_url('home', _query={'login': 'invalid'}) | |
return HTTPFound(location=url) |
''' | |
Sample usage: | |
python ytwebm.py https://www.youtube.com/watch?v=dQw4w9WgXcQ -s 01:45 -l 5 | |
This will create webm file from youtube video from 01:45 to 01:50 | |
''' | |
import youtube_dl, subprocess, os, argparse | |
class Downloader: |
#Arch Linux on Raspberry Pi: RPi as xbmc station#
Let's start from creating xbmc user:
useradd -m -s /bin/bash xbmc
Install necessary packages:
pacman -Syu xorg xorg-xinit xbmc slim
sudo cat /sys/firmware/acpi/tables/MSDM |
Following script may be used for configuring complete and secure email server on fresh install of Debian 7. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.
postfix.sh
script.
dll and lib files from mingw:
rename libraryname.so
to libraryname.dll
lib /machine:i386 /def:libraryname.def