Skip to content

Instantly share code, notes, and snippets.

View shudza's full-sized avatar

Shudza shudza

View GitHub Profile
@shudza
shudza / ntfs_usbautomounter.setup.sh
Created January 21, 2022 21:18 — forked from UedaTakeyuki/ntfs_usbautomounter.setup.sh
NTFS & USB automounter setup script on RPi
# NTFS
sudo apt-get install fuse ntfs-3g
# usb automount
#
# http://raspberrypi.stackexchange.com/questions/41959/automount-various-usb-stick-file-systems-on-jessie-lite
sudo apt-get install usbmount
sudo sed -i 's|FILESYSTEMS="vfat ext2|FILESYSTEMS="vfat ntfs fuseblk ext2|g' /etc/usbmount/usbmount.conf
sudo sed -i 's|FS_MOUNTOPTIONS=""|FS_MOUNTOPTIONS="-fstype=ntfs-3g,nls=utf8,umask=007,gid=46 -fstype=fuseblk,nls=utf8,umask=007,gid=46 -fstype=vfat,gid=1000,uid=1000,umask=007"|g' /etc/usbmount/usbmount.conf
@shudza
shudza / clean.sh
Created December 20, 2019 08:25 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
#include <iostream>
struct Node
{
int data;
struct Node *left, *right;
Node(int i){ data = i; left = right = 0; }
};