THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
Moved to github.com/rafi/notebook
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <h1 id="message"></h1> | |
| <script type="text/javascript"> | |
| var now = new Date, | |
| hours_float = now.getHours()+(now.getMinutes()/60), |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Timer</title> | |
| </head> | |
| <body> | |
| <h2>Current Time: </h2> | |
| <div id="time"></div> | |
| <script type="text/javascript"> | |
| var now; |
| <?php | |
| try | |
| { | |
| $length = 8; | |
| $start_time = microtime(TRUE); | |
| for ($i = 1; $i <= 10000; $i++) | |
| { | |
| $token = $this->rand_alphanumeric($length); | |
| if (strlen($token) !== $length) | |
| throw new Exception('Token "'.$token.'" length is invalid. token length is '.(strlen($token)).' instead of '.$length); |
| # this forces dpkg not to call sync() after package extraction and speeds up install | |
| RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup | |
| # we don't need and apt cache in a container | |
| RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache |
| #!/usr/bin/python | |
| ############################################################################### | |
| # | |
| # file: gmail-count | |
| # | |
| # Purpose: generates a string value representing the Gmail unread email count. | |
| # | |
| # Usage: pipe the i3status with this script (see i3status manpage) | |
| # or use conky. | |
| # |
| # github.com/rafi i3status config | |
| # i3status configuration file | |
| # see "man i3status" for documentation. | |
| # It is important that this file is edited as UTF-8. | |
| # The following line should contain a sharp s: | |
| # ß | |
| # If the above line is not correctly displayed, fix your editor first! |
| $ = jQuery | |
| queues = {} | |
| running = false | |
| queue = (name) -> | |
| name = 'default' if name is true | |
| queues[name] or= [] | |
| next = (name) -> |