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 / 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/
@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 / 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 / jquery.reflection.js
Last active July 8, 2016 15:26
jquery.reflection.js - Based on reflection.js v1.11 by Christophe Beyls
/*!
reflection.js for jQuery v1.12
(c) 2006-2013 Christophe Beyls <http://www.digitalia.be>
MIT-style license.
*/
;(function($) {
$.fn.reflect = function(options) {
options = $.extend({
@specious
specious / dabblet.css
Created June 19, 2014 06:35
Pure CSS glass sphere
.glass {
background-image:
radial-gradient(circle closest-side, rgba(167, 162, 162, 0.33), rgba(0, 0, 0, 0.62));
background-size: 100%;
border-radius: 50%;
position: relative;
}
.glass::before {
position: absolute;
width: 56%;
html {
height: 100%;
}
body {
background: linear-gradient(45deg, #000025, blue);
height: 100%;
text-align: center;
margin: 0;
}
span {
@specious
specious / meetup-url.sh
Last active November 23, 2017 12:25
Get short url for meetup event
#!/bin/bash
#
# Example usage:
# $0 http://www.meetup.com/diningout-792/events/226401363/
if [ $# -lt 1 ]
then
echo "Usage: $0 <url>"
exit 1
fi
@specious
specious / youtube-shorten.js
Created November 22, 2015 03:21
Shortens a YouTube URL
#!/usr/bin/env node
if( process.argv.length > 2 ) {
var video_id = /(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/.exec( process.argv[2] )[5]
console.log( "http://youtu.be/" + video_id )
}
@specious
specious / keybase-verification-tknomad.info
Created October 27, 2017 17:08
My Keybase.io identity verification
* I am tknomad (https://keybase.io/tknomad) on keybase.
* I have a public key ASC_Wvsbh6utc0tvyAP2-AiiUXeKq3NpCN-6gVik1BiJPgo
To claim this, I am signing this object:
```json
{
"body": {
"key": {
"eldest_kid": "0120bf5afb1b87abad734b6fc803f6f808a251778aab736908dfba8158a4d418893e0a",
@specious
specious / .config
Created July 16, 2021 16:48
Linux kernel configuration (Thinkpad X1 Carbon 8th Generation)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.13.2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.1.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110100
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23601