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 | |
[ $# -ne 1 ] && { echo "missing sdX device as parameter"; exit 1; } | |
cat /dev/null > shred.log | |
sudo shred -v -n3 -z /dev/${1} &>> shred_${1}.log & |
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
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1597756561" LAST_MODIFIED="1608916227" PERSONAL_TOOLBAR_FOLDER="true">Barra dei Preferiti</H3> | |
<DL><p> |
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
# Extended version for your laptop | |
# store this file as ~/.vimrc | |
set nu | |
set expandtab | |
set shiftwidth=2 | |
set tabstop=2 |
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
alias k='kubectl' | |
alias kg='k get' | |
alias kgp='kg pod' | |
alias kd='k describe' | |
alias kdp='kd pod' | |
alias kD='k delete --force --grace-period=0' | |
alias kDp='kD pod' | |
alias kc='k create' |
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 | |
# https://jackbarber.co.uk/blog/2017-02-16-hide-raspberry-pi-mouse-cursor-in-raspbian-kiosk | |
sudo apt-get -y install unclutter | |
echo "@unclutter -idle 0" >> ~/.config/lxsession/LXDE-pi/autostart | |
reboot |
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
# Install Docker | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
sudo usermod -aG docker pi | |
sudo chmod 777 /var/run/docker.sock | |
# Install Docker Compose | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python3 get-pip.py | |
sudo pip3 install docker-compose |
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
# Move this files first | |
# pf.conf -> /etc/pf.conf | |
# security.pf.plist -> /Library/LaunchDaemons/security.pf.plist | |
# security.pflog0creation.plist -> /Library/LaunchDaemons/security.pflog0creation.plist | |
# security.pflog0dump.plist -> /Library/LaunchDaemons/security.pflog0dump.plist | |
# | |
chmod 644 /etc/pf.conf | |
sudo launchctl load -w /Library/LaunchDaemons/security.pf.plist | |
sudo launchctl load -w /Library/LaunchDaemons/security.pflog0creation.plist | |
sudo launchctl load -w /Library/LaunchDaemons/security.pflog0dump.plist |
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 | |
EXTENSION_TAG_MAPPING="${HOME}/.tag_mapping" | |
CRONTAG_LOG="/var/log/crontag.log" | |
function __echo() { echo "$(date +%D:%H:%M.%S) - $@" | tee -a "${CRONTAG_LOG}"; } | |
which tag &>/dev/null || { __echo "main: missing tag. install it by using 'brew install tag'. Exiting.."; exit 1; } | |
ls "${EXTENSION_TAG_MAPPING}" &>/dev/null || { __echo "main: missing extension tag mapping file ($EXTENSION_TAG_MAPPING)'. Exiting.."; exit 1; } |
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
import javax.swing.JOptionPane; | |
public class SquareRoot { | |
private int attempts=0; | |
private double x=0,epsilon = 0; | |
public SquareRoot(int x,double epsilon,int attempts) | |
{ | |
this.x=(double)x; |
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 | |
sudo apt-mark hold raspberrypi-bootloader | |
sudo apt-get -y upgrade | |
git clone https://github.com/goodtft/LCD-show.git | |
chmod -R 755 LCD-show | |
cd LCD-show/ | |
sudo ./LCD35-show |
NewerOlder