Skip to content

Instantly share code, notes, and snippets.

View mortsavi's full-sized avatar
🦥
on my way to Mars

Morteza Moosavi mortsavi

🦥
on my way to Mars
View GitHub Profile
@mortsavi
mortsavi / macos-app-icon.md
Created May 5, 2023 11:33 — forked from jamieweavis/macos-app-icon.md
How to create an .icns macOS app icon
@mortsavi
mortsavi / Download-Shopify-CDN-Assets.md
Created May 4, 2021 06:49 — 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

Then, depending on the option you choose:

Option 1 - Download all the files directly (might crash you browser)

  1. Make sure your browser is set to download files automatically and doesn't ask for the download location every time
@mortsavi
mortsavi / shopifyfiles
Created March 3, 2021 08:12 — forked from th0rgall/shopifyfiles
Download Shopify Admin Files given a comma-separated list text file
#!/bin/bash
# By @th0rgall - Feb. 1 2021
# Tool that loops over Shopify File URLs and downloads them with CURL
# Prerequisites:
# - In you PATH: curl > v7.22, sed
# - A file with shopify file names: use Jason Bowman's script at https://gist.github.com/freakdesign/a1636414cce682c2c444#file-get-all-files-from-shopify-admin-js
# to download a file list (more details on this: https://freakdesign.com.au/blogs/news/113610119-export-a-list-of-all-files-in-the-shopify-admin)
# Usage: ./shopifyfiles shopify-files-list.txt
# The script will make a directory 'files' and download files there
@mortsavi
mortsavi / gw-gravity-forms-change-field-id.js
Created August 28, 2019 14:27 — forked from spivurno/gw-gravity-forms-change-field-id.js
Gravity Wiz // Gravity Forms // Change Field ID via Browser Console
/**
* Gravity Wiz // Gravity Forms // Change Field ID via Browser Console
*
* Provides a simple function for changing the ID of a Gravity Forms field via the browser console from the Form Editor page.
*
* @version 1.0
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/changing-your-gravity-forms-field-ids/
* @video http://www.screencast.com/t/STm1eLZEsR9q
@mortsavi
mortsavi / jekyll.html
Created October 8, 2018 07:34 — forked from blairanderson/jekyll.html
Fullscreen Background Video Slideshow on iOS devices - note currently uses jquery :)
{% for video in site.static_files %}
{% if video.path contains 'img/videos' %}
<video muted playsinline>
<source src="{{ site.baseurl }}{{ video.path }}" type="video/mp4">
</video>
{% endif %}
{% endfor %}
@mortsavi
mortsavi / conv.sh
Created October 8, 2018 07:34 — forked from blairanderson/conv.sh
Optimize Videos for Web - Compress MP4 and remove Audio with FFMPEG. encodes as 264 with CRF 30, scales down to 1920x1080, strips audio
#! /bin/bash
# The Purpose of this Script is to batch convert and compress any video file to mp4 format
#
# WARNING: LOSSY COMPRESSION !!!
# Variable used:
# sourcedir is the directory where to be converted videos are. Converted video will be saved in the same folder
# usage:
@mortsavi
mortsavi / 00-MINING.md
Created September 30, 2018 15:50 — forked from gboddin/00-MINING.md
Mining optimisation under Linux

Mining under linux

Disclaimer

I'm in no case responsible for fried hardware, erased software or burning down houses. Make sure your miners are always well cooled.

General recommendation

Though you can easily mix nVidia and AMD in the same rig with Linux, it's recommended to use a different thread for each platform so a Driver crash doesn't bring the whole rig down. It should be noted however, that some mining software have trouble when both architecture are found on the same rig.