Skip to content

Instantly share code, notes, and snippets.

@kamikaz1k
kamikaz1k / Jenkinsfile
Created July 16, 2019 18:36
declarative Jenkins pipeline sample
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import java.util.Date
datadog = new com.freshbooks.jenkinshelper.datadog()
github = new com.freshbooks.jenkinshelper.GitHub()
helper = new com.freshbooks.jenkinshelper.pipelinehelper()
slack = new com.freshbooks.jenkinshelper.slack()
def APP_NAME = 'service-name'
@denji
denji / unbound-osx-homebrew.md
Last active November 27, 2022 08:33
Install unbound DNS(SEC) resolver on OS X, on the basis of https://www.spatof.org/blog/unbound-dns-resolver-on-osx.html
To install unbound you can use homebrew
$ brew install unbound ldns
Now we can edit the configuration file of unbound which by default is located in /usr/local/etc/unbound/unbound.conf:
@mcpherrinm
mcpherrinm / hello.rs
Last active November 24, 2022 19:21
Hello World in Rust without the runtime (libcore and libc only)
#![no_std]
extern crate core;
use core::option::{None, Some};
use core::iter::Iterator;
use core::str::StrSlice;
#[lang="stack_exhausted"]
pub extern "C" fn rust_stack_exhausted() {
unsafe { core::intrinsics::abort() }
}
@rxin
rxin / ramdisk.sh
Last active November 21, 2024 15:11
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@stefanbirkner
stefanbirkner / nexusdeb.sh
Last active October 27, 2020 17:30
Nexusdeb build a debian package of the Nexus server.
#!/bin/bash
# nexusdeb builds a debian package of the Nexus repository manager. nexusdeb
# downloads nexus by itself. You run it by
# nexusdeb.sh <version> <maintainer>
# Example:
# nexusdeb.sh 2.0.5 "Denny Colt <[email protected]>"
#
# The script has been tested with version 2.0.5.
if [ -z $1 ]