Skip to content

Instantly share code, notes, and snippets.

View NullDev's full-sized avatar
:octocat:
(◕‿◕)

Chris NullDev

:octocat:
(◕‿◕)
View GitHub Profile
@NullDev
NullDev / 1-README.md
Last active May 9, 2023 00:50
Auto-Skip Amazon Video Ads / Promos

Auto-Skip for Amazon Video Ads / Promos

You just want to binge your show but Amazon interrupts your experience with those annoying promos between the episodes?
LOOK NO FURTHER

This script saves you some clicks and automatically skips those promos for you.

How to install

@NullDev
NullDev / README.md
Created January 16, 2020 14:42
Check if a windows binary (.exe) was compiled for 32 Bit or 64 Bit (useful for wine)

About

This script checks whether a windows binary (.exe file) was compiled ro 32 Bit or 64 Bit. If you mess around with Wine / PlayOnLinux a lot, this could be useful.

Usage

Making the script executable

@NullDev
NullDev / LICENSE.md
Last active August 18, 2021 21:16
This MIT License applies to all of my public gist's located at https://gist.github.com/NullDev - unless an individual gist states otherwise

MIT License

Copyright (c) NullDev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@NullDev
NullDev / StarRating.css
Last active March 27, 2023 12:55
CSS Star rating System - Percentage Based, CSS Only Star rating System
.rating {
unicode-bidi: bidi-override;
color: #c5c5c5;
font-size: 25px;
height: 25px;
width: 100px;
margin: 0 auto;
position: relative;
padding: 0;
text-shadow: 0px 1px 0 #a2a2a2;
@NullDev
NullDev / pagination.md
Last active April 25, 2018 12:59
Pagination Example

JS:

/* -- Pagination -- */
var currPage = 1;
var numsPerPage = 6;

$(document).ready(function(){
    $("div.content-single").hide();
    $("div.content-single:lt(" + numsPerPage + ")").show();
@NullDev
NullDev / decoder.js
Last active April 14, 2018 16:13
Decode Syrapt0r's "my final note.txt" file by bitshifting it. See: http://code17.wikia.com
"use strict";
let path = require("path");
let fs = require("fs");
////////////////////////////////
//----------------------------//
// Copyright (c) 2018 NullDev //
//----------------------------//
////////////////////////////////
@NullDev
NullDev / vc-fix.md
Last active April 27, 2018 12:52
Visual Composer iPad height fix

This is a (temporary fix) for visual composer messing up heights of grid elements on iPads.
Basically, visualcomposer just parses the device width and height very sloppy.
this results in a height property like this:

element {
    height: 314x301;
}
@NullDev
NullDev / dev_tools_detect.md
Last active November 26, 2020 16:46
Hack to detected whether the developer tools of the browser are open

UPDATE:

This does not work on recent versions of Chrome and FireFox!


This is a hack to detected whether the developer tools of the browser are open or closed. It also works if the development tools are not docked.

HTML Code:

@NullDev
NullDev / jsfiddle_DOM.md
Last active December 14, 2017 08:35
jsfiddle console.log to DOM

HTML:

<div id="t"></div>

JS:

var console={log:function(t){document.getElementById("t").innerHTML+=t+""}};
@NullDev
NullDev / Stackoverflow-Snippets.md
Created November 27, 2017 20:39
Useful Stackoverflow formatting snippets

Button

Code:

<kbd>**[Live Demo](http://jsfiddle.net/)**</kbd>

Preview:

Screenshot