Skip to content

Instantly share code, notes, and snippets.

View valllllll2000's full-sized avatar
🎯
Focusing

Valeria R valllllll2000

🎯
Focusing
View GitHub Profile
@valllllll2000
valllllll2000 / script.ps1
Last active January 28, 2021 00:58
script to run in the Azure Cloud shell - Udacity CyberSecurity NanoDegree
# Script is identical to the one provided by the course Udacity Cybersecurity Nanodegree except I commented out some lines
# so it can be run in the cloud Shell
$transcriptFileName = ("{0}\{1}.txt" -f $env:TEMP, ([datetime]::Now.ToString("yy.MM.dd_hh.mm.ss")))
$resourceLocation = "East US2"
$udacityLabAgentAppName = "Udacity CYBERND01 Student VM Agent"
@valllllll2000
valllllll2000 / script2.ps1
Last active January 30, 2021 11:00
Azure cloud shell script to create Joe's Garage PC for the project 1, Udacity Cybersecurity Nanodegree
# Script is identical to the one provided by the course Udacity Cybersecurity Nanodegree except I commented out some lines
# so it can be run in the cloud Shell
# Objective: use azure cloud shell to create Joe's Garage PC for the project
$transcriptFileName = ("{0}\{1}.txt" -f $env:TEMP, ([datetime]::Now.ToString("yy.MM.dd_hh.mm.ss")))
$resourceLocation = "East US2"
$udacityLabAgentAppName = "Udacity CYBERND01 Student VM Agent"
@valllllll2000
valllllll2000 / disable_animations.sh
Last active December 21, 2022 10:27
disable animations
adb shell settings put global window_animation_scale 0.0
adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0
# keyboard
adb shell settings put secure show_ime_with_hard_keyboard 0
@valllllll2000
valllllll2000 / git_commands.sh
Last active September 28, 2023 11:45
Useful git commands
#Pretty and comprehensive git log
# see https://git-scm.com/docs/git-log#_commit_formatting for options
git log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%an%C(reset)%C(bold yellow)%d%C(reset) %C(dim white)- %s%C(reset)' --all
#display stats about a commit
# see https://git-scm.com/docs/git-show
git show b1e7dcb0204d1eab337d0ff7b41a3e53441ed2bc --stat
#show changes for a file
git show <commit> -- <filepath>
@valllllll2000
valllllll2000 / gisfsicle.sh
Last active July 3, 2023 13:41
Merge gifs
#!/bin/bash
set -e
gifsicle --colors 256 --merge *.gif -o game2.gif
@valllllll2000
valllllll2000 / password.py
Last active July 24, 2023 13:31
random password
import secrets
import string
letters = string.ascii_letters
digits = string.digits
special_chars = string.punctuation
alphabet = letters + digits + special_chars
pwd_length = 16
@valllllll2000
valllllll2000 / mac_shortcuts
Created September 28, 2023 08:11
Mac shortcuts
control + F11 -> show desktop
hold control + click desktop -> update widgets
command + space -> show spotlight to type a program
//show hidden files in Mac
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
@valllllll2000
valllllll2000 / rpi.sh
Last active November 19, 2023 22:03
raspberry pi useful commands
# display other devices on local network
sudo nmap -sn router_ip/24
arp -a
# list usb devices
lsusb
# disk space usage (human readable)
df -h