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
<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 |
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
# /lib/systemd/system/redmine.service | |
[Unit] | |
Description=Redmine Puma server | |
After=network.target | |
[Service] | |
Type=simple | |
User=<username> |
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
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 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 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 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 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
#!/usr/bin/env python3 | |
import urllib.parse as parse | |
import os | |
def print_usage(): | |
print('Usage: decodeurl.py encodedfilename') | |
def main(fname): | |
if not os.path.isabs(fname): |
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
# vim:syntax=apparmor | |
# Last Modified: Fri Jul 17 11:46:19 2009 | |
# Author: Jamie Strandboge <jamie@canonical.com> | |
#include <tunables/global> | |
/sbin/dhclient { | |
#include <abstractions/base> | |
#include <abstractions/nameservice> | |
capability net_bind_service, |
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
<!DOCTYPE busconfig PUBLIC | |
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | |
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | |
<busconfig> | |
<policy user="root"> | |
<allow own="org.freedesktop.NetworkManager"/> | |
<allow send_destination="org.freedesktop.NetworkManager"/> | |
<allow send_interface="org.freedesktop.NetworkManager"/> | |
<allow own="org.freedesktop.NetworkManager.PPP"/> |
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
# This git alias allows you to move | |
# to the root of a local git repository | |
# (if you are in the repo) | |
# define a shortcut to git root | |
git config --global alias.root 'rev-parse --show-toplevel' | |
# Usage: go to the git root | |
cd $(git root) | |
# Usage: add all under the git root |
OlderNewer