This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Text to speak installation script | |
# Testé avec Lubuntu 13.04 x86_64 | |
# Julien Deudon (initbrain) | |
# Vérifier les privilèges | |
if [ $USER = root -o $UID -eq 0 ] | |
then | |
echo "Veuillez exécuter ce script en tant qu'utilisateur normal," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Python screenshot tool (fullscreen/area selection) | |
# Special thanks to @tomk11, @frakman1, @aspotton and @lucguislain for the improvements | |
import sys | |
from PyQt5 import QtCore, QtGui | |
from PyQt5.QtGui import QPixmap, QScreen | |
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QSizePolicy | |
from PyQt5.QtWidgets import QGroupBox, QSpinBox, QCheckBox, QGridLayout | |
from PyQt5.QtWidgets import QPushButton, QHBoxLayout, QVBoxLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# List changed files during the last minute (graphically in a treeview window) | |
import gtk, commands | |
class PyApp(gtk.Window): | |
def __init__(self): | |
super(PyApp, self).__init__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# Julien Deudon (initbrain) | |
# Livebox_utility v0.2 du 26/09/2011 | |
# Testé sous Windows XP SP3 (32bits) avec VirtualBox | |
# et sous Windows 7 Pro SP1 (64bits) grâce à Py2exe : | |
# https://www.initbrain.fr/static/code/Livebox_utility.rar | |
import urllib2, base64, re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# -*- coding:utf-8 -*- | |
# Julien Deudon (initbrain) | |
import os | |
import urllib | |
import re | |
os.system("clear") # Nettoyage de la console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import xchat, urllib | |
__module_name__ = "pyLmgtfy" | |
__module_version__ = "0.1" | |
__module_description__ = "Make an \"Let me Google That For You\" url and send it to current channel" | |
__module_author__ = "initbrain" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from lxml.etree import tostring | |
from lxml.html import fromstring | |
import urllib2 | |
def req(url, http_proxy=None, timeout=30, retry=2): | |
result = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) { | |
char ptr; | |
printf("%s is located at: %p\n", argv[1], getenv(argv[1])); | |
printf("%s was found at the address.\n", ptr); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import re | |
from PySide import QtCore, QtGui, QtWebKit | |
class Browser(QtGui.QMainWindow): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Pour les tests : | |
# python google_pic_search.py -l https://twimg0-a.akamaihd.net/profile_images/2298747498/n9hzj4nx98tgsxnpdagd.png | |
# python google_pic_search.py -i /home/initbrain/Images/initbrain.png | |
# Importations | |
import sys | |
import os |
OlderNewer