Skip to content

Instantly share code, notes, and snippets.

Working hard !

Davin Kevin davinkevin

Working hard !
View GitHub Profile
jirutka / LICENSE
Last active Jan 22, 2022
Generate a new GPG key pair in a temporary GPG Home and export it to a file. It can run completely unattended, without prompting for a passphrase.
The MIT License
Copyright 2018-2019 Jakub Jirutka <>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
davinkevin / How long is a digest cycle ?
Last active Dec 14, 2016
Count the number of watchers in AngularJS 1 include in bookmarklet
View How long is a digest cycle ?
javascript:(function() {
if (!angular) {
alert('Not a angular application or window.angular not found');
var entryNode = document.querySelector('[ng-app]') || document.querySelector('.ng-scope');
if (!entryNode) {
alert('No entryPoint found');
topheman /
Created Aug 4, 2015
Travis setup of Github token for jspm
davinkevin / MultipartFileSender
Created Feb 10, 2015
Implementing HTTP byte-range requests in Spring 4 and other framework...
View MultipartFileSender
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;