Skip to content

Instantly share code, notes, and snippets.

View lexthor's full-sized avatar
🏠
Working from home

Suciu Alexandru lexthor

🏠
Working from home
View GitHub Profile
@lexthor
lexthor / hyper.js
Created May 18, 2023 10:10 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@lexthor
lexthor / Download-Shopify-CDN-Assets.md
Last active January 29, 2024 08:37 — forked from ridem/Download-Shopify-CDN-Assets.md
Download all Shopify CDN assets from a store

Instructions

  1. Go to your Shopify admin/settings/files page
  2. Open your browser Dev tools, go to the console
  3. Paste the content of the console_download_list.js file, and press enter
  4. Your browser will automatically fetch each page and download the list with the links of all the files on the CDN.
  5. Using your preffered code editor, edit the HTML file by adding each link in img tag.
  6. Open the HTML file you just edit in a browser then right click-save as. It will download the HTML file again along with all the images in the location you specify.
@lexthor
lexthor / sub-menu-wrap
Created November 13, 2019 07:59 — forked from fieldoffice/sub-menu-wrap
Wordpress - add div wrapper around sub-menu
/* EXTEND SUBNAV
******************************************/
class submenu-wrap extends Walker_Nav_Menu {
function start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat("\t", $depth);
$output .= "\n$indent<div class='sub-menu-wrap'><ul class='sub-menu'>\n";
}
function end_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat("\t", $depth);