Skip to content

Instantly share code, notes, and snippets.

View lnked's full-sized avatar
🧠
I may be slow to respond.

Edik Bulikyan lnked

🧠
I may be slow to respond.
View GitHub Profile
@lnked
lnked / 8x1080.md
Created December 27, 2018 07:48 — forked from epixoip/8x1080.md
8x Nvidia GTX 1080 Hashcat Benchmarks
@lnked
lnked / minimal-analytics-snippet.js
Created December 15, 2018 16:51 — forked from DavidKuennen/minimal-analytics-snippet.js
Minimal Analytics Snippet
(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;
};
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 September 11, 2018 14:56 — forked from widdowquinn/kali_osx_persistence_wifi.md
Kali Linux Live USB with persistence and wireless on Macbook Pro

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.

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) {
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();
@lnked
lnked / react-file-upload.js
Created March 19, 2018 01:11 — forked from AshikNesin/react-file-upload.js
Simple React File Upload
import React from 'react'
import axios, { post } from 'axios';
class SimpleReactFileUpload extends React.Component {
constructor(props) {
super(props);
this.state ={
file:null
}
@lnked
lnked / AsyncComponent.tsx
Created February 25, 2018 01:28 — forked from crucialfelix/AsyncComponent.tsx
TypeScript port of react-loadable
/**
* A port, cleanup and simplification of https://github.com/thejameskyle/react-loadable
* MIT License Copyright 2017 Chris Sattinger
*/
import React from "react";
export function Loading({ loading = true }) {
return loading
? <i className="fa fa-spinner fa-spin" aria-hidden="true" />
: null;
@lnked
lnked / MacOSXSierra:Brew+Apache+Mysql+PHPSwitcher+DNSMasq+SSL.md
Created January 29, 2018 00:28 — forked from andrewstobbe/MacOSXSierra:Brew+Apache+Mysql+PHPSwitcher+DNSMasq+SSL.md
Mac OSX Sierra : Brew Apache + Mysql + PHP Switcher + DNSMasq + SSL

Mac OSX Sierra : Brew Apache + Mysql + PHP Switcher + DNSMasq + SSL 👍

Things I had to do using Homebrew to get my local web dev environment back up and running after migration to OSX Sierra + Xcode 8.1.

Note: I used brew reinstall because I had already installed most of this previously under Yosemite. Probably better ways to do this, but this is what worked for me.

brew doctor

brew tap homebrew/dupes
brew tap homebrew/versions
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));