Skip to content

Instantly share code, notes, and snippets.

Edik Bulikyan lnked

Block or report user

Report or block lnked

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
@lnked
lnked / fix-homebrew-npm.md
Created Jul 25, 2019 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew
View fix-homebrew-npm.md

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@lnked
lnked / mapOrder.js
Created Mar 22, 2019 — forked from ecarter/mapOrder.js
Order an array of objects based on another array order
View mapOrder.js
/**
* Sort array of objects based on another array
*/
function mapOrder (array, order, key) {
array.sort( function (a, b) {
var A = a[key], B = b[key];
@lnked
lnked / Readme.markdown
Created Jan 29, 2019 — forked from mat/Readme.markdown
apple-app-site-association —with examples
View Readme.markdown

“apple-app-site-association” file

One file for each domain, both www.example.com and example.com need separate files:

{
    "applinks": {
        "apps": [],
        "details": {
            "9JA89QQLNQ.com.apple.wwdc": {
@lnked
lnked / 8x1080.md
Created Dec 27, 2018 — forked from epixoip/8x1080.md
8x Nvidia GTX 1080 Hashcat Benchmarks
View 8x1080.md
View minimal-analytics-snippet.js
(function (history, trackingId, options) {
const generateId = () => {
return '_' + Math.random().toString(36).substr(2, 9);
};
const getId = () => {
if (!localStorage.cid) {
localStorage.cid = generateId()
}
return localStorage.cid;
};
View classes.ts
export interface S {
styler: (css: any) => string;
bind: (css: any) => any;
}
export const classes: S = {
styler: (css, ...args: any[]): string => {
const r: string[] = []
if (args.length) {
@lnked
lnked / kali_osx_persistence_wifi.md
Created Sep 11, 2018 — forked from widdowquinn/kali_osx_persistence_wifi.md
Kali Linux Live USB with persistence and wireless on Macbook Pro
View kali_osx_persistence_wifi.md

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.

View classes.ts
export interface S {
bind: (css: any, args: Array<any>) => string;
styler: (css: any) => void;
}
export const classes: S = {
styler: (css, ...args: Array<any>): string => {
const r: Array<string> = []
if (args.length) {
View keycode
handleKeypressName(e) {
const regexp = /[^A-Za-z -]/;
e = e || window.event;
const charCode = (typeof e.which == "number") ? e.which : e.keyCode;
const typedChar = String.fromCharCode(charCode);
const matched = !(regexp.test(typedChar));
if (!matched) {
e.preventDefault();
You can’t perform that action at this time.