Skip to content

Instantly share code, notes, and snippets.

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

Bianca Tamayo btamayo

🏠
Working from home
View GitHub Profile
@btamayo
btamayo / gist:86d0750ac761aa3aaceaa2c1dcaca7f6
Created June 22, 2018 21:20 — forked from nateware/gist:3915757
Start Mac VNC server from command line
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients
@btamayo
btamayo / README-Install-Go-Datadog-raspbian-jessie-32bit-armv7l.md
Last active September 21, 2019 23:26
Install Golang 1.10.3 + Datadog Agent v6 on Raspberry Pi 3 (armv7l Debian Jessie)
@btamayo
btamayo / Get Jenkins GDSL working with IntelliJ IDEA
Last active September 12, 2020 22:00 — forked from arehmandev/Get Jenkins GDSL working with IntelliJ IDEA
Get Jenkins GDSL working with IntelliJ IDEA
1. Setup a project
2. Add groovy SDK support:
https://www.bonusbits.com/wiki/HowTo:Add_Groovy_SDK_to_IntelliJ_IDEA
```shell
# 1. Install sdkman: https://sdkman.io/install
curl -s "https://get.sdkman.io" | bash
@btamayo
btamayo / pipeline.gdsl
Created June 30, 2018 01:59 — forked from fredericrous/pipeline.gdsl
GDSL supporting pipeline declarative
//The global script scope
def ctx = context(scope: scriptScope())
//What things can be on the script scope
contributor(ctx) {
method(name: 'pipeline', type: 'Object', params: [body: Closure])
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

@btamayo
btamayo / Jenkinsfile
Created June 30, 2018 02:19 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@btamayo
btamayo / npm-scripts-for-docker.md
Created June 30, 2018 03:22 — forked from duluca/npm-scripts-for-docker.md
npm scripts for Docker

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

Looking for npm scripts for AWS ECS? Go here!

Watch the video: Do More With Less JavaScript

Docker Containers for Static or Angular/React/Vue/etc SPA Websites

@btamayo
btamayo / check_page_speed.cpp
Created July 5, 2018 20:49 — forked from jglenn9k/check_page_speed.cpp
Checks page speed
#include <iostream>
#include <string>
#include <cstdio>
#include <curl/curl.h>
// James Glenn <[email protected]>
// 2018-03-30
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);
@btamayo
btamayo / easyrsa3-quick-wildcardcert
Created July 9, 2018 19:59 — forked from DRN88/easyrsa3-quick-wildcardcert
easyrsa3-quick-wildcardcert
#!/bin/bash
FQDN="domain.local"
CERT_FILENAME="wildcard.${FQDN}"
CERT_COMMONNAME="*.${FQDN}"
wget "https://github.com/OpenVPN/easy-rsa/archive/master.zip"
unzip master.zip
mv easy-rsa-master/easyrsa3/ .
rm -rf master.zip easy-rsa-master/
@btamayo
btamayo / MANUAL.md
Created July 13, 2018 23:00 — forked from s-lyn/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.