Skip to content

Instantly share code, notes, and snippets.

View JosepBernad's full-sized avatar

Josep Bernad JosepBernad

  • Barcelona - Mallorca
View GitHub Profile
@TomWhitwell
TomWhitwell / viz.html
Last active October 7, 2025 16:08
GPT Visualisation MIDI code
<!--
Prompt used to generate this code:
Create an HTML file that shows rhythmic pulsing retro wireframe visuals that can be controlled using 8 MIDI CCs 35–41. Return the full code.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
@aanari
aanari / pod_force_reinstall.sh
Created May 4, 2017 20:37
Reinstall Cocoa Pods and Clear Cache
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.1.1
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf Pods
pod update
@idleberg
idleberg / sublime-text-macos-context-menu.md
Last active December 25, 2025 16:01 — forked from vincentmac/sublime-text-osx-context-menu.md
“Open in Sublime Text” in macOS context-menu

This list has been updated for Big Sur (and later). Since I don't use these versions, this guide might still need further improvements. For older macOS versions, please see this older revision.

Open in Sublime Text

  • Open Automator
  • Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments
@kelvinmo
kelvinmo / s3link-v4.php
Created October 25, 2014 00:17
PHP code to generate a pre-signed URL to access a restricted AWS S3 object
@gitaarik
gitaarik / git_submodules.md
Last active February 3, 2026 09:44
Git Submodules basic explanation

Git Submodules - Basic Explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.