Skip to content

Instantly share code, notes, and snippets.

@jefftougas
jefftougas / helper.gradle
Created August 15, 2018 23:16 — forked from nerro/helper.gradle
Gradle: task 'resolveDependencies' for CI
task resolveDependencies {
setDescription "Resolves all projects dependencies from the repository."
setGroup "Build Server"
doLast {
rootProject.allprojects { project ->
project.buildscript.configurations.forEach { configuration ->
if (configuration.canBeResolved) {
configuration.resolve()
}
@jefftougas
jefftougas / Jenkinsfile
Created August 14, 2018 15:58 — 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 {
}

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

Keybase proof

I hereby claim:

  • I am jefftougas on github.
  • I am jefftougas (https://keybase.io/jefftougas) on keybase.
  • I have a public key ASDQPg6o2-u7TtrilyDtuArgHGPZrnXB2iQ65HhM-fD_Sgo

To claim this, I am signing this object:

const pack = require('./package.json');
const validateDeps = (packageJson, dependencyType, offenderRegex, message = `Invalid version syntax in ${dependencyType} based on ${offenderRegex}!`) => {
const deps = new Map(Object.entries(pack[dependencyType]));
[...deps.keys()]
.filter((name) => deps.get(name).match(offenderRegex))
.forEach((name) => {
console.log(`${name}: ${deps.get(name)} -- ${message}`);
});
@jefftougas
jefftougas / dyndns53.py
Created March 29, 2017 20:28 — forked from vrypan/dyndns53.py
Python script to add/update an A record at amazon area53 DNS service, using current IP. (ie, dyndns replacement)
from area53 import route53
from boto.route53.exception import DNSServerError
import requests
import sys
from datetime import datetime
# Modified from https://markcaudill.me/blog/2012/07/dynamic-route53-dns-updating-with-python/
domain = 'domain.tld'
subdomain = 'subdomain_name'
@jefftougas
jefftougas / brew-perms.sh
Created August 25, 2016 04:12 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@jefftougas
jefftougas / brew-sync.sh
Created January 1, 2016 15:07 — forked from witt3rd/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@jefftougas
jefftougas / 1__bash.png
Last active August 29, 2015 13:56
my ps1
1__bash.png