Skip to content

Instantly share code, notes, and snippets.

View specious's full-sized avatar
💭
Getting back from hiatus

Ildar Sagdejev specious

💭
Getting back from hiatus
View GitHub Profile
@specious
specious / bender-bash-prompt
Last active April 7, 2024 15:49
A fancy two-line #!/bin/bash prompt with $(git integration)
#
# Fancy two-line prompt with git integration
#
# ┌───=[ specious :: sharp -( 0 )-[ ~ ]-( master )
# └──(
#
git_current_head () {
git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD
}
@specious
specious / crx-dl.sh
Last active July 9, 2018 19:39
Downloads a Google Chrome extension or app from the Chrome Web Store and saves it as a file. You can then unzip the .crx file to see the source code.
#!/bin/bash
if [ $# -lt 1 ]
then
echo Downloads a Google Chrome extension from the Chrome Web Store and saves it as a file.
echo You can then unzip the .crx file to see the source code.
echo
echo For example, if the URL is:
echo https://chrome.google.com/webstore/detail/tile-view/ajcjkemninihecbgljahanflndoeggao
echo
@specious
specious / McWifi.iim
Created July 28, 2012 00:59
McDonald's auto-reconnect to internet iMacro ( http://en.wikipedia.org/wiki/iMacros )
VERSION BUILD=5110613 RECORDER=CR
URL GOTO=http://mcstate.com/
TAG POS=1 TYPE=IMG ATTR=ID:index_connect_button
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:PassthroughForm ATTR=ID:checkboxbutton1 CONTENT=YES
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:PassthroughForm ATTR=ID:mcd_submit_agree
URL GOTO=http://www.somethingawful.com/