Skip to content

Instantly share code, notes, and snippets.

View 19h47's full-sized avatar
🔥
This guy is on fire

Jérémy Levron 19h47

🔥
This guy is on fire
View GitHub Profile
@19h47
19h47 / CONNECT-SSH-IONOS.md
Last active October 3, 2023 09:46
Connect to IONOS shared hosting with SSH

In your terminal, enter the following command

ssh username@host

Then the terminal ask your password

username@host's password:
@19h47
19h47 / queries.sql
Last active December 10, 2019 10:55
SQL queries to change domain name on a WordPress site
# see https://sql.sh/988-requetes-migrer-wordpress
# Change the URL of the site
UPDATE wp_options
SET option_value = replace(option_value, 'http://localhost:8888/site', 'http://www.site.fr')
WHERE option_name = 'home'
OR option_name = 'siteurl';
# Change GUID URL
UPDATE wp_posts
@19h47
19h47 / getMousePositions.js
Created May 23, 2018 11:05
Get mouse position
/**
* Get mouse position
*
* @param obj event
* @return obj { x, y }
* @see from http://www.quirksmode.org/js/events_properties.html#position
*/
export default function getMousePositions(event) {
let positionX = 0;
let positionY = 0;
@19h47
19h47 / index.php
Created February 16, 2018 15:17
WordPress navigation
<?php
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
'post_type' => 'post',
'posts_per_page' => 12,
'post_status' => 'publish',
'paged' => $paged,
);
@19h47
19h47 / Duration.js
Last active February 11, 2018 14:46
Okay JavaScript, you win. For now...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
<div class="js-form-duration">
<label for="">
@19h47
19h47 / fonts.scss
Last active February 7, 2018 14:37
Fonts placeholder and utility classes
/**
* Font
*
* A map containing all information about fonts
*
* @type map
*/
$font: (
/**
@19h47
19h47 / Countdown.js
Created November 6, 2017 09:53
Countdown
/**
* Countdown
*
* @see https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_countdown
*/
class Countdown {
/**
* Countdown.constructor
*/
constructor() {
@19h47
19h47 / Map.js
Last active November 3, 2017 09:49
Map class
// import $ from 'jquery';
/**
* Map
*/
class Map {
/**
* Map.constructor
*
@19h47
19h47 / POCKET.md
Last active September 28, 2017 11:58
A collection of interesting post
@19h47
19h47 / NPM.md
Last active January 22, 2019 16:45
npm commands

Uninstalling global package

npm uninstall -g name-of-package

npm uninstall

List global package