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
eduwass / readme.md
Last active August 24, 2023 01:51
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
eduwass / example.html
Last active August 10, 2023 04:07
pdf to text using pdfjs
<!DOCTYPE html>
<html>
<head></head>
<body>
<input type="file" id="pdf-upload" accept=".pdf" />
<h1>Text will go here</h1>
<div class="pdf-text" id="pdf-text"></div>
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
@eduwass
eduwass / README.md
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
eduwass / readme.md
Created December 7, 2021 16:36
BUG <Medium>: React capturing traffic on separate GA Instance

Detected on

PRODUCTION

Description

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

CleanShot 2021-12-07 at 16.30.01.png

@eduwass
eduwass / search.php
Created February 12, 2021 13:09
Xero for WooCommerce Available Filters
<?php
54 results - 15 files
web/app/plugins/woocommerce-xero/includes/class-wc-xr-address.php:
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
eduwass / index.html
Created July 28, 2020 15:17
Bootstrap 4 HTML Test Code
<html>
<!-- Navbar
================================================== -->
<div class="bs-docs-section clearfix">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1 id="navbars">Navbars</h1>
</div>
@eduwass
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
eduwass / readme.md
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 ../latest.zip 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 ../latest.zip some-commit

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

@eduwass
eduwass / script.js
Created February 28, 2019 19:01 — forked from marcosnakamine/script.js
jQuery - WP Smush auto click
setInterval(function(){
botao = jQuery('#smush-box-meta-boxes-bulk > div.sui-box-body > div.wp-smush-bulk-wrapper > button');
if( botao.attr('disabled') != 'disabled' ) {
botao.trigger('click');
}
}, 1000);