Skip to content

Instantly share code, notes, and snippets.

View Cifro's full-sized avatar

Cifro Nix Cifro

View GitHub Profile
@Cifro
Cifro / reclaimWindows10.ps1
Created January 8, 2017 12:02 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@Cifro
Cifro / timer.html
Created August 23, 2016 13:41 — forked from shane-edmonds/timer.html
CSS Visual Spinner Countdown Timer
<!DOCTYPE html>
<html>
<head>
<style>
.circle-timer, .pie-timer {
width: 220px;
height: 220px;
position: relative;
box-shadow: #ccc 0 0 25px;
@Cifro
Cifro / bookmark.html
Last active November 27, 2018 06:03
FB Friends Ranking
<a href="javascript:(function()%7Bfunction%20creator(e,t,n)%7Bvar%20r=document.createElement(n);var%20i=document.createTextNode(t);r.appendChild(i);e.appendChild(r)%7Dfunction%20displayData(e)%7Bvar%20t=document.createElement(%22table%22);var%20n=document.createElement(%22thead%22);t.appendChild(n);var%20r=document.createElement(%22tr%22);creator(r,%22Name%22,%22th%22);creator(r,%22Score%22,%22th%22);n.appendChild(r);var%20s=document.createElement(%22tbody%22);t.appendChild(s);for(i=0;i&lt;e.length;i++)%7Bvar%20r=document.createElement(%22tr%22);creator(r,e%5Bi%5D%5B%22text%22%5D,%22td%22);creator(r,e%5Bi%5D%5B%22grammar_costs%22%5D%5B%22%7Buser%7D%22%5D,%22td%22);s.appendChild(r)%7Ddocument.body.innerHTML=%22%22;document.body.appendChild(t)%7Did=requireDynamic(%22Env%22).user;url=%22//www.facebook.com/ajax/typeahead/search/facebar/bootstrap/?viewer=%22+id+%22&amp;__a=1%22;x=new%20XMLHttpRequest;x.onreadystatechange=function()%7Bif(x.readyState==4&amp;&amp;x.status==200)%7Bsrr=JSON.parse(x.responseText.substr
<?php
/*
Plugin Name: Soliloquy Demo
Plugin URI: http://soliloquywp.com/
Description: Creates demo user and manages roles so Soliloquy can have a live demo.
Author: Thomas Griffin
Author URI: http://thomasgriffinmedia.com/
Version: 1.0.0
License: GNU General Public License v2.0 or later
License URI: http://www.opensource.org/licenses/gpl-license.php
@Cifro
Cifro / Storage.js
Last active December 17, 2015 00:39
Simple wrapper for localStorage, needs underscore.js
// needs underscore.js
Storage = function(key, defaults)
{
this.key = key;
this.defaults = defaults;
this.data = {};
};
Storage.prototype.load = function(what)
<?php
/**
* Plugin Name: T5 WP Load Order
* Description: Hooks into every action and creates a list of available variables, constants, functions, classes and files.
* Plugin URI:
* Version: 2012.11.05
* Author: Thomas Scholz
* Author URI: http://toscho.de
* Licence: MIT
* License URI: http://opensource.org/licenses/MIT
@Cifro
Cifro / gist:5304937
Last active December 15, 2015 18:38
vypoctove pravo
“Sme pripraveni na “vypoctove pravo”. Tzn. zadate pravnu otazku a system ju vdaka
analyze zakonov zodpovie. Casom budeme schopni aj vytvarat dokumenty,
ako napriklad zmluvy ci patenty, len zadanim zakladnych informacii”, Wolfram (Alpha)
Zdroj: http://turek.co/post/45014162595/zapisky-zo-sxsw-2013-aktualizovane
@Cifro
Cifro / AdminAjax.php
Last active December 15, 2015 13:38
Meta programming in WordPress here we go... Automatic registration of methods as wp_ajax_* hook callbacks via @wpajax annotation. No more manual listing hooks and callbacks in the old WP way
<?php
/**
* Registers all ajax hooks
* The method which suppose to be wp_ajax_* callback must have @WpAjax annotation
*/
public static function registerAjaxHooks()
{
$methods = get_class_methods(__CLASS__);
$r = new NClassReflection(__CLASS__);
@Cifro
Cifro / funception2.php
Last active December 11, 2015 22:18
Funception in PHP II. - We need go deeper
<?php
/**
* Funception in PHP II.
*/
function We(){
class need{
function need(){
$o = (object) null;
@Cifro
Cifro / funception-alternative-ending.php
Last active December 11, 2015 22:09
Funception in PHP - We need go deeper
<?php
/**
* Alterantive Funception in PHP
* All functions are in the global scope
*/
function We(){
echo "We ";
function need(){
echo "need ";