Skip to content

Instantly share code, notes, and snippets.

View thatbudakguy's full-sized avatar

Nick Budak thatbudakguy

  • San Francisco, CA
  • 18:23 (UTC -07:00)
View GitHub Profile
This file has been truncated, but you can view the full file.
@thatbudakguy
thatbudakguy / custom.js
Created September 13, 2017 17:55
Linfield primo-explore custom.js
(function(){
"use strict";
'use strict';
/************************************* BEGIN Bootstrap Script ************************************/
var app = angular.module('viewCustom', ['forceServicesPageAuth', 'toggleInstitutions']);
/************************************* END Bootstrap Script ************************************/
@thatbudakguy
thatbudakguy / context.json
Last active May 23, 2017 18:03
accessceramics context.json
{
"@context": [{
"sc": "http://iiif.io/api/presentation/2#",
"iiif": "http://iiif.io/api/image/2#",
"dcterms": "http://purl.org/dc/terms/",
"dctypes": "http://purl.org/dc/dcmitype/",
"vra": "http://purl.org/vra/",
"title": {
"@id": "dcterms:title"
},
@thatbudakguy
thatbudakguy / templateCache.json
Last active April 25, 2017 19:11
Primo new UI templateCache dump
{
"components/infra/formBuilder/field/form-field-radio.html": "<md-input-container layout=\"row\" layout-align=\"start start\">\r\n <md-radio-group ng-model=\"$ctrl.formData[$ctrl.field.name]\"\r\n \t\t\t layout=\"{{$ctrl.field.style && $ctrl.field.style.layout ? $ctrl.field.style.layout : 'row'}}\"\r\n \t\t\t layout-align=\"start start\" >\r\n <p ng-if=\"$ctrl.field.label\" class=\"label flex\" for=\"prm_{{$ctrl.field.label}}\" translate=\"{{$ctrl.field.label}}\"></p>\r\n <div {{$ctrl.field.style && $ctrl.field.style.layout === 'column' ? 'flex' : ''}}\r\n \tlayout=\"row\" layout-align=\"start center\" \r\n \tclass=\"layout-align-start-center layout-row \r\n \t\t{{$ctrl.field.style && $ctrl.field.style.layout === 'column' ? 'flex' : ''}}\"\r\n \tng-repeat=\"option in $ctrl.field.options\">\r\n \r\n\t <md-radio-button value=\"{{option.value}}\"\r\n\t \t\t\t\t (click)=\"$ctrl.field.events.onClick($ctrl.field.events.params)\" >\
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@thatbudakguy
thatbudakguy / hostapd.conf
Last active March 29, 2022 12:49
hostapd configuration for a 5ghz wireless network.
interface=(INTERFACE HERE)
driver=nl80211
ssid=(SSID HERE)
hw_mode=a
channel=36
country_code=US
ignore_broadcast_ssid=0
wpa=2
@thatbudakguy
thatbudakguy / initSoftAP.sh
Created February 23, 2017 22:02
shell script to start a wireless access point using hostapd and dnsmasq.
#!/bin/bash
#Initial wifi interface configuration
ifconfig $1 up 10.0.0.1 netmask 255.255.255.0
sleep 2
###########Start dnsmasq, modify if required##########
if [ -z "$(ps -e | grep dnsmasq)" ]
then
dnsmasq
fi