Skip to content

Instantly share code, notes, and snippets.

View eduwass's full-sized avatar
:octocat:
working remotely

Edu Wass eduwass

:octocat:
working remotely
View GitHub Profile
@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);
@eduwass
eduwass / iStat Menus Settings.ismp
Created December 13, 2018 15:58
iStat menus settings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>build</key>
<real>1087</real>
<key>license</key>
<dict>
<key>email</key>
<string>[email protected]</string>
@eduwass
eduwass / fitmetrixapi.php
Last active September 14, 2018 18:06
Fitmetrix quick'n'dirty API Wrapper
<?php
class FitmetrixAPI{
private $base_url;
private $encoded_auth;
private $facility_location_id;
public function __construct($token, $token_key, $facility_location_id){
$this->base_url = 'https://api.fitmetrix.io/api/';
@eduwass
eduwass / docker-compose.yml
Last active May 18, 2025 16:14
Mailhog + WordPress in docker-compose.yml
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@eduwass
eduwass / README.md
Last active March 3, 2017 10:51
Laravel Development Cheatsheet

Intro

Date: 2 Feb 2017

Laravel version: 5.1.0

Guide assumes that you have installed Homestead following official guide, and have the homesteadcommand alias: