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
import Shortcuts 1092.8.7 | |
#Color: Red, #Icon: shortcuts | |
// TODO: Add a check to see if at work and only use reminders from work if that's the case | |
filterReminders(input: All Reminders, filterType: All, filter: {Is Not Completed}, sortBy: End Date, order: Latest First) ->[Base Reminder List] | |
// Check for reminders due before now | |
filterReminders(input: Base Reminder List, filter: {Due Date: .before: Current Date}) ->[Past Reminder List] | |
// First, check for high priority reminders |
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 | |
if [ ! -d /etc/letsencrypt/live ]; then | |
echo "No letsencrypt directory found" | |
exit 1 | |
fi | |
function issueCert { | |
/root/.local/share/letsencrypt/bin/letsencrypt certonly $1 | |
return $? | |
} |
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
package main | |
import ( | |
cryptorand "crypto/rand" | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"math/big" | |
"math/rand" |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"time" | |
"github.com/jeromer/syslogparser" |
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
local ffi = require("ffi") | |
local pcre = ffi.load("pcre") | |
ffi.cdef([[ | |
typedef struct real_pcre pcre; | |
typedef struct pcre_extra pcre_extra; | |
typedef const char * PCRE_SPTR; | |
static const int PCRE_STUDY_JIT_COMPILE = 0x0001; |
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 | |
(echo "Program Source Destination"; (netstat -lantp | grep ESTABLISHED | awk '{print $7" "$4" "$5}' | sort -u)) | column -t |
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
### | |
Roster Linter | |
Created by Michael "NightExcessive" Johnson | |
Released under the MIT License | |
### | |
PublicCache = CacheService.getPublicCache() | |
class StringUtil | |
@isAlphanumeric: (char) -> |
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
var timerFunc; | |
if(window.performance) { | |
timerFunc = performance.now.bind(performance); | |
} else { | |
timerFunc = Date.now.bind(Date); | |
} | |
if(window.xhr) { xhr.abort(); } | |
xhr = new XMLHttpRequest(); | |
xhr.responseType = "blob"; |
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
<link rel="import" href="../smoothie-chart/smoothie-chart.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
package main | |
import ( | |
"bytes" | |
"flag" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" |
NewerOlder