Skip to content

Instantly share code, notes, and snippets.

@mib348
mib348 / mysql_cheat_sheet.md
Created January 17, 2024 15:54 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@mib348
mib348 / domains-ips-top-100k.csv
Created February 19, 2023 20:56
100k most popular domains with their first ip
We can't make this file beautiful and searchable because it's too large.
1,google.com,216.58.217.14
2,youtube.com,216.58.217.46
3,facebook.com,31.13.66.36
4,baidu.com,180.149.132.47
5,wikipedia.org,208.80.153.224
6,yahoo.com,206.190.36.45
7,google.co.in,216.58.217.35
8,twitter.com,104.244.42.129
9,amazon.com,54.239.26.128
10,qq.com,125.39.240.113
@mib348
mib348 / Take_Ownership_Advanced_Context_Menu.reg
Created April 30, 2022 13:35 — forked from AveYo/Take_Ownership_Advanced_Context_Menu.reg
Take_Ownership_Advanced_Context_Menu.reg
Windows Registry Editor Version 5.00
; Take_Ownership_Advanced_Context_Menu.reg by AveYo v2018-07-19
; =================================================================================================================================
; GAIN ACCESS: Inherit from parent: YES, Owner = current user, Owner Rights = Modify
; GAIN EXCLUSIVE ACCESS: Inherit from parent: NO, Owner = current user, Owner Rights = FullControl
; USERS GAIN EXCLUSIVE ACCESS FOR NEW FILES: Inherit from parent: NO, Owner = Authenticated Users, Owner Rights = FullControl
; CLEAR GAINED ACCESS: Inherit from parent: YES, Owner = Inherited or Administrators, Authenticated Users = Inherited or Modify
; =================================================================================================================================
; Single context menu entry added for files, folders (except C:\Windows etc.) and drives (except C:) with the 4 choices above
@mib348
mib348 / Datatable.php
Created December 8, 2021 04:12 — forked from webdevmatics/Datatable.php
Livewire datatable #livewire
<?php
namespace App\Http\Livewire;
use App\Product;
use Livewire\Component;
use Livewire\WithPagination;
class Datatable extends Component
{
@mib348
mib348 / spintax.php
Created March 25, 2021 12:57 — forked from irazasyed/spintax.php
PHP: Text Spinner Class - Nested spinning supported.
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
*
* @author Jason Davis - https://www.codedevelopr.com/
*
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
*
* Updated with suggested performance improvement by @PhiSYS.
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>
@mib348
mib348 / utility.css
Created April 26, 2020 13:38 — forked from JacobLett/utility.css
Utility CSS classes - grids, floats, clears, image replacement
/* --------------------------
Utility classes
-------------------------- */
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
.flush-c {text-align:center;}
.flush-l {text-align:left;}
.flush-r {text-align:right;}
.inlineList li {display:inline;list-style-type:none;}
@mib348
mib348 / gist:b5117395180ac19e62c10c612866c65d
Created April 26, 2020 13:37 — forked from JacobLett/gist:e80801c40c4b1aea154d
enque scripts and styles wordpress
function richwp_scripts_styles() {
wp_enqueue_style( 'richwp-style', get_stylesheet_uri(), '', '1.0', false );
wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr-2.6.1.min.js', '', '1.0', false);
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'plugins', get_template_directory_uri() . '/js/plugins.js', array('jquery'), '1.0', true);
}
add_action( 'wp_enqueue_scripts', 'richwp_scripts_styles' );
<?php
/**
* Enable shortcodes in widgets
*/
add_filter('widget_text', 'do_shortcode');
/**