For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
<!-- Tab links at top, always visible with one 'active' --> | |
<ul class="nav nav-tabs"> | |
<li ng-repeat="tab in tabs" ng-class="{active: selectedTab == tab}" ng-click="selectedTab = tab"> | |
<a ng-href="#{{tab.id}}">{{tab.title}}</a> | |
</li> | |
</ul> | |
<!-- Tab contents, only one ever visible --> | |
<div class="tab-content"> | |
<div ng-repeat="tab in tabs" class="tab-pane" ng-class="selectedTab == tab && 'active' || 'hide'" id="{{tab.id}}"> |
/** | |
* Inspired by AngularJS' implementation of "click dblclick mousedown..." | |
* | |
* This ties in the Hammer events to attributes like: | |
* | |
* hm-tap="add_something()" | |
* hm-swipe="remove_something()" | |
* | |
* and also has support for Hammer options with: | |
* |
/* | |
Grep.js | |
Author : Nic da Costa ( @nic_daCosta ) | |
Created : 2012/11/14 | |
Version : 0.2 | |
(c) Nic da Costa | |
License : MIT, GPL licenses | |
Overview: | |
Basic function that searches / filters any object or function and returns matched properties. |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done
;;; company-insert-selected.el | |
;; | |
;; Similar to the way neocomplete package from Vim deals with autocompletion | |
;; | |
(defvar-local company-insert-selected--overlay nil) | |
(defun company--company-command-p (keys) | |
"Checks if the keys are part of company's overriding keymap" | |
(or (equal [company-dummy-event] keys) |
import sys | |
def j(lineno): | |
frame = sys._getframe().f_back | |
called_from = frame | |
def hook(frame, event, arg): | |
if event == 'line' and frame == called_from: | |
try: | |
frame.f_lineno = lineno |
;;;; A webserver in Emacs, because why not. | |
;;;; Basically a fast replacement for serve_this in Fish. | |
(use-package web-server | |
:config | |
(defvar my/file-server nil "Is the file server running? Holds an instance if so.") | |
(defun my/ws-start (handlers port &optional log-buffer &rest network-args) |