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 gmail_schedule_delete() { | |
var current = new Date(); | |
var onedaymilli = 24 * 60 * 60 * 1000; | |
Logger.log("Current date: " + current); | |
var label_common = "(schedule delete)/after "; | |
var sublabels = [["1 week", 7], | |
["2 weeks", 14], | |
["1 month", 30], | |
["3 months", 90], |
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
/* copy and paste below in web browser console | |
* source: https://www.reddit.com/r/youtube/comments/2jfdzf/how_to_remove_all_videos_from_watch_later/cof5cbb */ | |
function d(){ | |
var el = document.getElementsByClassName('pl-video-edit-remove'); | |
if (el.length > 0) { | |
el[el.length-1].click(); | |
setTimeout(d,300); | |
} | |
} |
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
net stop spooler | |
del %systemroot%\System32\spool\printers\* /Q /F /S | |
net start spooler |
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 pandas as pd | |
pd.set_option('max_rows', 999, | |
'expand_frame_repr', False) | |
def parse_reg(h): | |
txt = '' | |
if not h & (1 << 0): | |
return '-' | |
if not h & (1 << 1): | |
txt += 'NO-IBSS ' |
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
# /lib/systemd/system/redmine.service | |
[Unit] | |
Description=Redmine Puma server | |
After=network.target | |
[Service] | |
Type=simple | |
User=<username> |
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
<head> | |
<script src="js/jquery-3.1.0.min.js"></script> | |
<script src="js/spreadcell.js"></script> | |
</head> | |
<body> | |
<div id="mlb"> | |
Loading content... | |
</div> | |
<script> | |
// prepare a callback funciton |
NewerOlder