Skip to content

Instantly share code, notes, and snippets.

View jloehel's full-sized avatar
🏡
🇺🇦 Working from home

Jürgen Löhel jloehel

🏡
🇺🇦 Working from home
View GitHub Profile
@Neo23x0
Neo23x0 / yara_performance_guidelines.md
Last active July 14, 2025 09:04
YARA Performance Guidelines

This Gist has been transfered into a Github Repo. You'll find the most recent version here.

YARA Performance Guidelines

When creating your rules for YARA keep in mind the following guidelines in order to get the best performance from them. This guide is based on ideas and recommendations by Victor M. Alvarez and WXS.

  • Revision 1.4, October 2020, applies to all YARA versions higher than 3.7
@jasoares
jasoares / mongod0.conf
Last active February 24, 2022 21:54
MongoDB config file template
systemLog:
destination: file
path: '/usr/local/var/log/mongodb/mongod0.log'
logAppend: true
storage:
dbPath: '/usr/local/var/mongodb0'
directoryPerDB: true
journal:
enabled: true
engine: wiredTiger
@vigneshwaranr
vigneshwaranr / migrator.sh
Created August 24, 2012 18:34
Script to convert SQLITE dumps into PostgreSQL compatible dumps
#! /bin/sh
usage_error () {
echo 'Usage: sh migrator.sh <path to sqlite_to_postgres.py> <path to sqlite db file> <an empty dir to output dump files>'
echo
echo 'Example:'
echo '>sh migrator.sh sqlite_to_postgres.py ~/reviewboard.db /tmp/dumps'
echo
echo 'Tested on:'
echo 'Python 2.7.3'
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')