Skip to content

Instantly share code, notes, and snippets.

View pacharanero's full-sized avatar
💭
messing with a Discourse forum, somewhere

Marcus Baw pacharanero

💭
messing with a Discourse forum, somewhere
View GitHub Profile
#!/bin/bash -x
set -e
# COMMAND
# ssh into the required server and run the following command
# curl -Lks https://gist.github.com/pacharanero/4b9730d20ed750a7dea8ffc37aafb770/raw | sudo /bin/bash
#function definitions
update-ubuntu() {
echo "Starting update..."
#!/bin/bash -x
set -e
# COMMAND
# curl -Lks https://gist.github.com/pacharanero/7159a58a8e7334d4c3ea6a0c4aefe33f/raw | /bin/bash
update_ubuntu () {
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get -y dist-upgrade
#!/bin/bash -x
set -e
# set a default new username
# if you set NEW_USERNAME="other_username" before running the script, it will use your value
NEW_USERNAME="${NEW_USERNAME:-marcus}"
# add update script
echo """doupdates () {
export DEBIAN_FRONTEND=noninteractive
#!/bin/bash -x
set -e
# COMMAND
# curl -Lks https://gist.github.com/pacharanero/fe84aed43281a3f789674c46fd5de16a/raw | /bin/bash
# install zsh
sudo apt install zsh
# verify installation and version
#!/bin/bash -x
set -e
# RUN REMOTELY WITH:
# curl -Lks https://gist.github.com/pacharanero/7d0efe22a8261fea74758597d5bd35c9/raw | /bin/bash
# geekbench 6.2.2
sudo mkdir /var/geekbench
sudo wget https://cdn.geekbench.com/Geekbench-6.2.2-Linux.tar.gz -P /var/geekbench
sudo tar -xzvf /var/geekbench/Geekbench-6.2.2-Linux.tar.gz -C /var/geekbench/
#!/bin/bash -x
set -e
# COMMAND
# curl -Lks https://gist.github.com/pacharanero/94a9a8a4171539327ad07e9ea2c81d45/raw | /bin/bash
# installs pyenv and build dependencies for Debian based distros
rm -rf $HOME/.pyenv
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
sudo apt update
#!/bin/bash -x
set -e
# COMMAND
# curl -Lks https://gist.github.com/pacharanero/1c2c4dcb1b7a6b015e2113fa4b734956/raw | /bin/bash
# add .dotfiles-git to global .gitignore to prevent it tracking itself recursively
echo ".dotfiles-git" >> .gitignore
# creates bare Git repo in a .hidden subdir of $HOME
@pacharanero
pacharanero / openehr-EL-as-ruby.rb
Last active September 26, 2018 08:58
An illustration of how OpenEHR Expression Language woud look as Ruby
# real ruby libraries you can use to save having to develop them anew
require 'iso-639'
# fictional ruby libraries that would add the missing datatypes
require 'icd10' # a library which handles ICD-10 bindings
require 'snomed-ct' # a library which handles SNOMED-CT bindings
require 'adl-binding' # a library which lets us handle ADL as a ruby object
require 'terminology' # some arbitrary terminology helper library
# openEHR-ELOM.breast_cancer_treatment.v1

Keybase proof

I hereby claim:

  • I am pacharanero on github.
  • I am pacharanero (https://keybase.io/pacharanero) on keybase.
  • I have a public key ASDc5uKNq_dgues2qo3MkS5M8xbQBzslpmZhlln0x4B75go

To claim this, I am signing this object: