Skip to content

Instantly share code, notes, and snippets.

View LockeAG's full-sized avatar

Adrian Galvez G. LockeAG

View GitHub Profile
@LockeAG
LockeAG / protonmail-delete-all-in-folder.js
Created April 20, 2022 01:45 — forked from rosenpin/protonmail-delete-all-in-folder.js
Delete all emails in an open folder in Protonmail
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function deleteAllMails(){
for (var i = 0;i<100;i++){
setTimeout(function(){document.getElementById("selectAll").click()},1000);
setTimeout(function(){document.getElementsByClassName("moveElement-btn-delete")[0].click()},3000);
setTimeout(function(){document.getElementById("confirmModalBtn").click()},5000);
await sleep(10000)
@LockeAG
LockeAG / .gitlab-ci.yml
Created March 8, 2022 19:34 — forked from qutek/.gitlab-ci.yml
[Gitlab CI With Rsync] Auto deploy gitlab CI with rsync
# https://gitlab.com/help/ci/quick_start/README
# https://docs.gitlab.com/ee/ci/introduction/
# https://docs.gitlab.com/ee/ci/yaml/
image: dpolyakov/docker-node-latest-with-rsync:latest
# before_script:
# - apt-get update -qq
# - apt-get install -qq git
@LockeAG
LockeAG / .zsh_plugins.txt
Created February 29, 2020 22:50
ZSH setup and plugins I use with http://getantibody.github.io/
# Bundles from the default repo (robbyrussell's oh-my-zsh).
robbyrussell/oh-my-zsh folder:plugins/git
robbyrussell/oh-my-zsh folder:plugins/github
robbyrussell/oh-my-zsh folder:plugins/heroku
robbyrussell/oh-my-zsh folder:plugins/lein
robbyrussell/oh-my-zsh folder:plugins/command-not-found
# robbyrussell/oh-my-zsh folder:plugins/common-aliases
robbyrussell/oh-my-zsh folder:plugins/autojump
robbyrussell/oh-my-zsh folder:plugins/compleat
@LockeAG
LockeAG / inject_script_to_page.js
Created March 1, 2019 05:25 — forked from midlan/bookmarklet_inject_script_to_page.js
Code snippet to inject script to page, e.g. jquery. It can be used directly as bookmark in some browsers. (tested in chrome)
javascript: (function() {
var url = prompt('URL of script to inject:');
if (url) {
console.log('Script inject request URL:', url);
var script = document.createElement('script');
script.src = url;
@LockeAG
LockeAG / gist:e6b6e6fe2f7ee896cdbb18cc29e9cdf5
Created January 21, 2017 16:29 — forked from allenhurff/gist:e1a651a7a37ae491ccbc
crateful.la wp-config docker-compose
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
@LockeAG
LockeAG / old.php
Last active August 29, 2015 14:13 — forked from agustinho/old.php
<!--Inicia EPlanning-->
<?php //define nombre de sec:
/*$detect = new Mobile_Detect();
if( $detect->isMobile() && !$detect->isTablet()){
$seccion='Mobile';
} else {*/
if (is_single() || is_page()){
$seccion='notas';
} elseif (is_front_page()) {
@LockeAG
LockeAG / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(