Skip to content

Instantly share code, notes, and snippets.

View mikebob's full-sized avatar

Mike Bobiney mikebob

View GitHub Profile
@mikebob
mikebob / rudolfs-dark-auto.omp.json
Created August 10, 2024 15:38
oh-my-posh config incl auto update flag
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"auto_upgrade": true,
"disable_notice": true,
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#BF231D",
/*
Copyright (c) 2021 Mike Bobiney
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mikebob
mikebob / userChrome.css
Created April 8, 2020 16:01
For customizing the appearance of Firefox browser
/* Smaller search button paddings */
.search-one-offs {
padding-top: 6px !important;
padding-bottom: 7px !important;
}
/* Disable Megabar Animation */
#urlbar[breakout][breakout-extend][breakout-extend-animate] > #urlbar-background {
animation-name: none !important;
animation: none !important;
@mikebob
mikebob / TTAPaymentAuthSnippet.m
Last active August 29, 2015 14:06
Apple Pay PaymentAuth Snippet
// Gathered from the iOS 8 Documentation & examples on https://github.com/stripe/stripe-ios
// Apple Pay avialable October 2014
if([PKPaymentAuthorizationViewController canMakePayments])
{
NSDecimalNumber *amonut = [NSDecimalNumber decimalNumberWithString:@"3.99"]
PKPaymentRequest *paymentRequest = [PKPaymentRequest new];
PKPaymentSummaryItem *totalItem = [PKPaymentSummaryItem summaryItemWithLabel:@"Swiss Cheeze" amount:amount];
[paymentRequest setMerchantIdentifier:YOUR_MERCHANT_ID];
@mikebob
mikebob / MacSetup
Last active December 29, 2015 15:48
#!/usr/bin/env bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@mikebob
mikebob / FramingViewController.m
Created October 24, 2011 11:38
ViewController snippet from Smarty Pix
-(void)closeFramingView
{
NSFileManager *fileManager= [NSFileManager defaultManager];
if(![fileManager fileExistsAtPath:USER_PICS_DIRECTORY])
if(![fileManager createDirectoryAtPath:USER_PICS_DIRECTORY withIntermediateDirectories:YES attributes:nil error:NULL])
NSLog(@"Error: Create folder failed %@", USER_PICS_DIRECTORY);
NSString *pngPath = [NSString stringWithFormat:@"%@%@.png",
USER_PICS_DIRECTORY, [UserPrefsHandler UserPicFileName]];
@mikebob
mikebob / SPXFrameScroller.h
Created October 24, 2011 11:27
Custom UIScrollView that supports pinch and double tap zooming
//
// SPXFrameScroller.h
// SmartyPix
//
// Created by Mike Bobiney on 8/23/11.
// Copyright 2011 Tap Through Apps LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@mikebob
mikebob / .bashrc
Created April 18, 2011 15:44 — forked from justintv/.bashrc
export PS1="\u@\W[\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)]: "
# For those of us who occasionally forget to change their branches
# This will change your prompt to display not only your working directory but also your current git branch, if you have one.
# Example
# user@directory[branch]: