Skip to content

Instantly share code, notes, and snippets.

View avxkim's full-sized avatar
🏠
Working from home

Alexander Kim avxkim

🏠
Working from home
View GitHub Profile
@4lun
4lun / jenkins-remote-build-trigger.md
Last active July 9, 2019 07:47
How to trigger a remote build via a URL for a Jenkins job
  1. Create new user (e.g. webhook) with the following permissions: Overall > Read, Job > Build, Job > Read & Job > Workspace. Login as the user and get their API token
  2. Under a job, enable "Trigger Builds Remotely" and set an authentication token
  3. Trigger a POST request with the following structure:

http://{USER}:{API_TOKEN}@{JENKINS_URL}/job/{JOB}/build?token={AUTHENTICATION_TOKEN}

@uchcode
uchcode / PHPwebserver.js
Last active May 10, 2023 14:31
JXA (JavaScript for Automation) DockMenu applet example.
ObjC.import('Cocoa')
App = Application.currentApplication()
App.includeStandardAdditions = true
const RESOURCE = $.NSBundle.mainBundle.resourcePath.js
const HOST = 'localhost'
const PORT = 8080
const ADDR = `${HOST}:${PORT}`
const DIR = `${RESOURCE}/public_html/`
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com