Skip to content

Instantly share code, notes, and snippets.

View cellcoresystems's full-sized avatar
💡
curious

cellcoresystems

💡
curious
View GitHub Profile
@cellcoresystems
cellcoresystems / A Readme for Adding Certs.md
Created April 21, 2021 17:52 — forked from Artistan/A Readme for Adding Certs.md
Add new certificate (cert) from local/internal intranet to your mac

Add a cert to you macbook

USAGE

~/add_cert.sh my.intra.net

you will be asked for your password to add thit to keychain

  • downloads pem file
  • adds to trusted root certificates
@cellcoresystems
cellcoresystems / RenameCrostiniUser.md
Created March 28, 2021 23:27
Rename default user in Crostini

Rename the default user in Crostini

Crostini is the Linux (LXD, a project initiated by Ubuntu publisher Canonical) container for ChromeOS. When enabled it creates a new container with the hostname "penguin" and an initial user whose user/login name is derived from the Gmail alias of the logged in Google account.

This is incovenient for a lot of reasons, not the least of which is that it makes working with NFSv3 shares and ssh keys on and for other hosts tedious (userids are everything to NFSv3, as login names are for ssh).

These are the steps to rename that default user and group:

In what follows "oldusername" is your existing username in penguin, while "newusername" is what you want it to be.

  1. Enter crosh with Ctrl-Alt-t
@cellcoresystems
cellcoresystems / README.md
Created October 22, 2020 20:19 — forked from FrankSpierings/README.md
Linux Container Escapes and Hardening
@cellcoresystems
cellcoresystems / neo4j_cypher_cheatsheet.md
Created September 20, 2020 17:14 — forked from DataDistiller/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Graph Databases Store non temporal data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@cellcoresystems
cellcoresystems / How to Install JDK MacOS Homebrew.md
Created August 16, 2020 10:50 — forked from gwpantazes/How to Install JDK MacOS Homebrew.md
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

This guide favors OpenJDK

This guide favors free, simple, and permissive licensing whenever possible, so we will favor OpenJDK over Oracle JDK because OpenJDK is licensed GNU GPL with a linking exception. For more information, see Oracle now requires a subscription to use Java SE (2018).

  • For Java 8 and later, we will install OpenJDK.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@cellcoresystems
cellcoresystems / .pythonrc
Last active June 2, 2019 21:00
pythonrc file
# .pythonrc
#
# to activate put this in your .bashrc or .zshrc file
# export PYTHONSTARTUP=~/.pythonrc
#
# reminder: does not work work with python -i
# you have to use this in every script:
#
# import os
# if os.path.isfile(os.environ['PYTHONSTARTUP']):
@cellcoresystems
cellcoresystems / install_docker.sh
Last active February 26, 2018 16:47
install docker script
#!/bin/bash
# docker installation on Ubunutu 16.04+
# source https://www.dockerfile.de/docker-tutorial-installation
# remove any old docker
sudo apt-get remove docker docker-engine docker.io
# install prerequisites
sudo apt-get install \
apt-transport-https \
@cellcoresystems
cellcoresystems / autossh.service
Created November 15, 2017 21:48 — forked from viernes/autossh.service
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network-online.target
[Service]
User=tunel
#ISTALLL
# sudo mv autossh.service /etc/systemd/system/
# sudo systemctl enable autossh.service
# sudo apt install autossh