Skip to content

Instantly share code, notes, and snippets.

@si458
si458 / ubuntu_install_stuff
Last active November 18, 2024 11:39
ubuntu_install_stuff
#!/bin/bash
echo Starting ...
echo Setting Variables ...
MARIADB=10.11
NODEJS=22
PHPMYADMIN=5.2.1
ADMINER=4.8.1
PHP=8.3
@si458
si458 / openebs-uninstall.sh
Created February 9, 2021 14:08
openebs uninstall script
#!/bin/bash
# Copyright 2020 The OpenEBS Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@si458
si458 / nfsen_setup_ubuntu
Last active May 27, 2020 10:55
nfsen_setup_ubuntu
#!/bin/bash
echo Starting ...
echo Cleaning apt-get ...
apt-get clean all -y
echo Updating apt-get ...
apt-get update
@si458
si458 / genieacs-install.sh
Last active April 22, 2020 22:10 — forked from allanmc/genieacs-install.sh
Install GenieACS on Ubuntu 16.04
#!/bin/sh
set -e
# install all updates/upgrades to begin with
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
# install essential packages
sudo apt-get install -y build-essential git curl software-properties-common python-software-properties zlib1g-dev tmux libsqlite3-dev
# install nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
@si458
si458 / simulator_populator_xcode
Last active June 22, 2020 18:42
This script removes and recreates all simulators in Xcode.
#!/usr/bin/env ruby
require 'JSON'
device_types = JSON.parse `xcrun simctl list -j devicetypes`
runtimes = JSON.parse `xcrun simctl list -j runtimes`
devices = JSON.parse `xcrun simctl list -j devices`
devices['devices'].each do |runtime, runtime_devices|
runtime_devices.each do |device|