# Maintainer:  Markus Tacker <[email protected]>
# Based on the QL-700 PKGBUILD -> Jacob Alexander <[email protected]>
pkgname=brother-ql720nw-lpr
pkgver=1.0.1
| require 'digest/md5' | |
| def gfm(text) | |
| # Extract pre blocks | |
| extractions = {} | |
| text.gsub!(%r{<pre>.*?</pre>}m) do |match| | |
| md5 = Digest::MD5.hexdigest(match) | |
| extractions[md5] = match | |
| "{gfm-extraction-#{md5}}" | |
| end | 
| $('div').text('The code to show this text was loaded from a different server, this remote script, instructed to update all the div\'s'); | 
| #!/usr/bin/env ruby -wKU | |
| require "rubygems" | |
| require "appscript" | |
| include Appscript | |
| chrome = app("Google Chrome") | |
| safari = app("Safari") | |
| chrome_tab = chrome.windows[1].active_tab | 
| #! usr/bin/env ruby | |
| require 'chunky_png' | |
| class ChunkyPNG::Image | |
| # s: Integer (pixel size) | |
| def pixelize s = 10 | |
| temp = Array.new((height*1.0/s).ceil) {Array.new((width*1.0/s).ceil) {Array.new(3) {0}}} | |
| height.times {|j| width.times {|i| ChunkyPNG::Color.to_truecolor_bytes(get_pixel(i,j)).each.with_index {|e,k| temp[j/s][i/s][k] += e}}} | |
| png = ChunkyPNG::Image.new width, height | |
| sq = s**2 | 
 
        | require 'pry' | |
| require 'json' | |
| require 'uri' | |
| module Application | |
| class NginxLogParser | |
| DEFAULT_FORMAT_REGEXP = /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s?\-\s?-\s?\[(\d{2}\/[a-z]{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|\-)\d{4})\]\s?\\?"?(GET|POST|PUT|HEAD|DELETE|OPTIONS)\s?(.*?)\s(HTTP\/\d\.\d)\\?"?\s?(\d{3})\s?(\d+)\s?\\?\"\-\\?\"\s?\\?\"(.*?)\"/i | |
| REQUEST_FORMAT = [ | 
| #!/bin/bash | |
| sudo apt-get -y install cups | |
| sudo apt-get -y install cups-pdf | |
| # add pdf printer to cups | |
| # - named files end up in ~/PDF/ | |
| # - unnamed files are stored in /var/spool/cups-pdf/ANONYMOUS/, such as PDF:s created by streaming bytes over an API | |
| sudo lpadmin -p cups-pdf -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf/CUPS-PDF.ppd | 
# Maintainer:  Markus Tacker <[email protected]>
# Based on the QL-700 PKGBUILD -> Jacob Alexander <[email protected]>
pkgname=brother-ql720nw-lpr
pkgver=1.0.1
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation | 
| #!/bin/bash | |
| # you might need cadaver | |
| # brew install cadaver | |
| IPADDR=192.168.39.171 | |
| TARGETFOLDER=~/Desktop/machine_1 | |
| while :; do |