#Docker
##Files and Folders.
|
|\_ app
|...
|\_ docker
| |
(function ($) { | |
$(function () { | |
AJS.dialog2.on("show", function (e) { | |
var targetId = e.target.id; | |
if (targetId == "my-own-dialog") { | |
var someDialog = AJS.dialog2(e.target); | |
$(e.target).find("#dialog-close-button").click(function (e) { | |
e.preventDefault(); | |
someDialog.hide(); | |
someDialog.remove(); |
package examples.docs | |
import com.atlassian.greenhopper.service.rapid.view.RapidViewService | |
import com.atlassian.greenhopper.service.sprint.SprintIssueService | |
import com.atlassian.greenhopper.service.sprint.SprintManager | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean | |
import com.onresolve.scriptrunner.runner.customisers.WithPlugin |
import com.atlassian.jira.component.ComponentAccessor; | |
import com.atlassian.jira.issue.CustomFieldManager; | |
import com.atlassian.jira.ComponentManager; | |
import com.atlassian.jira.issue.fields.CustomField; | |
import com.atlassian.jira.issue.IssueManager; | |
import com.atlassian.jira.issue.Issue; | |
import com.atlassian.jira.issue.customfields.manager.OptionsManager; | |
import com.atlassian.jira.issue.fields.config.FieldConfig; | |
import com.atlassian.jira.issue.context.IssueContextImpl; | |
import com.atlassian.jira.issue.customfields.manager.OptionsManager; |
version: '3.7' | |
services: | |
nginx: | |
image: nginx:1.15.9-alpine | |
container_name: dle-nginx | |
# restart: unless-stopped | |
volumes: | |
- ./data/nginx:/etc/nginx/conf.d | |
- ./data/certbot/conf:/etc/letsencrypt |
#Docker
##Files and Folders.
|
|\_ app
|...
|\_ docker
| |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
#The command to run, built from the raw link of this gist | |
#START http://boxstarter.org/package/url?https://gist.github.com/bunchc/44e380258384505758b6244e615e75ed/raw/d648fffc21cb3cc7df79e50be6c05b05d29c79cc/0-SystemConfiguration.txt | |
######################################### | |
# Set Execution Policy # | |
######################################### | |
# Boxstarter options | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? |
# Installation | |
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
# Easy Peasy | |
ffmpeg -i video.mp4 video.webm |
require 'net/http' | |
def working_url?(url_str) | |
url = URI.parse(url_str) | |
Net::HTTP.start(url.host, url.port) do |http| | |
http.head(url.request_uri).code == '200' | |
end | |
rescue | |
false | |
end |
/* | |
Implementing Semantic UI and Algolia search can be a pain in the but if you're not use to deal with Semantic UI API stuff. This feels a little bit hackish but so far it works well enough; bonus for not needing the Algolia javascript client. | |
*/ | |
var algolia = { | |
id: "Algolia app ID", | |
key: "Public key", | |
index: "Index name" | |
}; |