Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View philpalmieri's full-sized avatar
🏠
Working from home

Phil Palmieri philpalmieri

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am philpalmieri on github.
  • I am philpalmieri (https://keybase.io/philpalmieri) on keybase.
  • I have a public key ASBAZCba08-8T-i78vyNxnAnDjO9-aqV5ltATNJDBbIokgo

To claim this, I am signing this object:

///////////////////////////////
package.json
////////////////////////////////
"scripts": {
"fixlcov": "node fixlcov.js"
},
/////////////////////////////////
fixlcov.js
///////////////////////////////
@philpalmieri
philpalmieri / .vimrc
Last active March 6, 2020 12:25
.vimrc
call plug#begin('~/.vim/plugged')
Plug 'ohmyzsh/vi-mode'
Plug 'arcticicestudio/nord-vim'
Plug 'NLKNguyen/papercolor-theme'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/seoul256.vim'
Plug 'junegunn/vim-easy-align'
Plug 'zivyangll/git-blame.vim'
Plug 'junegunn/vim-easy-align'
{
"editor.minimap.enabled": "false",
"workbench.sideBar.location": "right",
"window.menuBarVisibility": "toggle",
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Material Theme",
"materialTheme.fixIconsRunning": false,
"workbench.iconTheme": "eq-material-theme-icons",
"window.zoomLevel": 1
}
Ubuntu has stopped shipping L2TP over IPSec support for Ubuntu since Precise. A workaround for this exists using network-manager-l2tp.
First you must install the prerequisites:
sudo apt install intltool
sudo apt install libtool
sudo apt install network-manager-dev
sudo apt install libnm-util-dev
sudo apt install libnm-glib-dev
sudo apt install libnm-glib-vpn-dev

Keybase proof

I hereby claim:

  • I am philpalmieri on github.
  • I am philpalmieri (https://keybase.io/philpalmieri) on keybase.
  • I have a public key ASDi1hLVJ-XjxFpOlSevTaI6znJIzGs-mLhAU69kn9NXRAo

To claim this, I am signing this object:

@philpalmieri
philpalmieri / open-links-in-new-tab-with-analytics.js
Last active April 6, 2018 16:36 — forked from hutch78/open-links-in-new-tab-with-analytics.js
PCOMM - Open links and files in new tab, fire analytics event
@philpalmieri
philpalmieri / currencies.json
Created February 1, 2018 21:49 — forked from mlvea/currencies.json
Common currencies as an array
[
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@philpalmieri
philpalmieri / testMocks.js
Created January 25, 2018 22:20 — forked from quitschibo/testMocks.js
How to mock jQuery calls with Jasmine. Just some examples ;)
describe('Mock jQuery calls with Jasmine', function() {
it('how to mock $("test").show()', function() {
// mock the call
spyOn($.fn, 'show').andCallFake(function() {
return true;
});
// now we can call the mock
result = $("test").show();
@philpalmieri
philpalmieri / gist:e14c200a28189f4732afb6876016c369
Created January 25, 2018 13:40
Mocking custom analyitcs handler in Node with Sinon
import { Analytics } from './../src/Analytics';
import * as mocha from 'mocha';
import * as chai from 'chai';
const sinon = require('sinon');
const analytics = require('universal-ga');
const expect = chai.expect;
const fakeId = 'ABC-123-XYZ';