Skip to content

Instantly share code, notes, and snippets.

Avatar
💡
curious

cellcoresystems

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

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 Mar 28, 2021 — forked from plembo/RenameCrostiniUser.md
Rename default user in Crostini
View RenameCrostiniUser.md

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 Oct 22, 2020 — forked from FrankSpierings/README.md
Linux Container Escapes and Hardening
View README.md
View neo4j_cypher_cheatsheet.md

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 Aug 16, 2020 — forked from gwpantazes/How to Install JDK MacOS Homebrew.md
How to install different JDK versions on MacOS with Homebrew
View How to Install JDK MacOS Homebrew.md

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.
View git-io-custom-url.md

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
View .pythonrc
# .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 Feb 26, 2018
install docker script
View install_docker.sh
#!/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 Nov 15, 2017 — forked from viernes/autossh.service
Systemd service for autossh
View autossh.service
[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