This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% comment %} Width of results box {% endcomment %} | |
| {% assign results_box_width = '242px' %} | |
| {% comment %} Background color of results box {% endcomment %} | |
| {% assign results_box_background_color = '#ffffff' %} | |
| {% comment %} Border color of results box {% endcomment %} | |
| {% assign results_box_border_color = '#d4d4d4' %} | |
| <script> | |
| $(function() { | |
| // Current Ajax request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% layout none %} | |
| {% capture results %} | |
| {% for item in search.results %} | |
| {% assign product = item %} | |
| { | |
| "title" : {{ product.title | json }}, | |
| "url" : {{ product.url | within: product.collections.last | json }}, | |
| "thumbnail": {{ product.featured_image.src | product_img_url: 'thumb' | json }} | |
| } | |
| {% unless forloop.last %},{% endunless %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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" | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
OlderNewer