Skip to content

Instantly share code, notes, and snippets.

@johnss
johnss / unzip.php
Created January 16, 2017 15:46
Unzip
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UnZIP</title>
<meta name="robots" content="noindex,nofollow">
<body>
<div style="text-align:center; font-family:verdana; font-size:12px; margin-top:20px;">
<div style="text-align:center; font-weight:bold; padding:15px; background:#eee; font-size:14px;"><a href="unzip.php" style="color:#666;">UnZIP</a></div>
<?php
@johnss
johnss / anyvahyti.md
Created July 21, 2017 07:19
download videoweed

download videoweed

With Online Video Download, you can easily download audio and video from videoweed. Insanely fast & free. Learn how to download online video from any website with freeware. Download streaming videos free. Free download & how-to. I do not know much about VideoWeed. But I always download and save online videos and movies to my Mac with an amazing all-in-one third-party video downloader … You can watch Downloaded online for free on this page by streaming the movie in the video player above or by choosing a different version to play below it. 19/6/2017 · Videostream Chromecast: Mobile. 15,061. Team Videostream Video Players & Editor
@johnss
johnss / phar2zip.php
Last active August 17, 2017 15:53
PHAR to ZIP converter
<?php
$path='./composer.phar';
try {
$phar = new Phar($path);
$phar->convertToData(Phar::ZIP);
} catch (Exception $e) {
echo $e->getMessage();
}
@johnss
johnss / source.js
Created September 20, 2017 18:00
Javascript Source Viewer
var n=document.firstChild;while(n && n.nodeType!=Node.ELEMENT_NODE) n=n.nextSibling;document.write('<pre>' + n.outerHTML.replace(/&/g, '&amp;').replace(/</g, '<font color=\'#aa6600\'>&lt;').replace(/>/g, '&gt;</font>'));
@johnss
johnss / online.php
Created December 16, 2017 15:46
Online counter using session_save_path()
<?php
define("MAX_IDLE_TIME", 3);
class online{
function who(){
$path = session_save_path();
if (trim($path)=="") {
return FALSE;
@johnss
johnss / lunr_save.js
Created April 6, 2018 09:00 — forked from Fil/lunr_save.js
save lunr.js state
/*
* Paste this is the console to get an indexed JSON
*/
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
@johnss
johnss / webm2mkv.sh
Last active December 23, 2018 20:19
WEBM to MKV copy codec (original quality)
ffmpeg -i /name-of-the-video.webm -c copy /name-of-the-video.mkv
@johnss
johnss / functions.php
Created April 19, 2019 15:42
Wordpress Embed Add Openload
<?php
function wp_embed_handler_openload($matches, $attr, $url, $rawattr)
{
$embed = sprintf(
'<iframe src="https://openload.co/embed/%s" scrolling="no" frameborder="0" width="700" height="430" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true">></iframe>',
esc_attr($matches[1])
@johnss
johnss / ffmpeg.sh
Created May 23, 2019 15:43
Convert GIF to MP4 HQ or lossless
ffmpeg -i /file.gif -pix_fmt yuv420p /file.mp4
@johnss
johnss / gist:1ba9bf64827aff1452e704cb36851cf0
Created June 5, 2019 09:57 — forked from lopugit/gist:14f28b7e4db8225fcff32b990c19a2bb
Delete large file from github history when dealing with remote rejected pre-receive hook declined Large files detected this exceeds GitHub's file size limit
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD