##In the terminal:
$ sudo ipfw pipe 1 config bw 15KByte/s
$ sudo ipfw add 1 pipe 1 src-port 80
This will restrict all incoming bandwidth to 15 Kb. Change it to whatever value you like.
E.g.
alias sbs="cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/" |
<!--[if lte IE 8]> | |
<div class="old-browsers<?php if(isset($_COOKIE['hide-old-browser-content'])): ?> hide<?php endif; ?>"> | |
<p>It seems you are using an older version of Internet Explorer. While this site may work decently well, a lot of functionality might not work as expected or as well if you were using a modern browser. We suggest using <a href="https://www.google.com/intl/en/chrome/browser/" target="_blank">Google Chrome</a>, <a href="http://www.mozilla.org/en-US/firefox/new/" target="_blank">Mozilla Firefox</a>, or the latest version of <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie" target="_blank">Internet Explorer</a> (at least version 9) available on your computer. To read more about what browsers we support, <a href="http://blog.leagueapps.com/how-we-think-about-browser-support/" target="_blank">read this blog post</a>.</p> | |
<p id="hide-old-browser-content"><a href="#">Hide this notice</a></p> | |
</div> | |
<script type="text/javascript"> | |
function SetCookie(cookieName,cook |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Eat24 Weekend Coupon</title> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Single-Column Responsive Email Template</title> |
<!-- | |
chrome will start downloading this when the page renders | |
this can cause serious scroll lag if the image is not properly optimized | |
--> | |
<link rel="apple-touch-icon-precomposed" href="{url_here}" /> |
// email code in MC | |
<!--[if mso]> | |
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://leagueappspartnerdays.com/events/34496-leagueapps-partner-day-in-boston" arcsize="75%" strokecolor="#d54a1f" fillcolor="#fb8a06" style="height:40px;v-text-anchor:middle;width:300px;" > | |
<w:anchorlock/> | |
<center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;" >Register for our next<br>Partner Day in Boston</center> | |
</v:roundrect> | |
<![endif]--> | |
<a href="http://leagueappspartnerdays.com/events/34496-leagueapps-partner-day-in-boston" class="btn ctr two-line" style="background-color:#fb8a06;background-image:none;background-repeat:repeat;background-position:4c06);background-attachment:scroll;display:block;color:white;text-decoration:none;font-size:20px;text-shadow:0 1px 0 rgba(0,0,0,0.15), 0 2px 1px rgba(0,0,0,0.1);border-width:2px;border-style:solid;border-color:#d54a1f;mso-hide:all;letter-spacing:-.25px;border-radius:100px;line-height:22px; |
##In the terminal:
$ sudo ipfw pipe 1 config bw 15KByte/s
$ sudo ipfw add 1 pipe 1 src-port 80
This will restrict all incoming bandwidth to 15 Kb. Change it to whatever value you like.
E.g.
for i in *.[file_ext]; do mv "$i" "`echo $i | sed -e 's, ,-,g'`"; done | |
## where file_ext is something like png, gif, or jsp | |
## src: http://www.chrislongcreativeservices.com/replacing-spaces-in-file-names-on-osx/ |
// PHP | |
date("Y") | |
// Ruby | |
Time.now.year | |
// Python | |
print date.today().year + 1 | |
// Java |