Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
#!/usr/bin/env python | |
import os | |
import sys | |
import argparse | |
import logging | |
from datetime import datetime, timedelta | |
from typing import List, Optional | |
from collections import defaultdict |
{ | |
"2008/01/31":[ | |
"GHC", | |
"MDP", | |
"GAS", | |
"AZO", | |
"MIL", | |
"MXA", | |
"ASH", |
NOTE: This gist wasn't given so much attention while writing. So please ignore any typos or meaningless sentences.
One might run in a case when they need to extract some information from a log file and get that information into a CSV file.
This once happened to me to look into the logs for an email sendout worked to findout the ids of users to whom we sent the emails to for a particular day. Luckily, our email service prints out to the log, the user object and the type of the email that is sent to that user object. Each line in the log file looks like this
Vue.filter('limit', function(array, length) { | |
var limitCount = parseInt(length, 10); | |
if (limitCount <= 0) { | |
("development") !== 'production' && _.warn( | |
'The limit filter requires an argument defining the limit count.' | |
); | |
return array; | |
} | |
return array.slice(0, limitCount); | |
}); |
// OSX | |
open -na Google\ Chrome --args --disable-web-security --user-data-dir="/tmp/chrome_dev" |
EnableScript("JScript"); | |
<% | |
function getArrayLength( a ) { | |
x = VBArray( a ).toArray(); | |
for ( y = 0; y < x.length; y += 1 ) { | |
if ( x[y] == undefined ) break; | |
} | |
return y; | |
} |
HOWTO: Verify Debian ISO Downloads (from OS X) | |
- Download the required ISO from http://www.debian.org/CD/. Also download the SHA512SUMS and SHA512SUMS.sign files. (of course MD5SUM etc. work fine, but as long as we're being paranoid, we might as well go all the way) | |
- Install GPGTools if needed https://www.gpgtools.org/ | |
- Verify the signature on SHA512SUMS |