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 / 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 / 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 / Git-Notes.txt
Last active February 20, 2021 13:49
Git-Notes
Make an Archive to ftp to hostprovider:
git archive HEAD --format=zip > archive.zip
To export the repository up to a certain commit:
git archive -o export.zip <COMMIT>
Delete (uncommitted) changes:
git reset --hard 0d1d7fc32
Delete untracked files AND directories from current git branch:
@lexthor
lexthor / gist:5d71a81be548ac1f1b633864c2394c4a
Created January 18, 2021 09:10
Browser Zooom Media Queries
<html lang="en"><head>
<meta charset="utf-8">
<title>
Looking At How Browser Zoom Affects CSS Media Queries And Pixel-Density
</title>
<style type="text/css">
/*
@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);