Skip to content

timjzee/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 

Repository files navigation

hello-world

This repo contains some useful shell commands.

rename a batch of files

man rename

Example: rename -v "s/old_extension/new_extension/" *.old_extension

connect to a vpn

openvpn ovpn_key.ovpn

scan network

nmap -sn 192.168.1.0/24

cloning an existing repo from GitHub

git clone https://github.com/timjzee/repo_name

checking connection of usb devices, filesystem, mounting and unmounting

dmesg

fdisk /dev/sdX -l

mount /dev/sdX /mnt

umount /mnt

extract archive

tar -xzvf <filename>.tar.gz

mining protocol

Check opencl as root

# clinfo

Start xserver in screen

xinit

Run atitweak to over/underclock gpu

atitweak --set-engine-clock=725 --performance-level=2 --adapter=0

atitweak --set-memory-clock=700 --performance-level=2 --adapter=0

Start script to monitor gpu temps in screen

checkGPUTemp.py

Start Marlin in screen

runMarlin.sh

(Optional) Manually check temperature with atitweak

atitweak -s | grep temp

manage crontab

add line

crontab -e

backup user crontab

crontab -l > /home/tim/Documents/user-crontab

restore user crontab

crontab /home/tim/Documents/user-crontab

manage permissions on macOS

https://apple.stackexchange.com/questions/31438/how-do-i-use-chmod-on-a-mac-to-make-new-files-inherit-parent-directory-permissio

add ACE

chmod +a "group:examplegroup allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" /path/to/folder

check all permissions

ls -le

Encrypt .zip files

zip -e archivename.zip filetoprotect.txt

About

GitHub test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published