Skip to content

Instantly share code, notes, and snippets.

View Nappp's full-sized avatar

Nappp

  • planet Morph
View GitHub Profile
tell application "iTerm"
set isRunning to (application "iTerm" is running)
activate
tell current window
if (count of tabs) < 1 then
create window with default profile
set isRunning to false
#/bin/sh
if [ "$#" -ne 1 ]; then
echo
echo "Usage: \`./pkg-uninstall PKGNAME\`"
echo "Please use \`pkgutil --pkgs\` to find the package you want to remove"
echo
exit 1
fi
@Nappp
Nappp / README
Created March 17, 2016 13:29 — forked from rwest/README
Convert OS X Keychain exported entries into logins for 1Password import
These two files should help you to import passwords from mac OS X keychains to 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they
root@OpenWrt:~# opkg list
base-files - 118.2-r42647
busybox - 1.19.4-6
dnsmasq - 2.66-2
dropbear - 2011.54-2
firewall - 2013-06-29
freifunk-common - 1
freifunk-firewall - 3
hotplug2 - 1.0-beta-4
iptables - 1.4.10-5
src-git packages https://github.com/openwrt/packages.git
src-git routing https://github.com/openwrt-routing/packages.git
src-git luci https://github.com/openwrt/luci.git
src-git telephony http://git.openwrt.org/feed/telephony.git
src-git management https://github.com/openwrt-management/packages.git
@Nappp
Nappp / gist:9b06c85dd01dd0c7623a
Created October 2, 2015 17:58
LuCI 500 error
/usr/lib/lua/luci/template.lua:55: Failed to execute template 'freifunk/index'.
A runtime error occured: /usr/lib/lua/luci/template.lua:55: Failed to execute template 'header'.
A runtime error occured: /usr/lib/lua/luci/template.lua:55: Failed to execute template 'themes/bootstrap/header'.
A runtime error occured: [string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:78: attempt to index local 'boardinfo' (a nil value)
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:360: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:135: in function </usr/lib/lua/luci/dispatcher.lua:134>
Status: 500 Internal Server Error
/usr/lib/lua/luci/dispatcher.lua:360: Failed to execute function dispatcher target for entry '/'.
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D