Skip to content

Instantly share code, notes, and snippets.

View cecekpawon's full-sized avatar

@cecekpawon cecekpawon

View GitHub Profile
@cecekpawon
cecekpawon / github.shell.bat
Last active October 9, 2018 07:01
Add Github Shell To Windows Explorer Context Menu
@echo off
setlocal
set key=HKCR\github-windows\Defaulticon
set newkey=HKCR\Directory\shell\yodgithubhere
set newkeybg=HKCR\Directory\background\shell\yodgithubhere
set str=GitHub.exe
set regtype=REG_SZ
set mylabel=Github here
set success=Keys successfully added
set error=Error key not found
@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 / 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 / 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 / mtoc.new.sh
Last active July 9, 2020 07:21
Compile MTOC.NEW
#!/bin/bash
# MTOC.NEW
# @cecekpawon Fri Dec 16 22:21:10 2016
# thrsh.net
SRC=$HOME/Desktop/mtoc
gCctoolsVer="949.0.1"
uCctools="https://opensource.apple.com/tarballs/cctools/"
@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 / 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