I hereby claim:
- I am milanaleksic on github.
- I am milanaleksic (https://keybase.io/milanaleksic) on keybase.
- I have a public key whose fingerprint is DF46 6544 CFD4 69A5 4FA0 1F6A D92A 3E9D 70AC 479D
To claim this, I am signing this object:
| # NOTE: Gmail doesn't allow usage of service accounts for _personal GMail accounts_, you need OAuth client key | |
| import base64 | |
| import json | |
| import logging | |
| import os.path | |
| from google_auth_oauthlib.flow import InstalledAppFlow | |
| from googleapiclient.discovery import build |
| # as long as your functions are located in files mentioned in the "in" clause of the for below | |
| # and as long as functions are following the same pattern of "function_name() {" with a single comment above, | |
| # the function below will list them all in a nice way | |
| # lists all known functions | |
| functions() { | |
| for f in ~/.dockerfunc ~/.functions ~/bash/.extra_* | |
| do |
| 'use strict'; | |
| var aws = require('aws-sdk'); | |
| var https = require('https'); | |
| var ses = new aws.SES(); | |
| var processingContext = { | |
| noOfSuccesses: 0, | |
| failures: [], | |
| endpoints: [ |
| package main | |
| import ( | |
| "bufio" | |
| "errors" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "net/http/cookiejar" |
I hereby claim:
To claim this, I am signing this object:
Rank Author : Title (Year)
| #!/bin/bash | |
| perl -e 'use POSIX qw(strftime); $i=0; while($i<10) { $dt=strftime "%Y-%m-%d",localtime(time()- 3600*$i*24); print $dt.": "; print `cat server.log | grep "server restarted" | grep -c "$dt"`; $i++; }' |
| { | |
| "_type" : "shell", | |
| "_style" : "{dialog_trim}", | |
| "_name" : "myFormShell", | |
| "text" : "[title]", | |
| "size" : "300,120", | |
| "layout" : { | |
| "_type" : "gridLayout", | |
| "numColumns" : 2 | |
| }, |
| package misc | |
| String bookmarksFile = 'c:/temp/bookmarks.html' | |
| def counter = new java.util.concurrent.atomic.AtomicInteger(0) | |
| Map<String, String> urls = [:] | |
| Map<String, String> badURLs = [:] | |
| new File(bookmarksFile).eachLine { line -> | |
| (line =~ /(?i)<A HREF="([^"]+)"[^>]*>([^<]*)<.*/).each { entire, linkLocation, linkName -> |
| package misc | |
| import groovy.json.JsonSlurper | |
| // Pretraga za "Bat" gadja naredni URL: http://sg.media-imdb.com/suggests/b/bat.json | |
| def getMatchesForInput(input) { | |
| String content | |
| try { | |
| InputStream stream = new URL("http://sg.media-imdb.com/suggests/${input[0]}/${input}.json").openStream() |