Skip to content

Instantly share code, notes, and snippets.

erwin solihin ewwink

Block or report user

Report or block ewwink

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ewwink /
Last active Jul 29, 2019
Youtube Android APK Limit Bandwidth Usage by lowering max video quality
package defpackage;
import android.content.Context;
/* renamed from: dns */
public final class dns implements dju {
private final Context a;
private final dnr b;
public final /* synthetic */ Object c_() {
ewwink / query.sqlite
Created May 29, 2018
Firefox Delete URL History from places.sqlite by days, week, or month
View query.sqlite
-- open places.sqlite with sqlite2009 or your favorite editor then query:
-- Delete history older than 1 week
DELETE FROM moz_places WHERE datetime(last_visit_date / 1000000, 'unixepoch') < datetime('now', '-7 days')
DELETE FROM moz_historyvisits WHERE datetime(visit_date / 1000000, 'unixepoch') < datetime('now', '-7 days')
-- Delete history older than 1 month
DELETE FROM moz_places WHERE datetime(last_visit_date / 1000000, 'unixepoch') < datetime('now', '-1 month')
DELETE FROM moz_historyvisits WHERE datetime(visit_date / 1000000, 'unixepoch') < datetime('now', '-1 month')
ewwink / Javascript HTML5 Color Picker
Last active Jun 21, 2017
Create Javascript HTML5 Color Picker on any page to get CSS color value
View Javascript HTML5 Color Picker
javascript:(function(){function byId(id){return document.getElementById(id)};byId("colorPicker")||(document.body.innerHTML+='<div id="colorDiv"><input id="colorPicker" type="color">&nbsp;<input id="colorResult" type="text"></div>');byId("colorDiv").style.cssText="position: fixed;bottom: 0;background-color: #ddfc09;padding: 10px;border: 2px solid #ba734c;";byId("colorPicker").addEventListener("input",function(){byId("colorResult").value=byId("colorPicker").value})})();
// uncompressed version
(function() {
var byId = function(id) {
return document.getElementById(id)
if (!byId('colorPicker'))
document.body.innerHTML += '<div id="colorDiv"><input id="colorPicker" type="color">&nbsp;<input id="colorResult" type="text"></div>';
ewwink / ytdl.user.js
Last active May 29, 2017
Adds a link on youtube pages to download the video via proxy server (YouTube-Downloader)
View ytdl.user.js
// ==UserScript==
// @name Youtube Downloader
// @description Adds a link on youtube pages to download the video via proxy server.
// @author Sepehr Lajevardi <> modded by ewwink
// @namespace
// @version 1.1
// @license GPLv3 -
// @copyright Copyright (C) 2013, by Sepehr Lajevardi <>
ewwink / http_response_code.php
Created Feb 14, 2016
PHP Class for HTTP Response Status Codes
View http_response_code.php
* StatusCodes provides named constants for
* HTTP protocol status codes. Written for the
* Recess Framework (
* @author Kris Jordan
* @license MIT
* @package recess.http
View Detect Mobile Browser
if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|
ewwink / browser-user-agent-list
Created Feb 20, 2014
List Browser User agent
View browser-user-agent-list
Avant Browser/1.2.789rel1 (
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/ Safari/532.5
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/9.0.601.0 Safari/534.14
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/10.0.601.0 Safari/534.14
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.27 (KHTML, like Gecko) Chrome/12.0.712.0 Safari/534.27
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.24 Safari/535.1
Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.2 (KHT
ewwink / functions.php
Last active Dec 13, 2015
Simple Login / Authentication Integration eXtplorer with your PHP Application. eXtplorer is A PHP and JavaScript- based File Manager
View functions.php
// check if session ["credentials_extplorer"] present if not redirect to "login.php"
You can’t perform that action at this time.