Skip to content

Instantly share code, notes, and snippets.

View cloaked-ninja's full-sized avatar

btcNinja cloaked-ninja

  • working on it ;)
  • nexus
View GitHub Profile
@cloaked-ninja
cloaked-ninja / VFRemoteObject.html
Created February 7, 2017 22:18 — forked from karanrajs/VFRemoteObject.html
A Visualforce page to demonstrate the functionality of Visualforce Remote Objects
<!---
@author : Karanraj
@Description : A Visualforce page to demonstrate the functionality of Remote Objects
-->
<apex:page showHeader="false" standardStylesheets="false">
<!-- Boostrap and jQuery file -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" />
@cloaked-ninja
cloaked-ninja / loadCurrentUserInfo
Created March 1, 2017 18:34
Get User Info for SharePoint form
// Auto Load current user login (SharePoint 2010), then fills out form with user
// used in SharePoint forms program but most of code should work outside of this program
// fd.field variables are specific to SP forms.
// SP Forms : http://spform.com/
SP.SOD.executeOrDelayUntilScriptLoaded((function () {
var ctx = new SP.ClientContext.get_current();
var web = ctx.get_web();
ctx.load(web);
var user = web.get_currentUser();
@cloaked-ninja
cloaked-ninja / hide_linkedin_ads.txt
Last active March 31, 2018 08:35 — forked from jhult/hide_linkedin_ads.txt
Hide LinkedIn Ads - Adblock Filters
! Ad Banner
linkedin.com##.ad-banner-container
! Navigation - Try Premium for Free
linkedin.com##.nav-item__try-premium
! Homepage Feed - Like article / Like and comment
linkedin.com##LI.member-comment-share
linkedin.com##LI.member-like-share
linkedin.com##LI.member-like-poncho-post
<div id='calendar'></div>
@cloaked-ninja
cloaked-ninja / gist:866585135d8bfa5b4e7c55f481602165
Created December 19, 2019 03:44 — forked from vmassol/gist:7773408
JIRA Groovy Script to update Filters
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.bc.filter.SearchRequestService
import com.atlassian.jira.bc.JiraServiceContext
import com.atlassian.query.*
import com.atlassian.jira.bc.JiraServiceContextImpl
def cm = ComponentManager.getInstance()
def searchRequestService = cm.getSearchRequestService()
def authenticationContext = cm.getJiraAuthenticationContext()
def searchService = cm.getSearchService()
@cloaked-ninja
cloaked-ninja / patched-install.js
Created December 24, 2019 20:57
Get around Node.js / node-gyp errors. After trying everything I could think of, I came across this snippet and wanted to share it. Taken from https://github.com/nodejs/help/issues/979#issuecomment-367827997
/*This problem is caused by the download function in the install.js file for node-gyp.
WORKAROUND: To force node-gyp to ignore self-signed certificate, you need to modify the download function so that the requestOpts Object includes the following variable:
rejectUnauthorized: false
The install.js file can be found here:
%APPDATA%\npm\node_modules\npm\node_modules\node-gyp\lib\install.js