To remove all untracked files:
git clean -df
For a specific file use:
git checkout path/to/file/to/revert
To remove all untracked files:
git clean -df
For a specific file use:
git checkout path/to/file/to/revert
Set git to use the credential memory cache:
git config --global credential.helper cache
To change the default password cache timeout, enter the following:
git config --global credential.helper 'cache --timeout=3600'
# (setting is in seconds)
Edit the sudoers file:
sudo visudo
Find this line:
%sudo ALL=(ALL) ALL
To dump a filesystem into /mnt (a filesystem mounted on a seperate disk)…
cd /mnt
dump -L -0 -f- /path/to/origin | restore -r -f-
For remote operations, pipe the restore command via ssh:
dump -L -0 -f- /path/to/origin | ssh -2 -C -l remoteuser 192.168.0.2 restore -r -f-
cd to local repo containing old_branch and:
git push https://github.com/accountname/new_repo.git +old_branch:master
VBoxManage list hdds | |
vboxmanage clonehd 846e5dbd-a88e-439e-8519-ea8aa47d7eb7 D:\Ubuntu.vmdk –format vmdk |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
set -xe | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL URL_HERE | sh | |
# On FreeBSD: | |
# $ fetch --no-verify-peer -qo - URL_HERE | sh | |
get_platform() { | |
platform=$(uname) |
# Restream is another choice | |
# This guide is based on: | |
# https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install -y unzip build-essential libpcre3 libpcre3-dev libssl-dev zlib1g-dev | |
wget http://nginx.org/download/nginx-1.15.1.tar.gz |
sudo apt update | |
sudo apt upgrade -y | |
# ubuntu: tasksel | |
sudo apt install kali-desktop-xfce -y | |
sudo apt install xrdp -y | |
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak | |
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini | |
sudo service xrdp start |