This file contains hidden or 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
| import contextlib | |
| import linecache | |
| import logging | |
| import sys | |
| import traceback | |
| try: | |
| import cStringIO as StringIO | |
| except ImportError: | |
| import StringIO |
This file contains hidden or 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
| C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h lists: | |
| #define STATUS_WAIT_0 ((DWORD )0x00000000L) | |
| #define STATUS_ABANDONED_WAIT_0 ((DWORD )0x00000080L) | |
| #define STATUS_USER_APC ((DWORD )0x000000C0L) | |
| #define STATUS_TIMEOUT ((DWORD )0x00000102L) | |
| #define STATUS_PENDING ((DWORD )0x00000103L) | |
| #define STATUS_SEGMENT_NOTIFICATION ((DWORD )0x40000005L) | |
| #define STATUS_FATAL_APP_EXIT ((DWORD )0x40000015L) | |
| #define STATUS_GUARD_PAGE_VIOLATION ((DWORD )0x80000001L) |
This file contains hidden or 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
| CC=gcc | |
| CXX=g++ | |
| CXXFLAGS=-std=c++11 | |
| .PHONY: all small full clean | |
| all: small full | |
| small: small.exe | |
| full: full.exe | |
This file contains hidden or 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
| CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
| set(CMAKE_CXX_FLAGS "-g -Wall") | |
| PROJECT(mark_fields) | |
| # Sets up project-wide include dirs | |
| INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}") | |
| INCLUDE_DIRECTORIES("${PROJECT_BINARY_DIR}") | |
| # Builds proxychain tool | |
| ADD_EXECUTABLE(test main.cpp registered_object.cpp) |
This file contains hidden or 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 <cassert> | |
| #include <chrono> | |
| #include <iostream> | |
| #include <random> | |
| #include <string> | |
| #include <thread> | |
| #define count(x) (sizeof(x)/sizeof(*(x))) | |
| std::mt19937 rnd(std::random_device{}()); |
This file contains hidden or 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
| #------------------------------------------------- | |
| # | |
| # Project created by QtCreator 2014-02-28T17:28:33 | |
| # | |
| #------------------------------------------------- | |
| QT += core gui opengl openglextensions | |
| greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
This file contains hidden or 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
| # -*- encoding: utf-8 -*- | |
| import sys | |
| # Complicated stuff | |
| import sip | |
| api2_classes = [ | |
| 'QData', 'QDateTime', 'QString', 'QTextStream', | |
| 'QTime', 'QUrl', 'QVariant'] | |
| for cl in api2_classes: |
This file contains hidden or 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 | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
This file contains hidden or 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
| # Python's handling of certificate verification is irresponsible and wrong. | |
| # Having to include the code below to get what should be the only acceptable | |
| # default behavior is a shame | |
| # Code from https://gist.github.com/schlamar/2993700 | |
| import httplib | |
| import urllib2 | |
| import ssl |
This file contains hidden or 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
| import contextlib | |
| import os | |
| import sys | |
| import tarfile | |
| import traceback | |
| VERSION = sys.version_info[0] | |
| PY3 = VERSION == 3 |