Skip to content

Instantly share code, notes, and snippets.

View eduwass's full-sized avatar
working remotely

Edu Wass eduwass

working remotely
View GitHub Profile
eduwass /
Created June 8, 2024 10:24
make vscode:// url scheme remap to cursor://

If you use this can be useful

duti can be used to directly remap the vscode:// URL scheme to the cursor:// application without the need for an intermediary script.

Steps to Remap URL Scheme Using duti

  1. Install duti (if you haven't already):

brew install duti

eduwass /
Last active June 11, 2024 10:46
force 5g wifi on mac

Force 5 GHz WiFi Connection on macOS

If you're experiencing issues with your Mac connecting to the slower 2G band on routers that share SSID between 5G/2G (like the Google Wifi Nest), here's a guide to help you force a 5 GHz connection.

Identifying the 5G Channel

  1. Check Current Band: Hold option and click on the wifi icon on the macOS status bar. This will display the band you are currently connected to.
  2. Scan WiFi Channels: Use the following command to list all channels your WiFi is operating on:
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport scan
eduwass / example.html
Last active August 10, 2023 04:07
pdf to text using pdfjs
<!DOCTYPE html>
<input type="file" id="pdf-upload" accept=".pdf" />
<h1>Text will go here</h1>
<div class="pdf-text" id="pdf-text"></div>
<script src=""></script>
eduwass /
Last active September 5, 2022 08:02
Rize → Conjure

Connect Rize data with Conjure

The general idea is that this will run as a task at the end of a day, which will copy the following measures from Rize to Conjure for that day:

  • workHours
  • trackedTime
  • focusTime
  • meetingTime
  • breakTime

I used Pipedream for convenience, but with general Javascript knowledge you should also be able to easily use this outside of it.

eduwass /
Created December 7, 2021 16:36
BUG <Medium>: React capturing traffic on separate GA Instance

Detected on



Originally, we had separate GA Instances for Blog and WP:

CleanShot 2021-12-07 at 16.30.01.png

eduwass / search.php
Created February 12, 2021 13:09
Xero for WooCommerce Available Filters
54 results - 15 files
20 public function get_type() {
21: return apply_filters( 'woocommerce_xero_address_type', $this->type, $this );
22 }
34 public function get_line_1() {
{"0":{"title":"Vimeo Upload","description":"","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Submit","imageUrl":""},"fields":[{"type":"dgv_vimeo_upload","id":2,"label":"Video","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"allowedExtensions":"mp4,mov,wmv,avi,flv","formId":1,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","maxFileSize":"","maxFiles":"","multipleFiles":false,"productField":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"fields":"","displayOnly":""},{"type":"text","id":3,"label":"Course ID","adminLabel":"","isRequi
eduwass / index.html
Created July 28, 2020 15:17
Bootstrap 4 HTML Test Code
<!-- Navbar
================================================== -->
<div class="bs-docs-section clearfix">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1 id="navbars">Navbars</h1>
eduwass / Default (OSX).sublime-keymap
Created October 8, 2019 15:22
Sublime Text Automatic Brackets/Braces Spanish keyboard binds
{ "keys": ["´"], "command": "insert", "args": {"characters": "{"} },
{ "keys": ["ç"], "command": "insert", "args": {"characters": "}"} },
{ "keys": ["`"], "command": "insert", "args": {"characters": "["} },
{ "keys": ["+"], "command": "insert", "args": {"characters": "]"} }
eduwass /
Created April 17, 2019 17:43
Zip latest committed changes only

git archive will accept paths as arguments. All you should need to do is:

git archive -o ../ some-commit $(git diff --name-only earlier-commit some-commit)

or if you have files with spaces (or other special characters) in them, use xargs:

git diff --name-only earlier-commit some-commit | xargs -d'\n' git archive -o ../ some-commit

If you don't have xargs properly installed, you could cook up an alternative: