Skip to content

Instantly share code, notes, and snippets.

View antonydevanchi's full-sized avatar
💭
I may be slow to respond.

Anton Piskunov antonydevanchi

💭
I may be slow to respond.
View GitHub Profile
@antonydevanchi
antonydevanchi / JIRA.properties
Created May 26, 2018 19:22 — forked from iods/JIRA.properties
JIRA Gist for Properties - Defaults
# This file contains defaults for application properties
#
# The keys must match up with the keys found in APKeys.java
#
# NB - the values in this file are not automatically
# handed to the application. The special call
# ApplicationProperties().getDefaultBackedString()
# will return the values in this file if they are not found
# in the database
package com.onresolve.base.test.rest.jstestutils
import com.atlassian.bitbucket.auth.AuthenticationContext
import com.atlassian.bitbucket.permission.Permission
import com.atlassian.bitbucket.permission.PermissionService
import com.atlassian.bitbucket.project.ProjectService
import com.atlassian.bitbucket.repository.RepositoryService
import com.atlassian.bitbucket.repository.RepositoryUpdateRequest
import com.atlassian.sal.api.component.ComponentLocator
import com.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate
package com.onresolve.base.test.rest.jstestutils
import com.atlassian.bitbucket.auth.AuthenticationContext
import com.atlassian.bitbucket.permission.Permission
import com.atlassian.bitbucket.permission.PermissionService
import com.atlassian.bitbucket.project.ProjectService
import com.atlassian.bitbucket.repository.RepositoryService
import com.atlassian.bitbucket.repository.RepositoryUpdateRequest
import com.atlassian.sal.api.component.ComponentLocator
import com.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate
# Generate Private Key
$ openssl genrsa -out server.key 2048
# Generate CSR
$ openssl req -new -out server.csr -key server.key -config openssl.cnf
# => Fill in info
# Check CSR
$ openssl req -text -noout -in server.csr
# Sign Cert
$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions v3_req -extfile openssl.cnf
@antonydevanchi
antonydevanchi / how-to-set-up-stress-free-ssl-on-os-x.md
Created June 27, 2018 03:04 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@antonydevanchi
antonydevanchi / infinality settings
Created August 18, 2018 01:18 — forked from jarun/infinality settings
infinality-settings.sh
##################################################################
### INFINALITY ENVIRONMENT VARIABLES FOR EXTRA RUN-TIME OPTIONS ##
##################################################################
#
# These environment variables require that their respective patches
# from http://www.infinality.net have been applied to the Freetype
# installation you are using. They will do abolutely
# nothing otherwise!
#
@antonydevanchi
antonydevanchi / meritt.zsh-theme
Created August 18, 2018 23:37 — forked from meritt/meritt.zsh-theme
My ZSH theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# Based on Agnoster's Theme — https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts)
# [Solarized theme](https://github.com/altercation/solarized/)
# [iTerm 2](http://www.iterm2.com/)
### Segment drawing
@antonydevanchi
antonydevanchi / 0_input.md
Created January 20, 2019 09:30 — forked from niquola/0_input.md
Генерация уникального идентификатора для МО

Алгоритм кодирования объектов должен быть разработан с учетом требований национального стандарта РФ ГОСТ Р ИСО/МЭК 9834-1-2009 и методических рекомендаций Министерства здравоохранения РФ, приведенных в документе «Комплект спецификаций и технических условий обмена стандартизированными электронными медицинскими документами и сведениями для IHE-совместимых информационных систем». Регистра МО РФ (MDR308, OID: 1.2.643.5.1.13.2.1.1.178)

http://www.gosthelp.ru/gost/gost49025.html

@antonydevanchi
antonydevanchi / README.md
Last active March 6, 2022 04:56
Download all images from undraw.co/illustrations
@antonydevanchi
antonydevanchi / GPG-Tower
Created April 19, 2019 00:19 — forked from LeonardoCardoso/GPG-Tower
How to setup Tower to use the GPG Suite
# GPG on Tower