Skip to content

Instantly share code, notes, and snippets.

View comtom's full-sized avatar

Tomás Dowling comtom

View GitHub Profile
en /etc/rc.local
mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
echo "1" > /dev/cgroup/cpu/user/notify_on_release
echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
en ~/.bashrc
<?php
if (isset($_POST['submit'])) {
$debug = True;
$calle = $_POST['calle'];
$interseccion = $_POST['interseccion'];
$intersecciones = array(
'Peralta Ramos',
'Del Valle',
@comtom
comtom / update_chromium.sh
Last active September 27, 2015 06:48
Actualizar chromium al ultimo daily build
#!/bin/sh
# Autor: Tomás González Dowling
# Colaboradores: Fernando Ramirez y Facundo Guerrero
# Empresa: Comtom Tech Support
# Licencia: GPL 3
# Creamos un direcorio temporal
unzipdir=$(mktemp -d)
format PE
entry main
section '.text' code readable executable
main:
push label_input
push _format_output
call [printf]
add esp, 8
@comtom
comtom / ej10.asm
Last active November 2, 2015 21:56
format PE
entry main
section '.text' code readable executable
main:
push label_input
push _format_output
call [printf]
add esp, 8
format PE
entry main
section '.text' code readable executable
main:
mov eax, [esp]
xor edi, edi
; 32 bit -> 8 nibble
; valor inicial de la mascara
format PE
entry main
section '.text' code readable executable
main:
push str_intro
push format_output
call [printf]
How to crack Sublime Text (2 and 3)
===
1. Open Sublime in a HEX editor (the executable file)
2. Find 43 33 33 42 30 32
3. Replace in the string above 33 42 with 32 42
4. Save
5. Enter the license below:
—–BEGIN LICENSE—–
@comtom
comtom / easygui_modified.py
Last active January 3, 2016 06:08
Modified easygui, to support custom caption text on buttons :)
"""
@version: 0.96(2010-08-29)
@note:
ABOUT EASYGUI
EasyGui provides an easy-to-use interface for simple GUI interaction
with a user. It does not require the programmer to know anything about
tkinter, frames, widgets, callbacks or lambda. All GUI interactions are
invoked by simple function calls that return results.
<?php
if (! extension_loaded('mssql')) {
//Return an associative array. Used on mssql_fetch_array()'s result_type parameter.
define('MSSQL_ASSOC', '1');
//Return an array with numeric keys. Used on mssql_fetch_array()'s result_type parameter.
define('MSSQL_NUM', '2');
//Return an array with both numeric keys and keys with their field name. This is the default value for mssql_fetch_array()'s result_type parameter.
define('MSSQL_BOTH', '3');
//Indicates the 'TEXT' type in MSSQL, used by mssql_bind()'s type parameter.
define('SQLTEXT', '35');