This file contains 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
npm install -g npm@latest |
This file contains 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 | |
apt install -y ca-certificates curl gnupg lsb-release | |
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt update | |
apt install -y docker-ce-cli |
This file contains 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 | |
filename=secrets.dat | |
megs=20 | |
loop=/dev/loop0 | |
mount_point=./secrets_map | |
create() { | |
losetup -d $loop | |
fallocate -l ${megs}M $filename | |
losetup $loop $filename |
This file contains 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
wget https://github.com/sharkdp/bat/releases/download/v0.11.0/bat_0.11.0_amd64.deb | |
sudo apt install gdebi | |
sudo gdebi bat_0.11.0_amd64.deb |
This file contains 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
-v /var/run/docker.sock:/var/run/docker.sock |
This file contains 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
sudo apt install -y --reinstall virtualbox-guest-x11 | |
# Then reboot |
This file contains 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
dig @8.8.8.8 ns slashdot.org |
This file contains 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
REM For new versions check out the grid at https://www.tensorflow.org/install/source_windows#gpu | |
conda create -n tf python=3.8.7 | |
REM Or to upgrade: conda install -c anaconda python=3.8 | |
conda install -y -c anaconda tensorflow-gpu==2.5.0 | |
conda install -y jupyter seaborn matplotlib numpy keras-gpu pandas tqdm tensorflow_addons | |
conda install -y -c conda-forge ipywidgets | |
conda install -y jupyterlab | |
jupyter labextension install @jupyter-widgets/jupyterlab-manager | |
conda install -y -c conda-forge matplotlib | |
conda install -y -c conda-forge keras |
This file contains 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
# https://stackoverflow.com/questions/46299727/flatten-xml-document-in-java | |
from org.w3c.dom import Document | |
from org.w3c.dom import Node | |
from org.xml.sax import InputSource | |
from java.io import StringReader | |
from java.util import Properties | |
from javax.xml.parsers import DocumentBuilder | |
from javax.xml.parsers import DocumentBuilderFactory | |