Skip to content

Instantly share code, notes, and snippets.

View Yoshyn's full-sized avatar
🇫🇷
Graou

Sylvestre Antoine Yoshyn

🇫🇷
Graou
View GitHub Profile
@Yoshyn
Yoshyn / .Manage Postgres
Last active March 2, 2018 09:06
Manage Postgres : Several script in order to manage Postgres
# Contains :
# * find_duplicated_index.sql
# * find_missing_index.sql
# * find_unused_index.sql
# * generate_data.sql : Generate a big dummy set of data
# * update_PG_varchar_to_string.rb : Update all field in varchar to string into a database
# * mass_export_and_delete.sql
# * remove_update_duplicate.sql
# * sharding_table_stats.sql : Get avg, percentile & co for a table over sharding
start_time_record = window.performance.now();
MY CODE TO PERFORM
end_time_record = window.performance.now();
function_as_string = arguments.callee.toString()
console.log(function_as_string.substr(0, function_as_string.indexOf('{')) + '(+' + (end_time_record - start_time_record) + ' ms)');
@Yoshyn
Yoshyn / stylish.css
Created January 28, 2015 14:18
Stylish CSS for production domain.
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("my-domain.com") {
body {
border-top: 2px solid orange;
}
body:before {
background-color: orange;
content: "PROD";