Skip to content

Instantly share code, notes, and snippets.

View FernandoDoming's full-sized avatar

Fernando Domínguez FernandoDoming

View GitHub Profile
@FernandoDoming
FernandoDoming / run_test.sh
Created September 8, 2016 12:02
Run a single test file in Rails
bundle exec ruby -Itest path/to/test/file.rb
@FernandoDoming
FernandoDoming / pry.py
Created September 8, 2016 12:02
Python's binding pry equivalent
import code; code.interact(local=dict(globals(), **locals()))
@FernandoDoming
FernandoDoming / avg_regex
Created September 8, 2016 14:11
Regex to parse AVG for Linux output. First group is the malware file, second group is the malware name.
\>{0,1}([^\s]*)\s+(?:Virus identified|Found)\s+([^\s:]+)
#include <windows.h>
#include <iostream>
void decrypt(char * b, char * c, int n) {
for (int i = 0; i < n; i++) {
c[i] = b[i] ^ 'x';
}
}
void exec(char * d, int n) {
#include <windows.h>
#include <iostream>
#define TOO_MUCH_MEM 100000000
void decrypt(char * b, char * c, int n) {
for (int i = 0; i < n; i++) {
c[i] = b[i] ^ 'f';
}
}
#include <windows.h>
#include <iostream>
void decrypt(char * b, char * c, int n) {
for (int i = 0; i < n; i++) {
c[i] = b[i] ^ 'f';
}
}
#include <windows.h>
#include <iostream>
#pragma warning(disable:4996)
void decrypt(char * b, char * c, int n) {
for (int i = 0; i < n; i++) {
c[i] = b[i] ^ 'f';
}
}
#include <windows.h>
#include <iostream>
#define FILE_PATH "C:\\Users\\ferna\\Desktop\\tmp.file"
void decrypt(char * b, char * c, int n) {
for (int i = 0; i < n; i++) {
c[i] = b[i] ^ 'f';
}
}
#include <windows.h>
#include <iostream>
#include <Wininet.h>
#pragma comment(lib, "Wininet.lib")
void decrypt(char * b, char * c, int n) {
for (int i = 0; i < n; i++) {
c[i] = b[i] ^ 'f';
}
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab