Skip to content

Instantly share code, notes, and snippets.

View antiops's full-sized avatar

Anti Ops antiops

View GitHub Profile
@antiops
antiops / chromeinstall_ubu16.sh
Created November 16, 2020 23:04 — forked from LoganGray/chromeinstall_ubu16.sh
this worked to install selenium and google chrome on my Ubuntu 16 server.
#!/usr/bin/env bash
# used to install offical chrome and selenium on Ubuntu 16.04.1 LTS, 18.04 desktop, Jan 2020
# also tested and works on Elem OS 5.1 :)
cd ~
sudo apt-get update
sudo apt install python-pip
pip install simplejson
pip install bs4
pip install selenium
apt-get install libasound2 libnspr4 libnss3 libxss1 xdg-utils unzip
@antiops
antiops / human_readable.sh
Last active May 22, 2024 07:36 — forked from agunnerson-ibm/human_readable.sh
Bash function to convert bytes to human readable size
# Copyright 2015 Andrew Gunnerson <andrewgunnerson@gmail.com>
# Copyright 2024 antiops@github
#
# 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