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
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET | |
/* | |
* Copyright 2012 Roman Nurik | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
gem 'koala' | |
gem 'bitly', '~> 0.8.0' | |
gem 'twitter' |
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
# function to convert an mp3 to an ogg file | |
function mp3_to_ogg { | |
mp3=$1 | |
wav=$(echo "$mp3"|sed "s/mp3$/wav/i") | |
ogg=$(echo "$mp3"|sed "s/mp3$/ogg/i") | |
artist=$(mp3info -p "%a\n" $mp3) | |
comment=$(mp3info -p "%c\n" $mp3) | |
genre=$(mp3info -p "%g\n" $mp3) | |
album=$(mp3info -p "%l\n" $mp3) | |
track=$(mp3info -p "%n\n" $mp3) |
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
// Detection of an endianness in the run system. | |
int is_big_endian(void) | |
{ | |
union { | |
uint32_t i; | |
char c[4]; | |
} bint = {0x01020304}; | |
return bint.c[0] == 1; |
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
;Как получить привелегию Ring 0 | |
;Автор: The GSGR | |
;Иногда это нужно для доступа к портам выше $FF, таких как IDE контроллер и т.д. | |
;-------------------------------------------------- | |
.386p | |
.model flat | |
.radix 16 | |
Ring_0_CS_32 = 28 |
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/ruby | |
require 'thread' | |
require 'logger' | |
$KCODE = "utf-8" | |
class ProcMon < Logger::Application | |
def initialize() | |
super('ProcMon') # Name of the application. | |
end |
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/ruby | |
require 'net/ftp' | |
require 'net/http' | |
require 'fileutils' | |
class String | |
def to_l(srcl,dstl) | |
val = gsub(/(["'\&\(\)])/) { "\\" + $1 } | |
`echo #{val} |iconv -f #{srcl} -t #{dstl}`.sub(/\n/,"") | |
end |
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/ruby | |
require 'net/ftp' | |
require 'net/http' | |
require 'fileutils' | |
class String | |
def to_l(srcl,dstl) | |
val = gsub(/(["'\&\(\)])/) { "\\" + $1 } | |
`echo #{val} |iconv -f #{srcl} -t #{dstl}`.sub(/\n/,"") | |
end |
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
ASSUME CS:CGR,DS:CGR | |
CGR GROUP COD,DAT | |
COD SEGMENT BYTE | |
ORG 100H | |
ZIPCOMM proc | |
LEA SI,C_ | |
CALL WW | |
MOV SI,80H | |
MOV AH,'/' | |
CALL READ_FILE_STRING |
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
.MODEL SMALL | |
COD SEGMENT PARA | |
ASSUME CS:COD,DS:COD | |
ORG 100H | |
START: | |
XOR AX,AX | |
MOV CX,256 | |
LEA DI,BUF | |
PUSH CS | |
PUSH CS |
OlderNewer