/usr/local/bin/setBrightness
#!/bin/bash
if [ $# -eq 0 ]; then
if [ ! -f ~/brightness ]; then
echo "1" > ~/brightness
fi
BRIGHT=$(cat ~/brightness)
else
BRIGHT=$1
| import tarfile | |
| import uuid | |
| import StringIO | |
| import docker | |
| def main(): | |
| client = docker.from_env() | |
| container = client.containers.get(uuidOfContainer) | |
| toSave = "blablabla" |
| echo -e 'y\n' | ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N '' |
| apt install linux-headers-$(uname -r) | |
| apt install build-essential module-assistant dkms | |
| usermod -a -G vboxsf YOURUSERNAME |
| # Evaluators | |
| import os | |
| import sys | |
| scripts = os.listdir("./scripts") | |
| scriptsStrings = [] | |
| for script in scripts: | |
| src = open("./scripts/" + script).read() | |
| scriptsStrings.append(src) |
| echo "Fix" | parted /dev/loop0 ---pretend-input-tty print |
| #!/bin/bash | |
| COMMAND=$@ | |
| SECOND="FALSE" | |
| if [ "$1" == "--second" ]; then | |
| SECOND="TRUE" | |
| COMMAND=${@:2} | |
| fi | |
| OUTPUT=$($COMMAND) | |
| NEWOUTPUT=$OUTPUT | |
| a=0 |
| apt install software-properties-common | |
| add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | |
| apt install dirmngr | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C2518248EEA14886 | |
| apt update | |
| apt install oracle-java8-installer |
| #!/bin/bash | |
| # | |
| # 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 | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
/usr/local/bin/setBrightness
#!/bin/bash
if [ $# -eq 0 ]; then
if [ ! -f ~/brightness ]; then
echo "1" > ~/brightness
fi
BRIGHT=$(cat ~/brightness)
else
BRIGHT=$1
| #!/bin/sh | |
| docker rm -f $(docker ps -qa) | |
| docker volume rm $(docker volume ls -q) | |
| cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico" | |
| for dir in $cleanupdirs; do | |
| echo "Removing $dir" | |
| rm -rf $dir | |
| done |