Skip to content

Instantly share code, notes, and snippets.

View gmanolache's full-sized avatar
🕶️

Gabriel MANOLACHE gmanolache

🕶️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gmanolache on github.
  • I am gmanolache (https://keybase.io/gmanolache) on keybase.
  • I have a public key whose fingerprint is B6AA E624 76B3 07C0 288E 3DC7 D3F2 5565 45BA D7B4

To claim this, I am signing this object:

__author__ = 'gmanolache'
import re
sample_file_1 = 'C:/Users/gmanolache/Downloads/dataSample/0A32eTdBKayjCWhZqDOQ.asm'
functions = [re.findall(r'\.idata:.*extrn\ (.*):.*', line) for line in open(sample_file_1)]
for function in functions:
if function:
@gmanolache
gmanolache / Mongo.finder.js
Created October 24, 2016 09:01
Mongo Depth finder
db.users.find({
$where : function(){
var item = 'Location';
var value = '501';
var drillDown = function(obj){
for(var k in obj) {
if(typeof obj[k] == 'object' && obj[k] !== null){
if(drillDown(obj[k])) {
return true;
@gmanolache
gmanolache / emailService.js
Last active February 3, 2020 18:52
Email Client Mandrill
const mandrill = require('mandrill-api/mandrill');
const mandrill_client = new mandrill.Mandrill('YOUR_API_KEY');
const arrayFromObject = (content) => {
const val = [];
for (const key in content) {
val.push({name: key, content: content[key]})
}
return val
};
@gmanolache
gmanolache / nginx-tls.conf
Last active March 1, 2021 18:18 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Enables HTTP/2, PFS, HSTS and OCSP stapling.
#
server {
listen [::]:80;
listen 80;
server_name lex-ui.dev.azure...;
# Redirect all non-https requests