Skip to content

Instantly share code, notes, and snippets.

@githubutilities
githubutilities / Uninstall-pkg.md
Last active May 6, 2024 01:55
Uninstall pkg manually in OS X

Mac Uninstall pkg Manually

  • using pkgutil
# list all your installed packages
pkgutil --pkgs

# show your package info
pkgutil --pkg-info 

Building Chrome V8 on Windows

In order to be able to build v8 from scratch on Windows for x64, please follow the following steps.

These instructions were updated to work with Windows 11 Build 10.0.22621, but this should also work on WInodws 10

NOTE: While the Chrome team does provide decent documentation, there are some nuances and other additional steps that must be done for v8 to compile on Windows.

Documentation:

@gruber
gruber / JavaScript Blacklist
Last active May 6, 2024 01:54
My list of blocked sites for use with Drew Thaler's JavaScript Blacklist extension for Safari (https://code.google.com/p/jsblacklist/downloads/list)
adclick.g.doubleclick.net, addthis.com, adgardener.com, adnxs.com, ads.pointroll.com, ads.shorttail.net, apture.com, bop.fm, cdn.taboolasyndication.com, chartbeat.com, chartbeat.net, d1.openx.org, doubleclick.net, doubleverify.com, exitjunction.com, fyre.co, getconnected.southwestwi-fi.com, googleadservices.com, gravity.com, grvcdn.com, imrworldwide.com, intellitxt.com, jetpackdigital.com, kontera.com, livefyre.com, luminate.com, meebo.com, moovmanage.com, outbrain.com, parsely.com, po.st, pointroll.com, pubmatic.com, quantserve.com, s.ppjol.net, scorecardresearch.com, serving-sys.com, sharethis.com, snap.com, superclick.com, taboola.com, taboolasyndication.com, tynt.com, wibiya.com, zergnet.com
@lemoogle
lemoogle / widget.js
Last active May 6, 2024 01:52
Sisense Funnel modified files. Widget.js Render function added zingchart.js at the start of d3-funnel.js
prism.registerWidget("funnel", {
name: "funnel",
family: "Column",
title: "Funnel",
iconSmall: "/plugins/funnelWidget/widget-24.png",
styleEditorTemplate: "/plugins/funnelWidget/styler.html",
style: {
isCurved: false,
@lemoogle
lemoogle / autosuggest_v1.0.js
Created August 25, 2015 07:23
Bookmarklets for IDOL OnDemand
javascript:(function(){
/*!
* description: Auto Suggestion Bookmarklet v1.0 using IDOL OnDemand's Expand Term v1.0 API & jQuery v1.11.0;
* author: Mahesh Kumar RP (mahesh-kumar.r-p@hp.com); Asia Pacific Information Analytics Sales Engineer;
* date: 25-April-2014;
* comments: Developed for IDOL OnDemand's Ultimate Hacker Challenge;
* tested: Works in FireFox v28.0, Google Chrome v34.0 & Internet Explorer v10.0;
* usage: select text box in website and click on the AutoSuggest bookmarklet to get suggestion from IOD repository;
*/
@romainl
romainl / vanilla-linter.md
Last active May 6, 2024 01:48
Linting your code, the vanilla way

Linting your code, the vanilla way

You may want a linter plugin to lint your code in Vim but you probably don't need it. At least try the built-in way before jumping on the plugin bandwagon.

Defining makeprg

autocmd FileType <filetype> setlocal makeprg=<external command>

This autocommand tells Vim to use <external command> when invoking :make % in a <filetype> buffer. You can add as many similar lines as needed for other languages.

@hjr3
hjr3 / e-commerce.md
Created April 3, 2012 05:35
Examples of RESTful API calls for E-commerce platforms

Examples of RESTful API calls for E-commerce platforms

These examples are type 3 RESTful API requests and responses. The JSON-HAL specification is used to implement HATEOAS.

Some of the examples are based on my work as architect of the RESTful API at http://www.hautelook.com. All proprietary information has been removed.

Relevant links

@benaubin
benaubin / Readme.md
Last active May 6, 2024 01:45
Click To Call Bookmarklet

Click to Call Bookmarklet

This bookmarklet calls the phone number in the next element clicked. If a phone number does not exist or is not valid, the user is then prompted to enter a valid phone number. This continues until the user enters a valid phone number, or cancels a prompt.

To install the bookmarklet, type this into your browser's address bar (note the javascript: part):

javascript:var%20script=document.createElement('script');script.src="https://cdn.rawgit.com/penne12/246dc4ca0d4db595fcfb07fd441ab513/raw/e2d6e480556d54f305c1619b177568dc488fc376/install-bookmarklet.js";script.type="text/javascript";document.body.appendChild(script);
(function() {
var lighthouse_token = '';
var base_url = "https://harmonypark.lighthouseapp.com";
var ticket_url = prompt("Ticket url?");
if (ticket_url === null) {
return;
}
@arijusg
arijusg / download-video.md
Last active May 6, 2024 01:45
Download stream video