Skip to content

Instantly share code, notes, and snippets.

@teosoft123
teosoft123 / ramdisk.sh
Created November 4, 2020 20:27 — forked from rxin/ramdisk.sh
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
@teosoft123
teosoft123 / osx_automount_nfs.md
Created September 16, 2020 00:41 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

@teosoft123
teosoft123 / README.md
Created November 27, 2019 23:24 — forked from rbb/README.md
Setup autofs on Ubuntu 18.04

Mounting CIFS with automount on Ubuntu 18:

  1. Install the necessary applications/servers:

    sudo apt install autofs smbclient cifs-utils

  2. Configure autofs

create /etc/auto.cifs, with this variant from auto.smb, courtesy howtoforge

@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
import configparser
import sys
class MultivalueConfigParser(configparser.RawConfigParser):
"""ConfigParser allowing duplicate keys. Values are stored in a list"""
def __init__(self):
configparser.RawConfigParser.__init__(self, empty_lines_in_values=False, strict=False)
@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 / 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 / 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

macOS: 10.13.3

WebDriver: 387.10.10.10.25.156

CUDA Toolkit: 9.1.128

cuDNN: 7

NVDAEGPUSupport: 6

#!/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