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 / 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 -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 / unpromote-twitter.user.js
Last active Sep 25, 2018
Remove promotions from twitter
View unpromote-twitter.user.js
// ==UserScript==
// @name Unpromote Twitter
// @namespace
// @version 0.1
// @description try to take over the world!
// @author James Cuénod
// @match
// @grant none
// ==/UserScript==
jcuenod / jamapi_note
Created Oct 26, 2016
jamapi stuff to fetch from bookfinder
View jamapi_note
"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 / 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)
* Copyright 2015 Contributors
* Released under the MIT license
View SIL Phonetic in Gnome3
# Showing "Hebrew (Biblical, SIL phonetic)" as option in Gnome
# (layout exists in /usr/share/X11/xkb/symbols/il)
# Credit:
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.