Skip to content

Instantly share code, notes, and snippets.

View imeredith's full-sized avatar

Ivan Meredith imeredith

View GitHub Profile
@imeredith
imeredith / glove80-editor.user.js
Last active November 3, 2023 10:22
glove80-editor.user.js
// ==UserScript==
// @name Glove80 editor inprovements
// @namespace https://gist.github.com/imeredith
// @version 0.11
// @description Improvments to the 6love80 editor
// @author imeredith
// @match https://my.glove80.com/*
// @grant GM_addStyle
// @downloadURL https://gist.githubusercontent.com/imeredith/4f156fc3cf86aaee8872cca07c6f8dcb/raw
// @updateURL https://gist.githubusercontent.com/imeredith/4f156fc3cf86aaee8872cca07c6f8dcb/raw
@imeredith
imeredith / tips.md
Last active January 25, 2019 02:21
Tips for development in WSL

Dev tools

  • Other than editors, install everything needed in WSL. It's easier.
  • Piping to windows programs does work, just remember to add .exe
    • echo 1234 | clip.exe
  • Editors can't see anything in Linux FS, keep all code in /mnt/c

Symlinks

  • Enable windows developer mode
$win_user = "ivan"
$linux_user = "ivan"
$package = "CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\usr\local\sbin", "\usr\local\bin", "\usr\sbin", "\usr\bin", "\sbin", "\bin", "\usr\games", "\usr\local\games")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
console.log('App loaded")
import { Plugin } from './Plugin';
export class AwesomePlugin implements Plugin {
render(element: HTMLDivElement): void {
console.log('rendered plugin');
element.innerText ='XYZXYZ';
}
extensionId: string = 'blah';
}
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
#!groovy
node() {
stage('Setup') {
deleteDir()
checkout scm
sh 'docker build -t blueocean_build_env --build-arg GID=$(id -g ${USER}) --build-arg UID=$(id -u ${USER}) - < Dockerfile.build'
sh "./acceptance-tests/runner/scripts/start-selenium.sh"
sh "./acceptance-tests/runner/scripts/start-bitbucket-server.sh"
Checkout 1.1.0-release
Then mvn versions:set -DnewVersion=1.1.0
Clean install project.
Download Jenkins war.
java -jar jenkins.war
Install Blueocean 1.1.0 from update center.
Go to http://localhost:8080/blue
Restart jenkins
Go to http://localhost:8080/blue - it should not be infinitely reloading.
@imeredith
imeredith / FavoritesTest.java
Last active May 18, 2017 21:37
FavoritesTest
package io.blueocean.ath;
import com.mashape.unirest.http.exceptions.UnirestException;
import io.blueocean.ath.api.classic.ClassicJobApi;
import io.blueocean.ath.pages.blue.DashboardPage;
import io.blueocean.ath.pages.classic.LoginPage;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
@Singleton
public class ClassicFreestyleCreationPage {
@Inject
WebDriver driver;
@Inject @BaseUrl
String base;
@Inject
ClassicJobApi jobApi;