This file contains hidden or 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
| /^([\\(+. ]*64[\\)-. ]*|[+ ]*|[+-. ]*)/ |
This file contains hidden or 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
| ^([\\(+. ]*64[\\)-. ]*|[+ ]*|[+-. ]*) |
This file contains hidden or 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
| // This script, when used with Google Apps Scripts will delete 500 emails and can be triggered to run every minute without user interaction enabling you to bulk delete email in Gmail without getting the #793 error from Gmail. | |
| // Configure the search query in the code below to match the type of emails you want to delete | |
| // Browser to https://script.google.com/. | |
| // Start a script and paste in the code below. | |
| // After you past it in, save it and click the little clock looking button. This is for your triggers. You can set up how frequently you want the script to run (I did mine for every minute). | |
| // Source : # https://productforums.google.com/d/msg/gmail/YeQVDuPIQzA/kpZPDDj8TXkJ | |
| function batchDeleteEmail() { | |
| var batchSize = 100 // Process up to 100 threads at once |
This file contains hidden or 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
| members.conzealand.nz { | |
| log stdout | |
| errors stdout | |
| proxy / members_production:3000 { | |
| transparent | |
| } | |
| } | |
| members-staging.conzealand.nz { | |
| log stdout |
This file contains hidden or 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
| // Prereq: underscore.js and jquery loaded | |
| var p1 = $.Deferred(); | |
| var p2 = $.Deferred(); | |
| // We want something that chains promises, so something like... | |
| //p1.done( | |
| // function addNext() { | |
| // p2.done( | |
| // function addNext() { |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| _ "image/png" | |
| "net/http" | |
| "os" | |
| "regexp" | |
| "sync" |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # gpg_folder - Script to quickly tar, compress and encrypt directories | |
| # Copyright (C) 2017 Matthew B. Gray | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| def get_lines(output) | |
| output.lines.map(&:chomp).map(&:strip) | |
| end | |
| available = get_lines(`rbenv install -l`).select { |v| v.match(/^[\d\.]+$/) } | |
| installed = get_lines(`rbenv versions`) | |
| puts |
This file contains hidden or 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
| " .vimrc configuration file | |
| " Copyright (C) 2013 Matthew B. Gray | |
| " | |
| " Permission is granted to copy, distribute and/or modify this document | |
| " under the terms of the GNU Free Documentation License, Version 1.3 | |
| " or any later version published by the Free Software Foundation; | |
| " with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. | |
| " A copy of the license is included in the section entitled "GNU | |
| " Free Documentation License". |
This file contains hidden or 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
| To get Git to diff between your odt/odp/ods files you will need to do the following things: | |
| Install a conversion tool | |
| $ sudo yum install odt2txt | |
| Create your git config info directory if it's not already there | |
| $ mkdir -p ~/.config/git/info | |
| Add in attributes (you can paste this straight in or edit the file accordingly) | |
| $ cat > ~/.config/git/info/attributes <<DELIM |
NewerOlder