Skip to content

Instantly share code, notes, and snippets.

View ojizero's full-sized avatar
:shipit:
༼つಠ益ಠ༽つ ─=≡ΣO))

Amir A. ojizero

:shipit:
༼つಠ益ಠ༽つ ─=≡ΣO))
View GitHub Profile
@ojizero
ojizero / batched-cypress-tags.js
Created July 7, 2020 09:03
Rewrite of the Cypress Cucumber preprocessor entry point supporting concurrent executions
#!/usr/bin/env node
/* eslint @typescript-eslint/no-var-requires: off */
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const { Parser } = require("gherkin");
const { spawn } = require("child_process");
const { TagExpressionParser } = require("cucumber-tag-expressions");
@ojizero
ojizero / parser.sh
Created January 29, 2020 10:54
Parsing BASH args
#!/bin/bash
# `-a` allows single dashed long options
# `-l` defines long option
# `-o` defines short option (required to at least have one else won't parse stuff properly
# Parse all args and returns them in the form
# [...options] -- [...positionals]
args=$(getopt -a -l 'machine-home:' -l 'machine-name:' -l 'machine-ip:' -l 'experimental' -l 'install-dev-tooling' -l 'help' -o 'h' -- "$@")
@ojizero
ojizero / ojizero-filters.txt
Last active July 9, 2021 21:49
Custom filtering rules used in AdGuard
! Title: Ojizero filters -- Annoyances
! Description: Filters for annoyances encountered on the interwebs.
! Expires: 7 days
! License: https://creativecommons.org/licenses/by/4.0/
! Homepage: https://gist.github.com/ojizero/e7625d2704fcf0ac5baea59471cf052e
! Version: 1.0.1
! 10/12/2017, 11:11:39 PM https://www.facebook.com/
www.facebook.com###fb_stories_card_root > ._4-u8._20os._2tyk._1-ib._4-u2