Skip to content

Instantly share code, notes, and snippets.

View romans127's full-sized avatar
πŸ’­
Engineering Stuff

Ryan Watts romans127

πŸ’­
Engineering Stuff
View GitHub Profile
@romans127
romans127 / intellij.bat
Last active April 4, 2023 07:53 — forked from amnuts/phpstorm.bat
Add context menu to Windows 7 to open file/folder in Intellij Idea
@echo off
SET IntellijPath=C:\Program Files\JetBrains\IntelliJ IDEA 173.2463.16\bin\idea64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in Intellij" /t REG_SZ /v "" /d "Open in Intellij" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in Intellij" /t REG_EXPAND_SZ /v "Icon" /d "%IntellijPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in Intellij\command" /t REG_SZ /v "" /d "%IntellijPath% \"%%1\"" /f
echo Adding folder entries
@romans127
romans127 / Dockerfile
Last active July 17, 2017 17:00
Nuxt Docker Deployment
FROM node:latest
RUN mkdir /app
WORKDIR /app
ADD . /app
RUN npm install
RUN npm run build
@romans127
romans127 / webstorm.cmd
Created April 3, 2017 19:31 — forked from mac2000/webstorm.cmd
Open with WebStorm context menu
@ECHO OFF
REM Remove registry if any
REG DELETE "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /f
REM Get WebStorm executable path
FOR /F "usebackq tokens=3*" %%A IN (`REG QUERY "HKEY_CLASSES_ROOT\Applications\WebStorm.exe\shell\open\command"`) DO (
SET WEBSTORM=%%A %%B
)
@romans127
romans127 / cloudSettings
Last active May 14, 2017 01:56
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-05-14T01:56:09.468Z","extensionVersion":"v2.7.0"}
@romans127
romans127 / ajaxData.cfc
Created September 12, 2016 21:38 — forked from stevewithington/ajaxData.cfc
Mura CMS : jQuery Ajax example. Sometimes, you'll need to access a file via Ajax in Mura. Some key things to keep in mind are 1) You cannot directly access a .cfm file located under a SiteID unless a) it resides in a directory called 'remote' [as of v6.1], or b) You edit the file located under /{SiteID}/includes/Application.cfc on approximately …
<cfscript>
// Save this file to a path such as /{SiteID}/includes/themes/{ThemeName}/remote/ajaxData.cfc
component {
remote string function getData(siteid='default', contentid='00000000000000000000000000000000001') returnformat='plain' {
var str = '';
var $ = get$(arguments.siteid, arguments.contentid);
savecontent variable='str' {
WriteOutput("<h1>Hello from ajaxData.cfc</h1>
@romans127
romans127 / Dockerfile
Created June 29, 2016 03:17 — forked from Maxim-Filimonov/Dockerfile
Docker meteor example files
# User for local dev
FROM app/base
RUN npm install -g orion-cli
# This forces package-catalog update. Should speed up further runs
RUN meteor show meteor-platform
@romans127
romans127 / readme.md
Created June 10, 2016 22:57 — forked from philipz/readme.md
Send file over SSH

cat docker-compose.yml | docker-machine ssh mhs-demo0 "cat - &gt; docker-compose.yml"

@romans127
romans127 / code.sh
Created June 10, 2016 01:14
Docker Machine connect to existing Digital Ocean Account using "generic" drive.
cat ~/.ssh/id_dsa.pub | ssh user@remotehost 'cat >> ~/.ssh/authorized_keys'
@romans127
romans127 / submit_form.html
Created October 30, 2015 07:14 — forked from jeremyhodges/submit_form.html
Using Dropzone.JS to upload via orion.filesystem with drag and drop support.
<template name="submit_form">
<div class="alert alert-success" style="display: none;" role="alert">
<strong>Your work has been submitted!</strong> You successfully submitted your work. It is now in-review.
</div>
<div class="well">
{{# with job }}
<h3 class="text-info job-name" data-job-id="{{ _id }}">{{ name }}</h3>
@romans127
romans127 / jquery.scrolldepth.js
Created October 28, 2015 17:06
jQuery Scroll Depth Fix for Google Tag Manager
/*!
* @preserve
* jquery.scrolldepth.js | v0.7
* Copyright (c) 2014 Rob Flaherty (@robflaherty)
* Licensed under the MIT and GPL licenses.
*/
if (window.jQuery) {
;(function ( $, window, document, undefined ) {