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
| #! /bin/bash | |
| BAKDIR="${HOME}/Dropbox/config-backup/intellij/project-settings" | |
| BAKFILE="${BAKDIR}/idea-folders.txt" | |
| #create backup folder | |
| mkdir -p "${BAKDIR}" | |
| # find all `.idea` folders in home | |
| if [ ! -e "${BAKFILE}" ]; then |
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
| var gulp = require('gulp'); | |
| var downloadelectron = require('gulp-download-electron'); | |
| var shell = require('gulp-shell'); | |
| var packageJson = require('./package.json'); | |
| var electron = require('gulp-electron'); | |
| gulp.task('package', function() { | |
| gulp.src("") | |
| .pipe(electron({ | |
| src: '.', |
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
| function gh-create-repo | |
| if not is_installed http | |
| echo "Please install httpie" | |
| return 1 | |
| end | |
| set -l username (git config --global user.name) | |
| echo -n "Enter password for $username : " | |
| stty -echo |
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
| set dFolder to "~/Desktop/screencapture/" | |
| do shell script ("mkdir -p " & dFolder) | |
| set i to 0 | |
| repeat 960 times | |
| do shell script ("screencapture " & dFolder & "frame-" & i & ".png") | |
| delay 30 -- Wait for 30 seconds. | |
| set i to i + 1 | |
| end repeat |
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
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>appassembler-maven-plugin</artifactId> | |
| <version>1.9</version> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>generate-daemons</goal> |
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
| (* | |
| Here is a copy-able shell text: | |
| osascript /[SCRIPT LOCATION]/countdown.scpt "[output parameter]" "MM/DD/YYYY HH:MM:SS AM" | |
| *) | |
| on run argv | |
| -- Lists for Parameters | |
| set ParamList to {"Days", "Minute", "MinuteW", "Second", "SecondW"} | |
| set ParamList2 to {"Minute", "MinuteW", "Second", "SecondW"} | |
| set ParamList3 to {"Second", "Secondw"} |
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
| #!/bin/bash | |
| # Runs the specified command (provided by the first argument) in all tmux panes | |
| # in every window. If an application is currently running in a given pane | |
| # (e.g., vim), it is suspended and then resumed so the command can be run. | |
| all-panes() | |
| { | |
| all-panes-bg_ "$1" & | |
| } |
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
| /** | |
| * You might need to import JIRA ssl certificate into your jdk/jre cacerts file: | |
| * 1) save JIRA certificate. E.g. in Chrome right click on https icon, click "Certificate information" link. | |
| * In "Details" tab, click "Copy to File..." button. | |
| * 2) in jdk "bin" folder run: "keytool -importcert -keystore ./cacerts -file /file/from/the/step/above/cacert.crt -trustcacerts -alias jira_ca | |
| */ | |
| class JiraMain { | |
| static void main(String[] args) { | |
| // see https://docs.atlassian.com/jira/REST/latest/ | |
| def listWatchers = "https://jira/rest/api/2/issue/PROJ-123/watchers" |
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 mobilepackage | |
| import io.gatling.core.Predef._ | |
| import io.gatling.core.session._ | |
| import io.gatling.http.Predef._ | |
| import scala.concurrent.duration._ | |
| import scala.util.parsing.json._ | |
| import general._ | |
| class LoginSimulation extends Simulation { |
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
| var githubapi = require("github"), | |
| async = require("async"), | |
| AWS = require('aws-sdk'), | |
| secrets = require('./secrets.js'); | |
| // the 'handler' that lambda calls to execute our code | |
| exports.handler = function(event, context) { | |
| // config the sdk with our credentials | |
| // http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html |