This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(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]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SPXFrameScroller.h | |
// SmartyPix | |
// | |
// Created by Mike Bobiney on 8/23/11. | |
// Copyright 2011 Tap Through Apps LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]: |