Skip to content

Instantly share code, notes, and snippets.

View cecekpawon's full-sized avatar

@cecekpawon cecekpawon

View GitHub Profile
@cecekpawon
cecekpawon / pitchfolks.user.js
Last active August 29, 2015 14:06
PitchFolks: Pitchfork advanced ripper
(function () {
// ==UserScript==
// @name PitchFolks
// @namespace http://blog.thrsh.net
// @author daYOda (THRSH)
// @description Pitchfork advanced ripper
// @version 1.0
// @match http://pitchfork.com/advance/*
// @run-at document-start
// ==/UserScript==
@cecekpawon
cecekpawon / fd-heal.bat
Created July 18, 2015 11:10
Recover flashdrive files attributes - http://blog.thrsh.net
@echo off
set /p Drive=Enter drive letter + colon (eg. E:)
if EXIST "%Drive%" (
attrib -r -s -h /s /d "%Drive%\*.*"
set "Drive="
echo "Done :)"
) else (
echo "Error: Drive not exists!"
<?php
/*
Clear Cloudflare cache API
@cecekpawon - Fri Aug 14 10:16:39 2015
*/
class cloudflare_yod {
private $api = "https://www.cloudflare.com/api_json.html";
private $params = array("tkn"=>"", "email"=>"", "z"=>"");
private $token;
#!/bin/bash
# Simple workaround change MAMP PRO default MySQL data path
# http://stackoverflow.com/questions/4745822/mac-os-x-mysql-custom-database-path-mamp-pro
# @cecekpawon - https://blog.thrsh.net
# Start: EDIT
# Default MAMP PRO MySQL data path
mamppath="/Library/Application Support/appsolute/MAMP PRO/db"
mampsql="${mamppath}/mysql"
@cecekpawon
cecekpawon / hljs.user.js
Created January 11, 2016 03:26
hljs.user.js
(function () {
// ==UserScript==
// @name highlight.js bundle
// @namespace http://blog.thrsh.net
// @author daYOda (THRSH)
// @description Save & load highlight.js download bundle
// @version 1.0
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// @match https://highlightjs.org/download*
@cecekpawon
cecekpawon / style.css
Last active February 8, 2017 14:36
insanelymac - not to destroy your eyes
@namespace url(http://www.w3.org/1999/xhtml);
/*
insanelymac - not to destroy your eyes
@cecekpawon - Tue Feb 7 19:37:56 2017
Requirement:
- Firefox + Stylish (https://addons.mozilla.org/en-US/firefox/addon/stylish/)
- Safari / Chrome (please convert to userscript) + Tampermonkey (https://tampermonkey.net/)
*/
@-moz-document url-prefix('http://www.insanelymac.com/forum'),
@cecekpawon
cecekpawon / yod-OzTheme.php
Last active August 7, 2017 21:11
Parse Ozmosis theme data.
#!/usr/bin/php
<?php
# Ozmosis theme (un)packer.
# @cecekpawon: Sun Aug 6 19:26:08 2017
# chmod +x script
function help ($str = "") {
$script = basename (__FILE__);
@cecekpawon
cecekpawon / yod-NakedAppleFirmwareUpdatePkg.php
Created August 9, 2017 08:58
Naked Apple FirmwareUpdate.pkg
#!/usr/bin/php
<?php
/*
---
Naked Apple FirmwareUpdate.pkg
---
- chmod+x.script.
- Place FirmwareUpdate.pkg & UEFIExtract into same directory as script.
- UEFIExtract: https://github.com/LongSoft/UEFITool/releases
@cecekpawon
cecekpawon / cuda-uninstall.command
Created February 2, 2015 05:32
CUDA - uninstaller
#!/bin/bash
#@cecekpawon - thrsh.net
sudo kextunload /System/Library/Extensions/CUDA.kext
sudo rm -rf /usr/local/cuda
sudo rm -rf /System/Library/StartupItems/CUDA
sudo rm -rf /System/Library/Extensions/CUDA.kext
sudo rm -rf /Library/Preferences/com.nvidia.cuda*
sudo rm -rf /Library/PreferencePanes/CUDA\ Preferences.prefPane
sudo rm -rf /Library/LaunchAgents/com.nvidia.CUDASoftwareUpdate.plist
@cecekpawon
cecekpawon / youtubedarkmode.user.js
Last active January 21, 2018 12:19
Youtube Darkmode
(function () {
// ==UserScript==
// @name Youtube Darkmode
// @namespace https://github.com/cecekpawon
// @author cecekpawon (THRSH)
// @description Youtube Darkmode, thanks internet!
// @version 1.0
// @grant none
// @match https://*.youtube.com/*
// @run-at document-start