For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
/** | |
* @desc It triggers mouse event. | |
* @param {HTMLElement} element target DOM element | |
* @param {string} type type of event | |
* @param {number} x clientX of event | |
* @param {number} y clientY of event | |
*/ | |
export function simulateEvent(element, type, x, y) { | |
const mouseEvent = new MouseEvent(type, { | |
screenX: 0, |
function DeepLinker(options) { | |
if (!options) { | |
throw new Error('no options') | |
} | |
var hasFocus = true; | |
var didHide = false; | |
// window is blurred when dialogs are shown | |
function onBlur() { |
Also posted here: http://18pct.com/sending-bash-and-zsh-commands-to-syslog/
Your bash/zsh history is great if its complete, but it doesn't capture commands across all users, sudo's, root commands etc. In particular with test environments, someone may perform a "one-off" procedure and then months later it needs to be repeated. It would be nice to be able to look up what the user did at the time, and searching through multiple, possibly truncated history files is a pain.
Tools like typescript are great if you're actively documenting, but not something you would use all the time in practice and capture more than just a history of your commands. There are third-party tools like rootsh and Snoopy that can accomplish this, but third-party tools can be overkill if all you want is a quick reference in a re
AWS 학습 링크집 시리즈
- AWS 학습 자료집 http://bit.ly/aws-study-resource
- 비공식 AWS 공인 솔루션스 아키텍트 - 어소시에이트 수험 가이드 http://bit.ly/sacertguide
- 비공식 AWS 공인 개발자 - 어소시에이트 수험 가이드 http://bit.ly/devcertguide
- AWS 보안 관련 컨텐츠 모음집 http://bit.ly/secontents
AWS 보안 관련 컨텐츠 모음집(http://bit.ly/secontents)
AWS 공식문서 중 보안에 관련된 자료들을 한글 자료 중심으로 정리한 페이지 입니다.
- AWS Security Information Center 한글 자료 위주로 정리된 AWS 보안 정보 포털 사이트 입니다.
# Docker-in-Docker Gitlab runners setup taken from: | |
# https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca | |
dind: | |
restart: always | |
privileged: true | |
volumes: | |
- /var/lib/docker | |
image: docker:17.09.0-ce-dind | |
command: | |
- --storage-driver=overlay2 |
from datetime import datetime | |
from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
from flask_security import current_user | |
class AuditMixin(object): | |
created_at = Column(DateTime, default=datetime.now) | |
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |