Skip to content

Instantly share code, notes, and snippets.

View glennblock's full-sized avatar

Glenn Block glennblock

View GitHub Profile
@glennblock
glennblock / fork forced sync
Created March 4, 2012 19:27
Force your forked repo to be the same as upstream.
git fetch upstream
git reset --hard upstream/master
@glennblock
glennblock / gist:5744999
Created June 9, 2013 20:07
Configure npm to not require sudo for local or global modules. Warning this does enable all files in usr/local/bin to run as super user.
user=`whoami`
# if installing node directly
sudo chown -R $user /usr/local/bin
sudo chown -R $user /usr/local/lib/node_modules
# if using nvm
sudo chown -R $user ~/.npm

Keybase proof

I hereby claim:

  • I am glennblock on github.
  • I am gblock72 (https://keybase.io/gblock72) on keybase.
  • I have a public key ASCg2xsMsnnXRJ2zNTuVVlI5HV7uC2dr8A_p_Dk7HS4FZAo

To claim this, I am signing this object:

<?xml version='1.0' encoding='UTF-8'?>
<results preview='0'>
<meta>
<fieldOrder />
</meta>
<messages>
<msg type="DEBUG">Configuration initialization took 27ms for /Applications/Splunk/etc</msg>
<msg type="DEBUG">base lispy: [ AND github ]</msg>
<msg type="DEBUG">search context: user="admin", app="search", bs-pathname="/Applications/Splunk/etc"</msg>
</messages>
@glennblock
glennblock / scriptcs-vscode-debugging.md
Last active January 19, 2021 17:51
Debugging with scriptcs in VS Code

scripts debugging in VS Code!

Pre-requisites

  1. Install latest mono here (don't use brew) http://www.mono-project.com/docs/getting-started/install/mac/
  2. Clone the dev branch of scriptcs or download from here
  3. Run brew_build.sh in the scriptcs folder this will build the scriptcs binaries into scriptcs\artifacts
  4. Install Visual Studio Code.
  5. Open VS code and install the Mono Debug extension.

Debugging

@glennblock
glennblock / books.json
Created September 7, 2020 15:50 — forked from nanotaboada/books.json
A sample collection of books in JSON format
{
"books": [
{
"isbn": "9781593275846",
"title": "Eloquent JavaScript, Second Edition",
"subtitle": "A Modern Introduction to Programming",
"author": "Marijn Haverbeke",
"published": "2014-12-14T00:00:00.000Z",
"publisher": "No Starch Press",
"pages": 472,
@glennblock
glennblock / posts.js
Last active July 9, 2020 14:52
Embeded gist syntax for Ghost. Place in ./core/server/api/posts.js.
//the code below will embed replace [gist id=x] tags with an embedded gist similar to the way the Wordpress Gist
//plugin works. I wrote this in order to import posts from Wordpress. See //GB: for the changes.
// **takes:** filter / pagination parameters
browse: function browse(options) {
options = options || {};
// **returns:** a promise for a page of posts in a json object
//return dataProvider.Post.findPage(options);
return dataProvider.Post.findPage(options).then(function (result) {
@glennblock
glennblock / Jobs.md
Last active April 27, 2020 05:47
Job search resources for women in Washington

Health Insurance

The first concern I had when leaving my work was health insurance. Online resources are not very clear, but of course my first stop was checking out the Healthcare marketplace and figure out my insurance budget. Then I found out here in WA there are insurance brokers (paid by the state) that can guide you through the best options. When I spoke with an insurance broker they gave me quotes for 2-3 providers, but also mentioned Apple Health, which is free insurance provided by the state. Apple Health is based on current income (and savings, like in my case, do not count as income), so if one makes under a certain amount of money they are eligible for this free insurance, which includes health, dental, and vision.

Right now, online resources outside of LinkedIn are very important. I find LinkedIn to be good for general networking or looking for job postings, but as a woman I have seen too many misogynistic

alias fixvpn="sudo route -n flush && sudo networksetup -setv4off Wi-Fi && sudo networksetup -setdhcp Wi-Fi"
var logger = require('@iopipe/logger');
var iopipe = require('@iopipe/iopipe')(
{
token: module.webtask.secrets.iopipe,
plugins: [logger({ enabled: true })]
}
);
var handler = iopipe(
(event, context, callback) => {
execute(event, context, callback);