Skip to content

Instantly share code, notes, and snippets.

@lucasmonteverde
lucasmonteverde / sharepoint-wheel-zoom.js
Last active July 7, 2023 13:38
Add Sharepoint pdf viewer zoom with scroll wheel
// ==UserScript==
// @name Sharepoint wheel zoom
// @namespace https://gist.githubusercontent.com/lucasmonteverde/3b2f2ef847c05d4625e7f1a5866b1ef9/raw/sharepoint-wheel-zoom.js
// @version 0.1
// @description Add Sharepoint pdf an way to zoom with scroll wheel
// @author @lucasmonteverde
// @match https://*.sharepoint.com/*pdf*
// @icon https://upload.wikimedia.org/wikipedia/commons/e/e1/Microsoft_Office_SharePoint_%282019%E2%80%93present%29.svg
// @grant none
// ==/UserScript==
@lucasmonteverde
lucasmonteverde / tpb-links.js
Last active March 13, 2024 05:26
Add button to open all piratebay links and make description links clickable
@lucasmonteverde
lucasmonteverde / ig-to-topbase.js
Last active April 19, 2020 20:47
Add Topbase link to current instagram page
// ==UserScript==
// @name Instagram to Topbase
// @namespace https://gist.githubusercontent.com/lucasmonteverde/ed8ae06f87e759d341e1db67ce46378c/raw/ig-to-topbase.js
// @version 0.3
// @description Add Topbase link to current instgram page
// @author @lucasmonteverde
// @match https://www.instagram.com/*/*
// @grant none
// ==/UserScript==
@lucasmonteverde
lucasmonteverde / shortcuts.js
Last active September 9, 2017 00:13
DestinyRPG - Shortcuts
// ==UserScript==//
// @name DestinyRPG - Shortcuts
// @descript Enable shotchuts actions for DestinyRPG
// @version 0.0.7
// @author @lucasmonteverde
// @license MIT
// @namespace https://gist.githubusercontent.com/lucasmonteverde/21e4c594d1e24df065985bd842574cfa/raw/shortcuts.js
// @include https://game.destinyrpg.com/*
// ==/UserScript==
'use strict';
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
del = require('del'),
webpack = require('webpack-stream'),
named = require('vinyl-named'),
path = require('path'),
browserSync = require('browser-sync');
@lucasmonteverde
lucasmonteverde / 1.nginx.conf
Last active June 2, 2019 21:21
Nginx Configuration
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 2048; # It's the key to high performance - have a lot of connections available
}
@lucasmonteverde
lucasmonteverde / index.js
Last active August 29, 2015 14:19
Split folder files into chunks
var path = require('path'),
glob = require('glob'),
mv = require('mv');
Array.prototype.chunk = function(chunkSize) {
var array = this;
return [].concat.apply([],
array.map(function(elem,i) {
return i%chunkSize ? [] : [array.slice(i,i+chunkSize)];
})
@lucasmonteverde
lucasmonteverde / wp-config.php
Created September 5, 2012 16:31
Some wordpress configuration
define('WP_POST_REVISIONS', false );
define('FS_METHOD', 'direct'); //updates via file system
define('DISALLOW_FILE_EDIT',true); //disable theme edit
define('DISALLOW_FILE_MODS',true); //disable themes and plugins alteration
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
@lucasmonteverde
lucasmonteverde / gist:2029065
Created March 13, 2012 14:20 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(