Skip to content

Instantly share code, notes, and snippets.

View Fishbowler's full-sized avatar

Dan Caseley Fishbowler

View GitHub Profile
@inchoate
inchoate / readme.md
Last active July 16, 2025 10:15
Open clicked URLs into a particular Google Chrome profile

Problem

When I click on links from Slack or Outlook on MacOS they open in seemingly random browser windows/profiles. This is annoying.

Solution

Open links in a particular google chrome profile window. Be less annoyed.

  1. In Chrome, visit chrome://version and find the desired profile name. Mine was Default. Copy that profile's directory name, like Profile 2 or Default, not the profile's vanity name you see when you click on your profile icon in the browser.
  2. Install Finicky: brew install finicky. After install it should be running and you should see the icon in the upper toolbar.
  3. From the Finicky Toolbar Item, click > Config > Create New
  4. Edit the new file ~/.finicky and make it look something like this, filling in your profile name:
@mvark
mvark / IPLookup.js
Created May 6, 2021 10:08
Bookmarklet that calls a REST API to fetch geolocation details for a given IP address
//IP LOCATION TRACKER BOOKMARKLET
//Original source: https://funbutlearn.com/2016/06/ip-location-tracker-bookmarklet-created.html
//modified API service from http://ip-api.com which doesn't support HTTPS to https://ipapi.co/ to have a secure endpoint & avoid Mixed Content blocking issue
javascript: (function() {
var text = "";
if (window.getSelection) {
text = window.getSelection().toString();
} else if (document.selection && document.selection.type != "Control") {
text = document.selection.createRange().text;
}
@guusdk
guusdk / xmpp-dns.md
Last active March 23, 2021 09:00
XMPP DNS

Domain names in XMPP

This text describes how network names are used in XMPP. The intended audience is people looking to set up an XMPP-based service.

Setting the scene

An XMPP domain consists of 1 or more XMPP servers. If there are more servers in the same domain, then that's referred to as "clustering".

When multiple XMPP domains communicate with each-other, at least one server of each domain connect to each-other. This is typically referred to as "federation" or "server-to-server comunication."

import 'package:flutter_test/flutter_test.dart';
import 'package:intl/intl.dart';
import 'package:timezone/timezone.dart';
import 'package:timezone/data/latest.dart';
// A DateTime in dart contains the TimezoneOffset from UTC/GMT
// However formatting a Date using timezone patterns/symbols like "Z" or "Z"
// is not supported yet.
// See: https://github.com/dart-lang/intl/issues/19 for more details.
Future<void> main() async {
@twaddington
twaddington / charles-proxy-android.md
Last active January 31, 2025 18:16
How to set up Charles Proxy for the Android Emulator.

Charles Proxy Android

Note: Consider using mitmproxy instead of Charles. There is better, more recent, documentation for using mitmproxy on Android.

Steps

1. Add the Network Security Configuration to your app

@oliverspryn
oliverspryn / fix-google-chrome.sh
Created February 20, 2020 20:46
Disables Google Chrome's First Run Experience
#!/bin/bash
adb shell 'echo "chrome --disable-fre --no-default-browser-check --no-first-run" > /data/local/tmp/chrome-command-line'
@stettix
stettix / things-i-believe.md
Last active July 10, 2025 04:42
Things I believe

Things I believe

This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.

Agree? Disagree? Feel free to let me know at @JanStette.

Fundamentals

Keep it simple, stupid. You ain't gonna need it.

@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active July 22, 2025 01:37
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S