Skip to content

Instantly share code, notes, and snippets.

@TheMengzor
TheMengzor / gist:2012343ca608f9f1b069
Created Jun 3, 2014
Get AppStore Apps Icons list
View gist:2012343ca608f9f1b069
// Paste this code in Console at
// https://itunes.apple.com/us/genre/ios-social-networking/id6005?mt=8
// The take a look at the end of page
$('.grid3-column li a').each(function(){
$('<div>').load($(this).attr('href'), function(){$('body').append('<div>' + $(this).find('.product .artwork img').attr('src') + '</div>')});
});
View gist:0f680157fd525b4cd486
rsync -aHAXOxv --numeric-ids --delete --rsync-path="sudo -u www-data -i rsync" -e "ssh -T -c arcfour -o Compression=no -x" --exclude="exclude" ./local/path themengzor@remote.com:/
@TheMengzor
TheMengzor / topsites.js
Created Oct 23, 2014
Safari TopSites Preview Detection
View topsites.js
if (window.navigator && window.navigator.loadPurpose === "preview") {
window.location.href = "https://www.icloud.com/topsites_preview/"
};
View gist:1a264bc84f100e756035
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
if appIsRunning("QuickTime Player") then
tell application "QuickTime Player"
delay 1
try
close document 1 saving no
View gist:41225ef43176f7582078
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
<form>
<input type="text" id="url"/> <button id="send">play</button>
</form>
View gist:ae0a878d91df80f713cf
/System/Library/CoreServices/PlatformSupport.plist
@TheMengzor
TheMengzor / gist:6cc7caa68256aa4871cf
Created Apr 29, 2015
VirtualBox OS X parameters
View gist:6cc7caa68256aa4871cf
VBoxManage.exe modifyvm "Yosemite 10.10 Retail" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Yosemite 10.10 Retail" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
View .screenrc
termcapinfo xterm ti@:te@
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # Tell screen how to set colors. AB = background, AF=foreground
hardstatus alwayslastline
hardstatus string '%{= w}%-w[ %{= g}%n %t%{-} ]%+w%=%{=b r}%H%{-} %{= Y}%l%{-} %{=b m}%d.%m.%Y %c:%s%{-}'
nethack on
scrollback 20000
defscrollback 20000
altscreen on
@TheMengzor
TheMengzor / letsencrypt-centos-httpd.md
Last active Oct 25, 2016
Letsencrypt installation
View letsencrypt-centos-httpd.md
cd /etc/httpd
mkdir /etc/httpd/sites-available
mkdir /etc/httpd/sites-enabled

Append

IncludeOptional sites-enabled/*.conf
View gist:8cb568b7ebb1a2bbc52c14d391dd428e
open -na /Applications/Skype.app --args -DataPath "/Users/$(whoami)/Library/Application Support/Skype ANODA"