I hereby claim:
- I am leandrotoledo on github.
- I am leandrotoledo (https://keybase.io/leandrotoledo) on keybase.
- I have a public key whose fingerprint is A4D4 1D6C 70CF 394E 6EE2 A281 F20F 4B10 1AE4 197C
To claim this, I am signing this object:
#!/bin/sh | |
mdb-schema Acadesc.mdb postgres | sed 's/Char/Varchar/g' | sed 's/Postgres_Unknown 0x0c/text/g' | psql -h localhost -U postgres -w -d acadesc > /dev/null 2>&1 | |
tables=$(echo -en $(mdb-schema Acadesc.mdb postgres | grep "CREATE TABLE" | awk '{ print $3 }' | sed -e 's/"//g');) | |
for i in $tables | |
do | |
mdb-export -I postgres Acadesc.mdb $i | psql -h localhost -U postgres -w -d acadesc > /dev/null 2>&1 | |
done |
Processor Information: | |
Vendor: GenuineIntel | |
Speed: 2534 Mhz | |
4 logical processors | |
2 physical processors | |
HyperThreading: Supported | |
FCMOV: Supported | |
SSE2: Supported | |
SSE3: Supported | |
SSSE3: Supported |
Section "ServerLayout" | |
Identifier "X.org Configured" | |
Screen 0 "Screen0" 0 0 | |
Screen 1 "Screen1" RightOf "Screen0" | |
Screen 2 "Screen2" RightOf "Screen1" | |
InputDevice "Mouse0" "CorePointer" | |
InputDevice "Keyboard0" "CoreKeyboard" | |
EndSection | |
Section "Files" |
If you have a simple installation, in other words, a basic installation without self-compiled programs or a complicated setup, you just need to follow three steps: | |
1) Change squeeze to wheezy in source.list | |
# vi /etc/apt/source.list | |
:%s/squeeze/wheezy/g | |
:wq! | |
2) Update new repository | |
# aptitude update |
import telegram | |
import time | |
from rq import Queue | |
from redis import Redis | |
from handleMessage import handleTgMessage | |
__author__ = 'mehrdad vesal' | |
_botToken='<TOKEN>' | |
_raziBot=telegram.Bot(token=_botToken) |
import telegram | |
__author__ = 'mehrdad' | |
def handleTgMessage(tgBot,tgMessage,tgChatID,tgUpdateID): | |
"""do something with message""" | |
tgBot.sendMessage(chat_id=tgChatID, text=tgMessage) |
#!/usr/bin/env python | |
'''Using Webhook and self-signed certificate''' | |
# This file is an annotated example of a webhook based bot for | |
# telegram. It does not do anything useful, other than provide a quick | |
# template for whipping up a testbot. Basically, fill in the CONFIG | |
# section and run it. | |
# Dependencies (use pip to install them): | |
# - python-telegram-bot: https://github.com/leandrotoledo/python-telegram-bot |
import logging | |
import telegram | |
from telegram import ReplyKeyboardMarkup, KeyboardButton | |
from telegram.ext import Updater, CommandHandler, MessageHandler, filters | |
# Enable logging | |
logging.basicConfig( | |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
level=logging.INFO) |
I hereby claim:
To claim this, I am signing this object:
server { | |
listen 80; | |
server_name _; | |
server_name_in_redirect off; | |
location ~ ^/~(.+?)(/.*)?$ { | |
alias /home/$1/public_html$2; | |
autoindex on; | |
} |