Skip to content

Instantly share code, notes, and snippets.

View sushyad's full-sized avatar

Susheel Yadav sushyad

  • Rochester, NY USA
View GitHub Profile
@sushyad
sushyad / find_non_ascii_filenames.sh
Created July 4, 2017 13:58
Find non-ascii file names
#find non-ascii file names
LC_ALL=C find . -name '*[! -~]*'
@sushyad
sushyad / install_minimal_desktop.sh
Created June 30, 2017 19:56
Minimal linux desktop installation
#!/bin/bash
#based on https://askubuntu.com/questions/786062/install-desktop-on-server
sudo apt install xorg
#Install lightdm-gtk-greeter first or it will install unity-greeter as dependency:
sudo apt install lightdm-gtk-greeter
sudo apt install lightdm
sudo apt install lxde-core
sudo apt install lxpolkit #(pkexec can't run without it)
@sushyad
sushyad / gsutil_backup_setup.sh
Last active October 23, 2017 05:19
Google Cloud Storage Setup
#!/bin/bash
#this setup is based on https://scotthelme.co.uk/easy-cheap-and-secure-backup-with-google-cloud-platform
LOG_DIR=~/logs
LOCK_FILE=~/gsutil_backup_cron.lock
#everything under /data (excluding data) will be put into the target gs bucket
SOURCE_DIR=/data