Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️

Gabriel MANOLACHE gmanolache

🕶️
View GitHub Profile
@gmanolache
gmanolache / nginx-tls.conf
Last active Mar 1, 2021 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
View nginx-tls.conf
#
# Enables HTTP/2, PFS, HSTS and OCSP stapling.
#
server {
listen [::]:80;
listen 80;
server_name lex-ui.dev.azure...;
# Redirect all non-https requests
@gmanolache
gmanolache / emailService.js
Last active Feb 3, 2020
Email Client Mandrill
View emailService.js
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
};
View Mongo.finder.js
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;
View parserer.py
__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:
View keybase.md

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: