Skip to content

Instantly share code, notes, and snippets.

View MrZyr0's full-sized avatar

Julien SEIXAS MrZyr0

View GitHub Profile
@MrZyr0
MrZyr0 / btc data
Last active November 10, 2019 23:17
"id";"date";"txVolume_USD";"adjustedTxVolume_USD";"txCount";"marketcap_USD";"price_USD";"exchangeVolume_USD";"generatedCoins";"fees";"activeAddresses";"averageDifficulty";"paymentCount";"medianTxValue_USD";"medianFee";"blockSize";"blockCount"
"1";"2009-01-09";"0";"0";"0";"0";"0";"0";"700";"0";"14";"1";"0";"0";"0";"3010";"14"
"2";"2009-01-10";"0";"0";"0";"0";"0";"0";"3050";"0";"61";"1";"0";"0";"0";"13129";"61"
"3";"2009-01-11";"0";"0";"0";"0";"0";"0";"4650";"0";"93";"1";"0";"0";"0";"20033";"93"
"4";"2009-01-12";"0";"0";"7";"0";"0";"0";"4700";"0";"102";"1";"5";"0";"0";"22031";"94"
"5";"2009-01-13";"0";"0";"0";"0";"0";"0";"6150";"0";"123";"1";"0";"0";"0";"26527";"123"
"6";"2009-01-14";"0";"0";"1";"0";"0";"0";"6450";"0";"133";"1";"0";"0";"0";"28276";"129"
"7";"2009-01-15";"0";"0";"8";"0";"0";"0";"6300";"0";"140";"1";"6";"0";"0";"30061";"126"
"8";"2009-01-16";"0";"0";"2";"0";"0";"0";"5400";"0";"114";"1";"0";"0";"0";"23854";"108"
"9";"2009-01-17";"0";"0";"0";"0";"0";"0";"5450";"0";"109";"1";"0";"0";"0";"23528";"109
{
"_id": "artist:1",
"last_name": "Coppola",
"first_name": "Sofia",
"birth_date": "1971"
}
{
"_id": "artist:2",
"last_name": "Dunst",
"first_name": "Kirsten",
{
"old_id": "movie:1111",
"title": "Vertigo",
"year": 1958,
"genre": "drama",
"summary": "Scottie Ferguson, ancien inspecteur de police, est sujet au vertige depuis qu'il a vu mourir son collègue. Elster, son ami, le charge de surveiller sa femme, Madeleine, ayant des tendances suicidaires. Amoureux de la jeune femme Scottie ne remarque pas le piège qui se trame autour de lui et dont il va être la victime... ",
"country": "USA",
"director": {
"old_id": "artist:3"
},
{ "type": "Feature", "properties": { "number": 9013, "name": "Sédaillan \/ Naviguation", "address": "Quai Paul Sédallon", "address2": "", "commune": "Lyon 9 ème", "nmarrond": 13, "bonus": "Non", "pole": "pôle d'activité (Cegid, Infogrammes)", "lat": 45.787384084955796, "lng": 4.81437377940006, "bike_stands": 20, "status": "OPEN", "available_bike_stands": 7, "available_bikes": 13, "availabilitycode": 1, "availability": "Vert", "banking": 0, "gid": 1065, "last_update": "2017\/02\/02 14:49:23", "last_update_fme": "2017\/02\/02 14:54:00" }, "geometry": { "type": "Point", "coordinates": [ 4.814373779400059, 45.787384084955846 ] } }
{ "type": "Feature", "properties": { "number": 4023, "name": "Pont Masaryk", "address": "Face 45, Quai Joseph Gillet", "address2": "", "commune": "Lyon 4 ème", "nmarrond": 23, "bonus": "Non", "pole": "", "lat": 45.778172067419703, "lng": 4.81069860664111, "bike_stands": 22, "status": "OPEN", "available_bike_stands": 2, "available_bikes": 20, "availabilitycode": 1, "availability": "Vert"
@MrZyr0
MrZyr0 / Download G ads invocies
Created February 25, 2020 09:38
Bookmarlet to quickly download all G Ads invoices
let collection = document.getElementsByClassName("b3id-document-zippy-line-item-header b3-document-zippy-line-item-header goog-control");
let invoiciesURL = [];
for (let item of collection)
{
if (item.textContent.includes('(Date de création'))
{
invoiciesURL.push('https://payments.google.com' + item.getAttribute('data-download-url'));
}
}
@MrZyr0
MrZyr0 / Clean Google Maps API v3 with multiple markers & infoWindows
Last active November 7, 2020 21:06
A clean way to use Google Maps API v3 with multiple cursor & infoWindows
// ⚠ Fork of https://gist.github.com/rbochet/888937/cbc176598725b4e5ad300bd24fee68bcefb87516 ⚠
// Use https://github.com/Concept211/Google-Maps-Markers#usage-premade : For icons !
/**
* Marker JSON schema:
* {
* location: 'LatLng Google map object', // This will overide latitude and longitude properties
* latitude: 'The latitude of the marker',
* longitude: 'The longitude of the marker',
* icon: 'The URL of the icon to use' // By default it the red classic one*
@MrZyr0
MrZyr0 / gist:43f059fbbdcfff7c9757bf919d00f8fe
Last active October 27, 2020 18:28 — forked from jansanchez/gist:ce5b0ca1c5e538f4b266
How to install NVIDIA video drivers in Elementary OS

Install proprietary NVIDIA Drivers on Elementary OS 5

  1. As usual, please update your system before doing anything.

    sudo apt update
    sudo apt full-upgrade
  2. First of all, download the appropriate driver for your chipset: https://www.nvidia.com/Download/index.aspx

UPDATE wp_options SET option_value = replace(option_value, 'http://oldurl', 'https://newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'oldurl','newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://oldurl', 'https://newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://oldurl','https://newurl');
@MrZyr0
MrZyr0 / Darkreader-custom-theme-styles.css
Created January 28, 2021 22:03
This is the content of developper window in Dark Reader extension
*
INVERT
.jfk-bubble.gtx-bubble
.captcheck_answer_label > input + img
CSS
.vimvixen-hint {
background-color: ${#ffd76e} !important;
border-color: ${#c59d00} !important;
@MrZyr0
MrZyr0 / blockDeletionBlocker.js
Created July 30, 2021 12:26
Prevent Gutenberg Block from deletion
const blockNameToPrevent = 'core/block';
const getBlockList = () => wp.data.select( 'core/block-editor' ).getBlocks();
let blockList = getBlockList();
wp.data.subscribe( () => {
const newBlockList = getBlockList();
const blockListChanged = newBlockList !== blockList;
if ( blockListChanged && newBlockList.length < blockList.length ) {
const removedBlock = blockList.filter( ( x ) => ! newBlockList.includes( x ) )[ 0 ];