Skip to content

Instantly share code, notes, and snippets.

Noah Pivnick nopivnick

Block or report user

Report or block nopivnick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nopivnick
nopivnick / .gitignore
Created Jun 9, 2019
.gitignore for Jekyll sites built locally on macOS and hosted remotely on GitHub Pages
View .gitignore
# Ignore folders generated by Bundler
vendor
.bundle
# Ignore folders generated by Jekyll
_site
.sass-cache
.jekyll-metadata
# Ignore folders included in GitHub's default Jekyll .gitignore
@nopivnick
nopivnick / gist:0f0b47f55c74da002bacd498895ca0a7
Created Jan 7, 2018
$ nixnote2 sqlExec "Select * from DataStore where lid=1004"
View gist:0f0b47f55c74da002bacd498895ca0a7
$ nixnote2 sqlExec "Select * from DataStore where lid=1004"
DEBUG 2018-01-06 20:33:15.216 ( gui/shortcutkeys.cpp @ 246 ) Unable to open file for reading or file does not exist.
DEBUG 2018-01-06 20:33:15.216 ( gui/shortcutkeys.cpp @ 246 ) Unable to open file for reading or file does not exist.
ERROR 2018-01-06 20:33:15.217 ( exits/exitmanager.cpp @ 55 ) "Script filename is blank. Disabling exit " "ExitPoint_LoadNote"
ERROR 2018-01-06 20:33:15.217 ( exits/exitmanager.cpp @ 67 ) "Script file doesn't exist or cannot be read. Disabling exit " "ExitPoint_LoadNote"
ERROR 2018-01-06 20:33:15.217 ( exits/exitmanager.cpp @ 55 ) "Script filename is blank. Disabling exit " "ExitPoint_SaveNote"
ERROR 2018-01-06 20:33:15.217 ( exits/exitmanager.cpp @ 67 ) "Script file doesn't exist or cannot be read. Disabling exit " "ExitPoint_SaveNote"
ERROR 2018-01-06 20:33:15.217 ( exits/exitmanager.cpp @ 55 ) "Script filename is blank. Disabling exit " "ExitPoint_ImportKeep"
ERROR 2018-01-06 20:33:15.217 ( exits/exitmanager.cpp
@nopivnick
nopivnick / gist:8f6b19d58ae21401486f3c582e690068
Created Jan 7, 2018
NixNote2 message log post-download
View gist:8f6b19d58ae21401486f3c582e690068
DEBUG 2018-01-06 20:13:12.602 ( main.cpp @ 191 ) Program Home: "/usr/share/nixnote2/"
DEBUG 2018-01-06 20:13:12.602 ( main.cpp @ 192 ) Built on Oct 30 2017 at 02:16:47
DEBUG 2018-01-06 20:13:12.602 ( main.cpp @ 193 ) Built with Qt 5.5.1 running on 5.5.1
DEBUG 2018-01-06 20:13:12.603 ( main.cpp @ 253 ) Setting up NN
DEBUG 2018-01-06 20:13:12.613 ( nixnote.cpp @ 130 ) Looking for transaltions: "/usr/share/nixnote2/translations/nixnote2_en_US.qm"
DEBUG 2018-01-06 20:13:12.614 ( sql/databaseconnection.cpp @ 37 ) SQL drivers available: ("QSQLITE")
DEBUG 2018-01-06 20:13:12.616 ( sql/databaseconnection.cpp @ 64 ) *** SQLITE COMPILE OPTIONS ***
DEBUG 2018-01-06 20:13:12.616 ( sql/databaseconnection.cpp @ 66 ) "ENABLE_COLUMN_METADATA"
DEBUG 2018-01-06 20:13:12.616 ( sql/databaseconnection.cpp @ 66 ) "ENABLE_DBSTAT_VTAB"
DEBUG 2018-01-06 20:13:12.616 ( sql/databaseconnection.cpp @ 66 ) "ENABLE_FTS3"
@nopivnick
nopivnick / name-of-plugin.php
Created Oct 1, 2013
A .php proxy loader file for loading plugins that are nested in a directory inside /wp-content/mu-plugins.
View name-of-plugin.php
<?php
/**
* a proxy loader file to load the name-of-plugin in /wp-content/mu-plugins/name-of-plugin
*/
require_once (WPMU_PLUGIN_DIR.'/name-of-plugin/name-of-plugin.php');')
@nopivnick
nopivnick / ssh-reverse-persist.sh
Created Sep 26, 2013
A bash script for keeping a reverse SSH tunnel initiated by a machine behind a firewall persistent. If you wanted multiple tunnels (i.e., to multiple hosts) you might paramaterize this then have separate scripts named for each host (e.g., ssh-reverse-persist_host-1.sh, ssh-reverse-persist_host-2.sh) that called ssh-reverse-persist.sh.
View ssh-reverse-persist.sh
#!/bin/bash
createTunnel() {
/usr/bin/ssh -t -t -R 19999:localhost:22 user@example.com
if [[ $? -eq 0 ]]; then
echo Tunnel to example.com created successfully
else
echo An error occurred creating a tunnel to example.com RC was $?
fi
}
@nopivnick
nopivnick / gist:930361
Created Apr 20, 2011
gollum heartache 1.1
View gist:930361
C:\RubyDevKit>devkitvars.bat
Adding the DevKit to PATH...
C:\RubyDevKit>cd\
C:\>gem install albino --platform=ruby
Successfully installed albino-1.3.3
1 gem installed
Installing ri documentation for albino-1.3.3...
Installing RDoc documentation for albino-1.3.3...
@nopivnick
nopivnick / gist:922831
Created Apr 16, 2011
gollum heartache
View gist:922831
C:\RubyDevKit>devkitvars.bat
Adding the DevKit to PATH...
C:\RubyDevKit>cd\
C:\>gem install gollum --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing gollum:
ERROR: Failed to build gem native extension.
You can’t perform that action at this time.