Skip to content

Instantly share code, notes, and snippets.

View bmulholland's full-sized avatar

Brendan Mulholland bmulholland

View GitHub Profile
@bmulholland
bmulholland / lpass-fields-export.sh
Last active February 10, 2023 16:04
Export Lastpass field data, which they are currently holding hostage. Requires the lastpass cli. Will include lots of noise; manual parsing will be needed.
#!/bin/bash
# Inspired by https://github.com/mindrunner/lastpass-attachment-exporter
filename="lastpass-fields-export.txt"
# Clear the file first
echo "" > $filename
echo -n "Checking accounts"
@bmulholland
bmulholland / gist:1c28662f5f8f42242744
Created March 13, 2015 00:09
undefined method [] for nil:nilclass
# class 1
class Filter < ActiveRecord::Base
has_many :filter_texts, class_name: "Filter::Text"
def initialize
self.filter_texts
end
end
# class 2
//
// ViewController.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
#import "ViewController.h"
#import "AppDelegate.h"
//
// ViewController.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
#import "ViewController.h"
#import "AppDelegate.h"
//
// ViewController.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
#import "ViewController.h"
#import "AppDelegate.h"
//
// ViewController.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
#import "ViewController.h"
#import "AppDelegate.h"
//
// AppDelegate.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
#import "AppDelegate.h"
//
// ViewController.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
#import "ViewController.h"
#import "AppDelegate.h"
@bmulholland
bmulholland / gist:3941325
Created October 23, 2012 20:28
iOS6 Keyboard Weirdness
// AppDelegate.m
//
// AppDelegate.m
// Test
//
// Created by Brendan Mulholland on 2012-10-23.
// Copyright (c) 2012 Brendan Mulholland. All rights reserved.
//
// NOTE: This is all inherited code and I'd like to change as little as possible right now
// Parent class info
@interface OptionViewController : UITableViewController
// This is called when the right bar button is touched
- (void)nextStep
{
OptionPage* nextStep = [self nextOptionPage];
AppDelegate* appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];