Skip to content

Instantly share code, notes, and snippets.

View jblyberg's full-sized avatar
⛩️
Namaste.

John Blyberg jblyberg

⛩️
Namaste.
View GitHub Profile
@jblyberg
jblyberg / index.html
Last active April 3, 2023 01:59
Modal with Script
<div class="container">
<h2>Bootstrap - Modal Testing</h2>
<div class="row text-center">
<h3>The Basic Modal</h3>
<a href="#" class="btn btn-lg btn-success" data-toggle="modal" data-target="#basicModal">Click to open Modal</a>
</div>
</div>

Keybase proof

I hereby claim:

  • I am jblyberg on github.
  • I am jblyberg (https://keybase.io/jblyberg) on keybase.
  • I have a public key whose fingerprint is 5B2E 31DB 0752 8BFB 1334 A06B 38A1 052F 9F15 5390

To claim this, I am signing this object:

@jblyberg
jblyberg / Plugin.php
Created April 26, 2017 17:59
Updated MoxieManager Laravel authenticator for Laravel 5.3 - 5.4
<?php
// Issue with previous plugin because \Illuminate\Session\Middleware\StartSession has been moved to the
// web middleware group. Session has to be explicitly started.
class MOXMAN_LaravelAuthenticator_Plugin implements MOXMAN_Auth_IAuthenticator
{
public function __construct()
{
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
{"version":1,"resource":"file:///Users/jblyberg/code/workbench/SipTwo/src/lib/helpers/DateTimeHelpers.ts","entries":[{"id":"zvjk.ts","timestamp":1650555266423},{"id":"TZDZ.ts","timestamp":1650555728841}]}
@jblyberg
jblyberg / syncLocalSettings.json
Last active November 18, 2019 14:54
VSCode sync settings global config. Goes in ~/Library/Application Support/Code/User
{
"ignoreUploadFiles": [
"state.*",
"syncLocalSettings.json",
".DS_Store",
"sync.lock",
"projects.json",
"projects_cache_vscode.json",
"projects_cache_git.json",
"projects_cache_svn.json",
@jblyberg
jblyberg / disable.sh
Last active December 2, 2019 22:33
Disable bunch of #$!@ in Catalina
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
@jblyberg
jblyberg / FormState.js
Last active January 17, 2020 19:56
Form state tracker for use with Vue components using Vue composition API (or Vue 3)
import { computed } from '@vue/composition-api';
import { isEqual } from 'lodash';
export default class FormState {
constructor() {
this.initialFormVals = {};
this.formVals = {};
this.loading = true;
this.submitted = false;
@jblyberg
jblyberg / module-development-workflow.md
Created February 2, 2021 13:26 — forked from alanbsmith/module-development-workflow.md
A suggested module development workflow

Module Development Workflow

Overview

This is a suggested workflow for building npm modules locally. The particular context will be focused on building a React component lib, but the workflow can be applied for any npm module.

Linking

yarn link is a really great tool for local development. It builds a global npm module that is symlinked to your local repo. So when you make a change to the repo, the global module is automatically updated.