Skip to content

Instantly share code, notes, and snippets.

View yaserahmady's full-sized avatar

Yaser Ahmady yaserahmady

  • Buio Studio
  • Italy
  • 15:26 (UTC +02:00)
View GitHub Profile
@yaserahmady
yaserahmady / README.md
Last active October 12, 2022 14:56
Elementor Portfolio Widget URL hash filter

Add this JS script in Elementor → Custom Code at the end of the body.

(function ($) {
  $(window).load(function () {
    if (window.location.hash) {
      console.log("We have some hash!");
      var hash = window.location.hash.replace("#", "");
      console.log("Filtering...");
 $(`li.elementor-portfolio__filter[data-filter=${hash}]`).trigger(
{"last_update": "2024-07-01", "reviews": [{"link": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChZDSUhNMG9nS0VJQ0FnSURTdTRLWlhBEAE!2m1!1s0x0:0x3efcb04bbd013e93!3m1!1s2@1:CIHM0ogKEICAgIDSu4KZXA%7CCgwItv7s_wUQwOnEoQM%7C?hl=it", "rating": 5.0, "date": "3 anni fa", "iso_date": "2021-01-10T17:53:58Z", "iso_date_of_last_edit": "2021-01-10T17:53:58Z", "source": "Google", "review_id": "ChZDSUhNMG9nS0VJQ0FnSURTdTRLWlhBEAE", "user": {"name": "Caterina Del Regno", "link": "https://www.google.com/maps/contrib/100568997473657936123?hl=it", "contributor_id": "100568997473657936123", "thumbnail": "https://lh3.googleusercontent.com/a/ACg8ocLd0uI7xHem6-I26AIKtJKRsDbZe63V6exinYekntsviXWsCg=s120-c-rp-mo-br100", "reviews": 3, "photos": 0}, "snippet": "Professionalit\u00e0, disponibilit\u00e0 e gentilezza.\nLa mia esperienza all'autonoleggio Toga \u00e8 stata moto positiva, ho trovato il personale disponibile a venire incontro alle mie esigenze e molto professionale. Condizione dell'auto che ho noleggiato perfet
@yaserahmady
yaserahmady / $01-README.md
Last active April 13, 2022 21:53
Break The Code 2 - Server Control

Clippy hints

  • Phase 1
    • No matter which side you look that it from, it’s pretty amazing.
    • I ate alphabet soup today; expecting some vowel movement.
    • I made friends with 25 letters of the alphabet. Don’t know Y.
    • I was alphabetizing my spice rack. Then realized I have way too much thyme.
  • Phase 2
    • When I reaaallly need something, I don’t mind reusing it.
  • Thought I found a friend when I saw “HI”. Then I saw the next 2 letters.
@yaserahmady
yaserahmady / snippet.js
Created May 17, 2021 14:19
"On this day" feature for Obsidian DataviewJS
let dates = {
today: new Date(),
activeFile: new Date(app.workspace.getActiveFile().name.substring(0, 10)),
};
let dateToCompare = dates.today;
let openFileDateFormatted = formatDate(dates.activeFile);
let pages = dv.pages('"Journal"').where(onThisDay);
let columns = ["File"];
@yaserahmady
yaserahmady / 1 - Readme.md
Last active May 6, 2020 10:28
Guggenheim

Using a Chrome extension

  1. Install the Archive Downloader Chrome extension
  2. Visit the collection page and scroll down until all books are loaded
  3. Press the Extensions icon in the toolbar and follow the instructions

Using wget/curl

  1. Follow the above steps and export a link list instead of downloading or just use my list of pdfs.
  2. In your terminal type wget or curl -O followed by the list of links without linebreaks, separated by a space.

Using Archive.org Python Library

@yaserahmady
yaserahmady / TUTORIAL.md
Last active June 16, 2019 10:41
Use youtube-dl on a jailbroken iOS 12 device

Prerequisites

  1. Add McApollo's repo
  2. Install Python@3.7
  3. Install SDK Installer / On device compiler (it has pip3)
  4. Install Youtube-dl

Updating

Run youtube-dl -U or pip3 install --upgrade youtube-dl

Using it with Shortcuts.app