This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function refreshPage() { | |
$.ajax({ | |
url: document.location.href, | |
success: function () { | |
refreshPage(); | |
} | |
}); | |
} | |
refreshPage(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Install https://addons.mozilla.org/en-US/firefox/addon/stylish/ | |
*/ | |
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
.tabbrowser-tab[pinned="true"]:nth-child(2):not([selected]) .tab-content{ | |
background: #F2CB1D !important; | |
} | |
.tabbrowser-tab[pinned="true"]:nth-child(3):not([selected]) .tab-content{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff master branch --name-only | cpio -dpv folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clickAllLinks(eq) { | |
var src = $('a').eq(eq).attr('href'); | |
console.log(src); | |
$.ajax({ | |
url: src, | |
success: function () { | |
clickAllLinks(eq+1); | |
} | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Increment year and semester mathematically | |
* | |
* @param int $year | |
* @param int $semester | |
* @param int $increment | |
* @return string | |
*/ | |
function increment_year_semester($year, $semester, $increment = 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nmcli nm wifi off | |
echo wifi off | |
sleep 5 | |
sudo ip link set wlan0 address 00:0d:c2:10:1a:00 | |
echo changed mac | |
sleep 5 | |
sudo nmcli nm wifi on | |
echo wifi on |