Skip to content

Instantly share code, notes, and snippets.

James Cuénod jcuenod

Block or report user

Report or block jcuenod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jcuenod
jcuenod / describe_all_tables
Created May 23, 2019
Dump mysql table descriptions of all tables in db to tab separated file
View describe_all_tables
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
@jcuenod
jcuenod / unpromote-twitter.user.js
Last active Sep 25, 2018
Remove promotions from twitter
View unpromote-twitter.user.js
// ==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==
@jcuenod
jcuenod / jamapi_note
Created Oct 26, 2016
jamapi stuff to fetch from bookfinder
View jamapi_note
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"}]
}
@jcuenod
jcuenod / semantic-2.1.8-silentValidation.js
Last active Jan 27, 2016
semantic-ui with support for silent form validation
View semantic-2.1.8-silentValidation.js
/*!
* # 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
# 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
ul {
list-style-type: none;
}
li {
display: inline-block;
}
input[type="checkbox"][id^="cb"] {
display: none;
You can’t perform that action at this time.