change pointer speed of Trackpoint on Thinkpad
works well T60 with Ubuntu 13.10 and Ubuntu 14.04 LTS
speed configration by write integer to file
0
<- slower ------------ faster -> 250
import logging | |
import pika | |
import time | |
LOG_FORMAT = ('%(levelname) -1s %(asctime)s %(name) -1s %(funcName) ' | |
'-1s %(lineno) -5d: %(message)s') | |
LOGGER = logging.getLogger(__name__) | |
user="user" |
# !/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = 'Diego Garcia' | |
import tornado.web | |
import tornado.ioloop | |
import oauth2.tokengenerator | |
import oauth2.grant | |
import oauth2.store.redisdb | |
import oauth2.store.mongodb |
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2 | |
#include <wayland-client.h> | |
#include <wayland-server.h> | |
#include <wayland-client-protocol.h> | |
#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers | |
#include "init_window.h" | |
#include "log.h" | |
#include <string.h> |
class VINLookupForm(Form): | |
""" | |
Lookup a VIN form | |
""" | |
vin = TextField(u'Enter VIN', | |
validators=[validators.Required(u'VIN is required for lookup.')]) | |
def validate_vin(self, field): | |
""" | |
Validate a VIN against the 9th position checksum |
.shadow-stuff { | |
-moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
-webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
-moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
-webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
} | |
.container { |
std::wstring StringConverter::StringToWideString(const std::string& s) { | |
int len = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), s.length(), NULL, 0); | |
std::wstring ws(L"", len); | |
wchar_t* pWSBuf = const_cast<wchar_t*>(ws.c_str()); | |
MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, pWSBuf, len); | |
return ws; | |
} | |
std::string StringConverter::WideStringToString(const std::wstring& ws) { | |
int len = WideCharToMultiByte(CP_UTF8, 0, ws.c_str(), ws.length(), 0, 0, NULL, NULL); |
# basic pfctl control | |
# == | |
# Related: http://www.OpenBSD.org | |
# Last update: Tue Dec 28, 2004 | |
# == | |
# Note: | |
# this document is only provided as a basic overview | |
# for some common pfctl commands and is by no means | |
# a replacement for the pfctl and pf manual pages. |
#!/bin/python | |
import os | |
from boto.s3.connection import S3Connection | |
import subprocess | |
from datetime import datetime, date | |
import argparse | |
import tempfile | |
import json | |
parser = argparse.ArgumentParser(description="Downloads logs from S3, and parses them with goaccess.") |
#! /bin/bash | |
set -e | |
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
trap 'echo FAILED COMMAND: $previous_command' EXIT | |
#------------------------------------------------------------------------------------------- | |
# This script will download packages for, configure, build and install a GCC cross-compiler. | |
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
# If you get an error and need to resume the script from some point in the middle, | |
# just delete/comment the preceding lines before running it again. |