Add the styles to the .atom/styles.less
stylesheet in Atom.
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
<!-- | |
For other language: Instead of `ace/mode/ruby`, Use | |
Markdown -> `ace/mode/markdown` | |
Python -> `ace/mode/python` | |
C/C++ -> `ace/mode/c_cpp` | |
Javscript -> `ace/mode/javascript` |
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |
This installation is going to require 2 servers one acts as kerberos KDC server
and the other machine is going to be client. Lets assume the FQDN's are (here
cw.com
is the domain name, make a note of the domain name here):
- Kerberos KDC Server: kdc.cw.com
- Kerberos Client: kclient.cw.com
Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in
# 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 |
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
################################################################## | |
### 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! | |
# |