This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @OnlyCurrentDoc */ | |
function Escala() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
var start_row = spreadsheet.getActiveRange().getRow(); | |
var final_row = spreadsheet.getActiveRange().getLastRow() + 1; | |
var conditionalFormatRules = spreadsheet.getActiveSheet().getConditionalFormatRules(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var update_content_script_settings = function() { | |
// contentScripts.register not available | |
} | |
if(typeof browser !== 'undefined' && browser.contentScripts) { | |
var registered_content_scripts = []; | |
async function register_content_script(data, i) { | |
registered_content_scripts[i] = await browser.contentScripts.register({ | |
runAt: 'document_start', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# crontab | |
sudo su | |
crontab -e | |
* * * * * bash limits.sh | |
# shell script | |
# 6 gb ~ 7 gb | |
ps aux | grep 'chromium' | awk '{print $2}' | xargs -I % prlimit -p % --as=6000000000:7000000000 | |
ps aux | grep 'chrome' | awk '{print $2}' | xargs -I % prlimit -p % --as=6000000000:7000000000 | |
ps aux | grep 'firefox' | awk '{print $2}' | xargs -I % prlimit -p % --as=6000000000:7000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # https://lzone.de/cheat-sheet/ulimit | |
# | |
# ps aux | grep 'chromium\|atom' | awk '{print $2}' | |
# | |
# ps aux | grep 'chromium\|atom' | awk '{print $2}' | xargs pmap -x | grep total | |
# | |
# | |
# ps aux | grep 'chromium\|atom' | awk '{print $2}' | xargs -I % prlimit -p % | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */ | |
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.3.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eou pipefail | |
version=8.6.4.1 | |
patchinfo=299124-linux-x86_64-threaded | |
dir=ActiveTcl$version.$patchinfo | |
package=$dir.tar.gz | |
url=http://downloads.activestate.com/ActiveTcl/releases/$version/$package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby 2.1.2 | |
require 'syslog' | |
require 'thread' | |
process = 40 | |
threads = 4 | |
times = 4611686018427387903 | |
intervals = [0.01, 0.015, 0.05, 0.02, 0.08, 0.1, 0] | |
process.times.each do |p| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open/New file: C-x C-f | |
Save current buffer to a file: C-x s | |
New sml buffer: C-c C-s | |
Switch buffers: C-x o | |
Split window (horizontal): C-x 2 | |
Split window (vertical): C-x 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service mysql stop --yes | |
sudo killall -9 mysql | |
sudo killall -9 mysqld | |
sudo apt-get remove --purge mysql-server mysql-client mysql-common --yes | |
sudo apt-get autoremove --yes | |
sudo apt-get autoclean --yes | |
sudo deluser mysql | |
sudo delgroup mysql | |
sudo rm -rf /var/lib/mysql | |
sudo apt-get purge mysql-server-core-5.5 --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AWESOME documentation! > https://wiki.archlinux.org/index.php/Wacom_Tablet | |
xsetwacom --list | |
# Wacom Intuos S 2 Pad pad id: 11 type: PAD | |
# Wacom Intuos S 2 Pen stylus id: 10 type: STYLUS | |
xsetwacom set 10 mode relative | |
xsetwacom set 10 mode absolute |