View search_libreoffice_documents.sh
This file contains 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
#!/bin/bash | |
# usage: ./search_libreoffice_documents.sh search_term | |
# If you want to search types other than `.odt`, edit this line | |
find . -type f -name "*.odt" | while read i ; do | |
[ "$1" ] || { echo "You forgot search string!" ; exit 1 ; } | |
unzip -ca "$i" 2>/dev/null | grep -aoi -E ".{0,10}$*.{0,10}" | |
if [ $? -eq 0 ] ; then | |
echo "$i: $?" | nl |
View describe_all_tables
This file contains 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
mysql -h 127.0.0.1 -P 3306 db_name -u foo --password=bar -e "SELECT TABLE_NAME, COLUMN_NAME, COLUMN_TYPE FROM information_schema.columns WHERE table_schema = 'db_name';" > out.tsv |
View unpromote-twitter.user.js
This file contains 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
// ==UserScript== | |
// @name Unpromote Twitter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author James Cuénod | |
// @match https://twitter.com/home | |
// @grant none | |
// ==/UserScript== |
View jamapi_note
This file contains 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
https://www.jamapi.xyz/ | |
http://www.bookfinder.com/search/?author=&title=&lang=en&isbn=0800638581&submitBtn=Search&new=1&used=1&ebooks=1 | |
{ | |
"title": "title", | |
"prices": [{"elem": "table.results-table-Logo td:last-child", "price": "text"}], | |
"sellers": [{"elem": "table.results-table-Logo td:nth-child(2) a img", "seller": "alt"}], | |
"2nd hand": [{"elem": "table.results-table-Logo td:nth-child(2) .results-explanatory-text-Logo:first-child", "seller": "text"}] | |
} |
View semantic-2.1.8-silentValidation.js
This file contains 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
/*! | |
* # Semantic UI 2.1.7 - Patched to do "is valid" silently (I could have sworn it was version 2.1.8 though) | |
* http://github.com/semantic-org/semantic-ui/ | |
* | |
* | |
* Copyright 2015 Contributors | |
* Released under the MIT license | |
* http://opensource.org/licenses/MIT | |
* | |
*/ |
View SIL Phonetic in Gnome3
This file contains 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
# Showing "Hebrew (Biblical, SIL phonetic)" as option in Gnome | |
# (layout exists in /usr/share/X11/xkb/symbols/il) | |
# Credit: http://askubuntu.com/questions/567814/enabling-sil-phonetic-biblical-hebrew-keyboard | |
gsettings set org.gnome.desktop.input-sources show-all-sources true |
View imageCheckbox.css
This file contains 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
ul { | |
list-style-type: none; | |
} | |
li { | |
display: inline-block; | |
} | |
input[type="checkbox"][id^="cb"] { | |
display: none; |