Skip to content

Instantly share code, notes, and snippets.

@teosoft123
teosoft123 / gist:12e27e18c1208fcda1e7a5aedb1fba42
Created April 12, 2016 20:24 — forked from arguile-/gist:2510227
Basic Curl deploy file to Nexus
#!/bin/sh
SERVER="http://localhost:8081"
URL="$SERVER/nexus/service/local/artifact/maven/content"
REPO="sandbox"
USER="admin:admin123"
group=$1
artifact=$2
@teosoft123
teosoft123 / chips.yml
Created January 4, 2017 19:41 — forked from rdmarsh/chips.yml
Set CHIP up as an airplay server using ansible playbook
---
# Set CHIP up as an airplay server.
# Based on https://www.hackster.io/11798/c-h-i-p-play-speakers-7cebb9
# Note; you will still have to edit shairport-sync.conf to set the name
- name: configure chips for iot shairport use
hosts: shairport-chips
become_user: root
@teosoft123
teosoft123 / pge.py
Created December 5, 2017 06:39 — forked from stevedh/pge.py
PG&E Green button data downloader
##
## PG&E Green button data downloader
##
## @author Stephen Dawson-Haggerty <stevedh@eecs.berkeley.edu>
##
## Based on https://gist.github.com/3131346 and Andrew Krioukov's
## sMAPv1 PG&E driver for the old format of data.
##
import os
@teosoft123
teosoft123 / gist:d66adc6e0cb710da60ec1ae520aa751b
Created December 5, 2017 06:47 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
#!/bin/bash -e
ln -s /usr/lib/x86_64-linux-gnu/amdgpu-pro .
ln -s /etc/OpenCL .
tar -czvf libs.tar.gz amdgpu-pro/*
tar -czvf conf.tar.gz OpenCL/*
cat > .dockerignore << EOF
OpenCL

macOS: 10.13.3

WebDriver: 387.10.10.10.25.156

CUDA Toolkit: 9.1.128

cuDNN: 7

NVDAEGPUSupport: 6

@teosoft123
teosoft123 / ansible-summary.md
Created July 25, 2018 14:56 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@teosoft123
teosoft123 / groovy-create-user.md
Created August 21, 2018 23:38 — forked from imranity/groovy-create-user.md
Jenkins Groovy enable security and create a user in groovy script

This is a snippet that will create a new user in jenkins and if security has been disabled , it will enable it :)

import jenkins.model.*
import hudson.security.*

def instance = Jenkins.getInstance()

def hudsonRealm = new HudsonPrivateSecurityRealm(false)
hudsonRealm.createAccount("MyUSERNAME","MyPASSWORD")
instance.setSecurityRealm(hudsonRealm)
@teosoft123
teosoft123 / ssh_config_annotated
Created November 28, 2018 16:41 — forked from schnell18/ssh_config_annotated
Well commented ssh_config file for SSH client side configuration.
# ssh_config system-wide configuration for OpenSSH clients
# This is the ssh client system-wide configuration file. This
# file provides defaults for users that are compliant with SSH
# policy and ensure best practices are followed. While this file
# is compliant, please keep in mind that users can change settings
# with user-specific overrides from the command line or their own
# config file in some cases.
# Configuration data is parsed as follows:
# 1. command-line options
# 2. user-specific file
@teosoft123
teosoft123 / openssl_commands.md
Created June 22, 2019 22:06 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl