This file contains hidden or 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
function gmailAutoarchive() { | |
// Build the query | |
var query = "in:inbox is:read has:userlabels older_than:2d"; | |
// Get the threads | |
var threads = GmailApp.search(query); | |
// Archive the threads | |
for (var thread of threads) thread.moveToArchive(); |
This file contains hidden or 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
// ==VickiScript== | |
// @name Turn off the monitor | |
// @version 1.2 | |
// @description Turn off all computer monitors. | |
// @utterance Ask $invocation to turn off the monitor | |
// @permission native | |
// @id custom.monitorOff | |
// @icon /res/icons/script_native.png | |
// ==/VickiScript== |
This file contains hidden or 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
# Create file /etc/udev/rules.d/72-static-name.rules | |
# Add these, changing the mac addresses accordingly. | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:01", KERNEL=="e*",NAME="eth1" | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:02", KERNEL=="e*",NAME="eth2" | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:03", KERNEL=="e*",NAME="eth3" | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:04", KERNEL=="e*",NAME="eth4" |
This file contains hidden or 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
//javascript:(function(d){d.head.appendChild(d.createElement('script')).src="https://rawgit.com/bo33b/dbe89054fe400d144b7b90961e586344/raw/iOS-userscripts.user.js"})(document); | |
(function(window, document) { | |
var host = window.location.host.split('.'); | |
document.head.appendChild(document.createElement('script')).src = 'https://rawgit.com/bo33b/' + ({ | |
duolingo() { | |
return '8485a04a0834a18bb1ceef71fad89b36/raw/duolingo.user.js' | |
}, | |
ebay() { |
This file contains hidden or 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
// ==UserScript== | |
// @name Duolingo Russian | |
// @description Duolingo Russian | |
// @namespace bo33b | |
// @author bo33b | |
// @version 1.1 | |
// @match https://www.duolingo.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>uuid one-liners</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
This file contains hidden or 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://web.archive.org/web/20160925022840/http://paste.osmc.io/raw/qiyekuvafe | |
#!/bin/sh | |
sudo apt-get update -y | |
sudo wget http://apt.osmc.tv/pool/main/a/a2dp-app-osmc/a2dp-app-osmc_1.0.7_all.deb -O a2dp.deb | |
sudo dpkg -i a2dp.deb | |
sudo apt-get -f -y install | |
sudo reboot | |
This file contains hidden or 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
Show hidden characters
[ | |
{ "keys": ["ctrl+,"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+."], "command": "toggle_minimap" }, | |
{ "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 6.0 } }, | |
{ "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -6.0 } }, | |
{ "keys": ["f5"], "command": "sftp_upload_file" }, | |
{ "keys": ["ctrl+f5"], "command": "sftp_upload_open_files" } | |
] |
This file contains hidden or 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
import("https://hongru.github.io/proj/canvas2image/canvas2image.js").then(function(module) { | |
alert("module ready"); | |
let width=1500;height=950; | |
Canvas2Image.saveAsJPEG(canvasObj, width, height) | |
}); | |
This file contains hidden or 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
body { | |
color: #333; | |
font-family: 'Segoe UI', 'Lucida Grande', Helvetica, sans-serif; | |
line-height: 1.5; | |
margin: 50px auto; | |
max-width: 800px; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
font-weight: normal; |
NewerOlder