Skip to content

Instantly share code, notes, and snippets.

View hackur's full-sized avatar

Jeremy Sarda hackur

  • Las Vegas, NV
  • 07:34 (UTC -07:00)
View GitHub Profile
@hackur
hackur / README.md
Created May 18, 2016 18:08 — forked from denji/README.md
Remove WebStorm; PhpStorm; PyCharm; RubyMine; AppCode; CLion, IntelliJ; 0xDBE10 settings and CLI-Links from Mac OSX

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
@hackur
hackur / demo.base.js
Created August 26, 2016 01:08 — forked from billdwhite/demo.base.js
d3 Multi Flow Container Demo
d3.demo = {};
d3.demo.currentScale = 1;
d3.demo.app = function() {
"use strict";
var width = 600,
height = 900,
margin = {top: 0, right: 0, bottom: 0, left: 0},
base = null,
@hackur
hackur / wallaby.js
Created August 26, 2016 08:51 — forked from ArtemGovorov/wallaby.js
Wallaby.js config for ng-cli generated project. The config file needs to be in the project root. Works faster with Electron runner: https://wallabyjs.com/docs/integration/electron.html
module.exports = function (wallaby) {
const compilerOptions = require('./src/tsconfig.json').compilerOptions;
compilerOptions.noEmitOnError = false;
return {
files: [
{pattern: 'node_modules/es6-shim/es6-shim.js', instrument: false},
{pattern: 'node_modules/systemjs/dist/system-polyfills.js', instrument: false},
{pattern: 'node_modules/reflect-metadata/Reflect.js', instrument: false},
// scss-lint:disable QualifyingElement, DuplicateProperty
// Reboot
//
// Global resets to common HTML elements and more for easier usage by Bootstrap.
// Adds additional rules on top of Normalize.css, including several overrides.
// Reset the box-sizing
//
@hackur
hackur / Laravel-Infyom-Scaffold-All-Existin-Tables-In-Database.php
Created November 26, 2016 08:05
Laravel-Infyom-Scaffold-All-Existin-Tables-In-Database.php
<?php
collect($results)->pluck('Tables_in_DATABASENAME')->each(function($table){
system('php artisan infyom:scaffold '.$table.' --fromTable --tableName='.$table);
});
@hackur
hackur / useful-macos-sierra-commands.zsh
Last active June 17, 2017 09:17
Useful MacOS Sierra Commands
# DON'T BE STUPID
# THIS SCRIPT IS NOT MEANT TO BE RUN ALL AT ONCE
# DO NOT RUN ANY OF THESE COMMANDS UNLESS YOU KNOW WHAT YOU'RE DOING
# These are some commands I freqently find myself using. I'm saving them here for my own reference.
# Check the current status of System Integrity Protection (SIP)
csrutil status
# Reset Permissions on MacOS Sierra the same way you used to with previous versions of OS X.
@hackur
hackur / getBlockLists.sh
Created June 10, 2017 09:00 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@hackur
hackur / Aircrack Commands
Created June 17, 2017 02:00 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
@hackur
hackur / raspberry-pi-config.sh
Created July 29, 2017 12:25 — forked from lamberta/raspberry-pi-config.sh
Useful settings for my Raspberry Pi.
# Finish headless installation via `ssh pi@192.168.2.x`
# See /boot/config.txt
sudo apt-get update && sudo apt-get --purge dist-upgrade
sudo raspi-config
# Add locale en.us-utf8 (but keep en.gb-utf8)
sudo dpkg-reconfigure locales
# Timezone
sudo dpkg-reconfigure tzdata
# Update firmware
@hackur
hackur / advancedsettings.xml
Created August 16, 2017 16:24 — forked from SimpleHomelab/advancedsettings.xml
AdvacedSettings.xml for Kodi with MySQL and other tweaks.
<!-- General Settings -->
<advancedsettings>
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging -->
<playcountminimumpercent>95</playcountminimumpercent>
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) -->
<nodvdrom>true</nodvdrom>
<!-- MySQL Library -->
<videodatabase>
<type>mysql</type>