- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
import os | |
import time | |
import re | |
import subprocess | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
def get_relative_path(path): | |
return os.path.relpath(path) |
/*** Publishing: Hide things that aren't very useful for a read-only view */ | |
/** Hide page properties (public pages will always have public: true) */ | |
.content .pre-block { display: none; } | |
/** Title */ | |
/* Make title non-editable */ | |
#main-container .page-title { pointer-events: none; } | |
/** Hide useless sidebar stuff */ |
chrome://global/locale/global-strres.properties | |
chrome://branding/locale/brand.properties | |
chrome://global/locale/commonDialogs.properties | |
chrome://global/locale/css.properties | |
chrome://global/locale/dom/dom.properties | |
chrome://global/locale/intl.properties | |
chrome://global/locale/layout/HtmlForm.properties | |
chrome://global/locale/layout/htmlparser.properties | |
chrome://global/locale/layout_errors.properties | |
chrome://global/locale/mathml/mathml.properties |
#!/usr/bin/env sh | |
addstuff=y; true && echo "a b$([ $addstuff = "y" ] && echo \" c\")" | |
# a b" c" | |
addstuff=y; stufftoadd=" c d"; true && echo a b$([ $addstuff = "y" ] && echo $stufftoadd) | |
# a bc d |
/* ==UserStyle== | |
@name Declutter Outlook | |
@namespace https://github.com/solarkraft | |
@version 1.0.2 | |
@description Remove all the unnecessary junk from the Outlook Web App and polish it a little | |
@author solarkraft | |
==/UserStyle== */ | |
@-moz-document domain("outlook.office.com") { | |
#app > div > div:nth-child(2) { |
[ | |
// Quickly run tasks | |
{ | |
"key": "cmd+r", | |
"command": "workbench.action.tasks.reRunTask" | |
}, | |
{ | |
"key": "shift+cmd+r", | |
"command": "workbench.action.tasks.runTask" | |
}, |
#!/usr/bin/env bash | |
path=$1 | |
check() { | |
file=$1 | |
echo "Checking $file" | |
# Anything matching /._* | |
if [[ $file =~ \/\._. ]] || [[ $file =~ \/\.DS_Store ]]; then | |
echo "Shut up $file" |
#!/usr/bin/env python | |
import sys | |
import tty | |
import termios | |
import asyncio | |
import websockets | |
uri = "ws://192.168.2.69:8266" | |
password = "" |
{ | |
"useTabs": true, | |
"tabWidth": 4, | |
"semi": false, | |
"printWidth": 120 | |
} |