Skip to content

Instantly share code, notes, and snippets.

@stubar
stubar / jetbrains-toolbox-file-associations-mac-fix.md
Last active January 29, 2021 15:09
Fix for Jetbrains Toolbox file extension issue

Fix for Jetbrains Toolbox file extension issue

Details of issue here https://youtrack.jetbrains.com/issue/TBX-2540

When Jetbrains Toolbox auto updates PHPStorm, it creates a new app in a new location rather than overwriting the same location. This means file associations are lost everytime you update. This script aims to re add your file extensions everytime Toolbox updates PHPStrom.

brew install duti

@stubar
stubar / preq.js
Created October 1, 2019 10:50
Pull Request Generator
#! /usr/bin/env node
const execSync = require('child_process').execSync;
const changeCase = require('change-case');
/*
Automates creation of Eurostar PRs.
You need to install https://hub.github.com/ for this to work.
Auto adds jira link if one is found in branch name.
PR name is sourced from branch name.
Opens PR in browser for further editing of title / description
@stubar
stubar / deleteAllMyFbMyPhotos.js
Created April 9, 2018 21:37
Delete all you Facebook Photos (tested in Chrome 65)
/*
This script is for deleting your photos...
1. Go to your profile
2. Select Photos
3. Scroll down until you can see all the photos you wish to delete in this session (all of them if you like)
4. Paste this script in the console and press return
*/