Skip to content

Instantly share code, notes, and snippets.

@fearful-symmetry
fearful-symmetry / Cargo.toml
Created March 10, 2020 14:01
Using Rust and LD_PRELOAD to sniff open() calls
[package]
name = "test-ffi"
version = "0.1.0"
edition = "2018"
[lib]
crate-type = ["cdylib"] # Creates dynamic lib
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@gi0baro
gi0baro / pydal_jsonb.py
Created June 13, 2017 15:39
Add jsonb postgres support to pydal
# -*- coding: utf-8 -*-
"""
Adds some PostgreSQL jsonb support to pydal.
Check https://www.postgresql.org/docs/9.6/static/functions-json.html for additional info.
In order to use operators you must specify the 'jsonb' type on `Field` class.
Included query operators:
- `@>`: db.where(db.table.jsonb_field.jcontains({"foo": "bar"}))
- `<@`: db.where(db.table.jsonb_field.jin({"foo": "bar"}))
@maxvt
maxvt / infra-secret-management-overview.md
Last active February 28, 2024 20:53
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@paulcsmith
paulcsmith / brunch-config.js
Created April 27, 2016 03:42
Phoenix brunch set up
var bourbonPath = require("bourbon").includePaths[0];
exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: "js/app.js"
// To use a separate vendor.js bundle, specify two files path
// https://github.com/brunch/brunch/blob/stable/docs/config.md#files
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@zenlor
zenlor / Backbone.reqwest.js
Created September 21, 2011 14:39
Backbone.js Sync method for reqwest.js and Ender.js
(function (reqwest, Backbone) {
var methodMap, getUrl;
methodMap = {
'create': 'POST',
'update': 'PUT',
'delete': 'DELETE',
'read' : 'GET'
};
getUrl = function(object) {
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 30, 2024 12:48
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶