Skip to content

Instantly share code, notes, and snippets.

View Faisalawanisee's full-sized avatar
🎯
Focusing

Faisal Khalid Faisalawanisee

🎯
Focusing
View GitHub Profile
@Faisalawanisee
Faisalawanisee / activate-plugin.php
Created August 10, 2018 09:39 — forked from solepixel/activate-plugin.php
Originally design to activate Andrew Norcross's Airplane Mode plugin (https://github.com/norcross/airplane-mode), this little script will allow you to activate a plugin when the WordPress admin plugin screen cannot be loaded, for whatever reason.
<?php
/**
* This file will activate the Airplane Mode plugin if not already activated. This is helpful when you do not have internet connection and you're unable to reach the WP Admin Plugins page to activate the plugin.
*/
// get WP bootstrap
define('WP_USE_THEMES', false);
require(__DIR__ . '/wp/wp-blog-header.php');
@Faisalawanisee
Faisalawanisee / unzip.php
Created August 10, 2018 09:46 — forked from solepixel/unzip.php
When load balancers have set timeouts at 30 seconds, this script will process requests that may take longer than 30 seconds (up to 15 minutes) without causing a timeout.
<?php
$cmd = "zip -9prv content_backup.zip .";
$pipe = popen($cmd, 'r');
if (empty($pipe)) {
throw new Exception("Unable to open pipe for command '$cmd'");
}
stream_set_blocking($pipe, false);
echo "\n";
<?php
$min_meta = $max_meta = [];
if(isset($_GET['min_date']) || $_GET['max_date']) {
if(isset($_GET['min_date'])) {
$min_meta = array(
'key' => 'min_date',
'value' => $_GET['min_date'],
'compare' => '='
@Faisalawanisee
Faisalawanisee / Engraving Source Code for Michael
Created August 27, 2018 09:28
Engraving Source Code for Michael - Just Replace "FORMID" with your form ID number and all is good to go.
<?php
add_filter('gform_pre_render_FORMID', 'populate_posts_FORMID');
function populate_posts_FORMID($form) {
?>
<script>
var flag = true;
var checkExist = setInterval(function () {
if (jQuery('form#gform_FORMID').hasClass('cart')) {
jQuery('.engraving_loader').remove();
@Faisalawanisee
Faisalawanisee / WP CRUD
Created September 26, 2018 12:44
WP CRUD
<?php
add_action( 'admin_init', 'nic_fi_names_install_db');
function nic_fi_names_install_db() {
global $wpdb;
$table_name = $wpdb->prefix.'nic_fi_names';
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) {
@Faisalawanisee
Faisalawanisee / torrent courses download-list
Last active February 12, 2019 15:35
torrent courses download-list
* Downloaded or downloading
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
  • Jeunet/caro (delicatessen, TS spivet, etc)
  • Pulp fiction
  • Cornetto's (Hot fuzz, shaun of the dead, etc)
  • Zombieland
  • District 9
  • Kill bill (1 & 2)
  • Grand budapest hotel
  • Reservoir dogs
  • Inglourious Basterds
  • ExistenZ
@Faisalawanisee
Faisalawanisee / top_100_anime_movies.md
Created September 27, 2018 16:24 — forked from bomberstudios/top_100_anime_movies.md
Top 100 Anime Movies Of All Time (from http://imgur.com/a/k2vwE)
  1. Colorful (2010) [T]

    Probably not the title that most people expected to see in the #1 slot. I urge everyone to give it a shot though. No other film has ever brought me through a greater spectrum of emotions. It's a supernatural film, but the characters are so well fleshed out and developed that they feel real. I've probably seen a hundred films since, but none have compared.

  2. Time of Eve (2010) [T]

Director: Yasuhiro Yoshiura - "Sometime in future Japan, androids have been involved in every aspect of peoples lives. One day, upon checking his android's behavioral log, Rikuo, a student, noticed his android's returning times have been odd recently. With his friend Masaki, they found out the place where his android, Sammy, have been visiting: a small cafe called Eve no Jikan where an

@Faisalawanisee
Faisalawanisee / movie_list.txt
Created September 27, 2018 16:24 — forked from FracKenA/movie_list.txt
Movie List
The 5th Wave
Alien: Covenant
Allied
The Amazing Spider-Man
The Amazing Spider-Man 2
American Assassin
American Made
Angry Birds
Argo
Arrival (2016)
*****2015*****
.The Hateful Eight (2015)
~Spectre (2015)
~The Martian (2015)
~The Grand Budapest Hotel (2014)
-Close Range (2015)
+The Stanford Prison Experiment (2015)
+The Divide (2011)
-Only God Forgives (2013)
+German Angst (2015)