Skip to content

Instantly share code, notes, and snippets.

View bru02's full-sized avatar

Brúnó Salomon bru02

View GitHub Profile
@mujdat
mujdat / duden-artikel.sh
Last active September 3, 2025 08:22
Duden Artikel Suche
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Der Die Das
# @raycast.mode fullOutput
# Optional parameters:
# @raycast.icon 📚
# @raycast.packageName Duden Artikel Suche
@shripadk
shripadk / README.md
Last active August 24, 2025 13:02
Karabiner Complex Modification: Change F4 to Command + Space for Alfred

Karabiner — Change F4 to Command + Space for Alfred

This is useful for changing the default F4 key that is bound to Spotlight to launch Alfred in macOS Big Sur.

Setup:

  1. Make sure you have Karabiner installed.
  2. Open ~/.config/karabiner/karabiner.json.
  3. Copy the rules object from below snippet and add it within profiles.complex_modifications. The basic structure of your karabiner.json file should look something like this:
/**
* jQuery 2.1.3's parseHTML (without scripts options).
* Unlike jQuery, this returns a DocumentFragment, which is more convenient to insert into DOM.
* MIT license.
*
* If you only support Edge 13+ then try this:
function parseHTML(html, context) {
var t = (context || document).createElement('template');
t.innerHTML = html;
return t.content;
@joashp
joashp / openssl_encrypt_decrypt.php
Created September 4, 2015 15:59
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/