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
//handles tab inactivity | |
var vis = (function() { | |
var stateKey, eventKey, keys = { | |
hidden: "visibilitychange", | |
webkitHidden: "webkitvisibilitychange", | |
mozHidden: "mozvisibilitychange", | |
msHidden: "msvisibilitychange" | |
}; | |
for (stateKey in keys) { | |
if (stateKey in document) { |
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 html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Promise Chain Example (supported by ALL browsers except IE11)</title> | |
<link rel="author" href="humans.txt"> | |
</head> | |
<body> |
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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
RewriteRule ^(wp-(content|admin|includes).*) $1 [L] |
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
follow instructions here for mojave: | |
https://getgrav.org/blog/macos-mojave-apache-mysql-vhost-apc | |
//httpd conf file is here: | |
/usr/local/etc/httpd/httpd.conf | |
//in httpd conf, the virtual hosts file is here: | |
sublime /usr/local/etc/httpd/extra/httpd-vhosts.conf | |
//if you run into root issues, all domains pointing to one page, check the following in httpd.conf: |
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
#First, put all your new code in the /trunk folder of your local svn repo | |
#use this to copy to a new tag (1.0.2): | |
svn cp trunk tags/1.0.2 | |
#use this to check in | |
svn ci -m "tagging version 1.0.2" | |
#You may need to use your credentials upon submit | |
#if you need to delete your work to redo, use: | |
svn update | |
svn delete tags/1.0.2 |
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
#replace (Drive Name), go cd / and see what the volume is named | |
#replace (level 0-4) with 4 for a full wipe | |
#ref: http://osxdaily.com/2016/04/28/erase-free-space-mac-command-line/ | |
diskutil secureErase freespace (level 0-4) /Volumes/(Drive Name) |
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
<!--white-space:nowrap will force divs to ignore whitespace with inline-block, be sure to reset whitespace to normal on the | |
child elements to keep formattting correct--> | |
<div style="width:100%; white-space:nowrap;"> | |
<div style="width:50%; display:inline-block; white-space:normal">HOlA</div> | |
<div style="width:50%; display:inline-block; white-space:normal">MUCHACHO</div> | |
</div> |
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 | |
#don't forget chmod+x darkslack.sh | |
echo "document.addEventListener('DOMContentLoaded', function() { | |
$.ajax({ | |
url: 'https://raw.githubusercontent.com/laCour/slack-night-mode/master/css/raw/black.css', | |
success: function(css) { | |
let overrides = 'code { background-color: #535353; color: #85c5ff; }.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }'; | |
\$('<style></style>').appendTo('head').html(css + overrides); | |
} | |
}); |
NewerOlder