Skip to content

Instantly share code, notes, and snippets.

View fenriz07's full-sized avatar
:shipit:
Focusing

Fen fenriz07

:shipit:
Focusing
  • Chile
View GitHub Profile
@fenriz07
fenriz07 / test_install.sh
Last active October 29, 2024 00:56
Elys Install with one line script
#!/bin/bash
source <(curl -s https://raw.githubusercontent.com/staketown/utils/master/common.sh)
printLogo
source <(curl -s https://raw.githubusercontent.com/staketown/cosmos/master/utils/ports.sh) && sleep 1
export -f selectPortSet && selectPortSet
read -r -p "Enter node moniker: " NODE_MONIKER
@fenriz07
fenriz07 / Puppeteer Transbank - OneClick
Last active August 31, 2020 14:57
Puppeteer Transbank - OneClick
const puppeteer = require('puppeteer');
var browser = (async () => {
const browser = await puppeteer.launch({
//headless: false,
slowMo: 10,
ignoreHTTPSErrors: true
});
@fenriz07
fenriz07 / html5-formdata-polyfilll.js
Created February 17, 2020 13:37 — forked from Rob--W/html5-formdata-polyfilll.js
FormData polyfill for Web Workers in Safari
/*
* FormData for XMLHttpRequest 2 - Polyfill for Web Worker
* (c) 2014 Rob Wu <[email protected]>
* License: MIT
* - append(name, value[, filename])
* - XMLHttpRequest.prototype.send(object FormData)
*
* Specification: http://www.w3.org/TR/XMLHttpRequest/#formdata
* http://www.w3.org/TR/XMLHttpRequest/#the-send-method
* The .append() implementation also accepts Uint8Array and ArrayBuffer objects
For anybody else landing here with this problem, WPML now adds a post_lang attribute the posts' mappings. (I'm using 3.9.4)
It also adds a post_filter argument to the request itself so it considers this post_lang in ElasticPress queries.
One problem remains : the indexing is still for a unique language as described in this issue.
To resolve this, add a filter to suppress WPML's filter on the indexing
add_filter('ep_index_posts_args', function($args) {
return array_merge($args, [
@fenriz07
fenriz07 / gist:cd2dadb1cdfb1f602bcd20401fcdc605
Created November 9, 2018 03:44
The 7 Stiky Top Bar CSS
.top-bar, .top-bar a, .top-bar .mini-nav .customSelect, .top-bar .mini-nav a:hover, .header-bottom-bar a {
color: white !important;
position: fixed !important;
width: 100% !important;
background: red none repeat center center !important;
z-index: 99 !important;
top: 0;
}
.masthead {
@fenriz07
fenriz07 / loadmore.js
Created December 1, 2017 05:08
Small object to manipulate ajax page for wordpress. Inherit to your liking!
jQuery(document).ready(function($) {
/*
Small object to manipulate ajax page for wordpress. Inherit to your liking!
For: CmantikWeb - Servio Zambrano
*/
var loadMore = {
paged : 2,
switchp : 1,
action : "get_daypackage",
buttom : $('#more-package'),