This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy to /usr/bin and don't forget to make the script executable | |
# Usage: empty-branch <branch_name> ("assets" if empty) | |
BRANCH=$1 | |
if [ -z "$BRANCH" ] | |
then | |
BRANCH="assets" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
read -e -p $'\e[32mInstall docker? ("NO" by default):\e[0m ' INSTALL_DOCKER | |
if [ ! -z "$INSTALL_DOCKER" ] | |
then | |
sudo apt update | |
echo -e "Installing \033[0;32docker.io\033[0m and \033[0;32mdocker-compose\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
# machine name_role(DEV)Number(1) | |
lm_dev1_seed: | |
image: cassandra | |
command: bash -c 'if [ -z "$$(ls -A /var/lib/cassandra/)" ] ; then sleep 0; fi && /docker-entrypoint.sh cassandra -f' | |
volumes: | |
- ./data/lm_dev1_seed:/var/lib/cassandra | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*index-begin-dark-web-telegram*/ | |
@-moz-document domain("web.telegram.org") { | |
body, | |
.modal-content { | |
background-color: black !important; | |
color: #cccccc !important; | |
} | |
/* My fixes */ | |
/* Micro icon */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
echo -e "\033[0;32mThis is how Cassandra will determine its default Heap and GC Generation sizes.\033[0;0m" | |
declare -i SYSTEM_MEMORY_MB=$(free -m | awk '/^Mem:/{print $2}') | |
declare -i HALF_SYSTEM_MEMORY_MB=$(( $SYSTEM_MEMORY_MB / 2 )) | |
declare -i QUARTER_SYSTEM_MEMORY_MB=$(( $HALF_SYSTEM_MEMORY_MB / 2 )) | |
declare -i SYSTEM_CPU_CORES=$(cat /proc/cpuinfo | grep -i processor | wc -l) | |
echo -e " Memory = \033[0;32m${SYSTEM_MEMORY_MB}Mb\033[0;0m" | |
echo -e " Half = \033[0;32m${HALF_SYSTEM_MEMORY_MB}Mb\033[0;0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ENDPOINT="localhost:3000" | |
function getJsonVal () { | |
python -c "import json,sys;sys.stdout.write(json.dumps(json.load(sys.stdin)$1))"; | |
} | |
read -e -p $'\e[32mEnter grafana user ("admin" by default):\e[0m ' GRAFANA_USER | |
read -e -p $'\e[32mEnter grafana password ("admin" by default):\e[0m ' GRAFANA_PASSWORD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install ffsend (https://github.com/timvisee/ffsend) | |
# and binding for uploading file (https://gist.github.com/rostegg/33e1311af70bc522ce0d0fdc691c79fa) | |
snap install ffsend | |
wget -O fsend https://gist.githubusercontent.com/rostegg/33e1311af70bc522ce0d0fdc691c79fa/raw/34691c0d17ccd380f917e34250c831ad9755d13b/fsend | |
chmod +x fsend | |
sudo mv fsend /usr/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
read -e -p $'\e[32mInstall docker? ("NO" by default):\e[0m ' INSTALL_DOCKER | |
if [ ! -z "$INSTALL_DOCKER" ] | |
then | |
sudo apt update | |
echo -e "Installing \033[0;32docker.io\033[0m and \033[0;32mdocker-compose\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV TOR_LANGUAGE en-US | |
ARG TOR_VERSION=8.0.0 | |
RUN apt-get update && \ | |
apt-get install -y \ | |
iceweasel \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy to /usr/bin and don't forget to make the script executable | |
# Usage: setjv11 | |
sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java | |
JAVA_HOME_LOCAL="/usr/lib/jvm/java-11-openjdk-amd64/" | |
sudo sed -i '/^JAVA_HOME/d' /etc/environment | |
echo "JAVA_HOME=${JAVA_HOME_LOCAL}" | sudo tee -a /etc/environment > /dev/null | |
. /etc/environment |