Skip to content

Instantly share code, notes, and snippets.

@psiborg
psiborg / bashrc.sh
Created May 12, 2024 00:44
.bashrc from Kali Linux
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@psiborg
psiborg / macos_screenshot.md
Created January 12, 2024 19:57
Change where screenshots are saved on macOS

To change the default save location for screenshots on macOS Mojave (or later):

  • Press "Shift-Command-5" to invoke the screen capture panel
  • Click on "Options" and choose "Other Location" to choose a destination

options

@psiborg
psiborg / win10_change_user_folder_name.md
Created November 7, 2023 19:20
Change a user's folder name in Windows 10
  1. Under Windows Settings > Accounts > Family & other users > Other users
  • Click the button for "Add someone else to this PC"
  • Click the link for "I don't have this person's sign-in information"
  • Click the link for "Add a user without a Microsoft account"
  • Enter a user name, password, and security questions
  • Change the account type to "Administrator - Local account"
  • Logout and login as this new user.
  1. Open a Command Prompt using "Run as administrator" and run:
@psiborg
psiborg / software.md
Last active July 22, 2024 21:16
Software
@psiborg
psiborg / kali.md
Last active March 26, 2023 02:53
Kali Linux

Kali Linux

sudo apt update
sudo apt upgrade

Change Login Screen

import pandas as pd
import numpy as np
def get_dataset(size):
# Create Fake Dataset
df = pd.DataFrame()
df['size'] = np.random.choice(['big','medium','small'], size)
df['age'] = np.random.randint(1, 50, size)
df['team'] = np.random.choice(['red','blue','yellow','green'], size)
df['win'] = np.random.choice(['yes','no'], size)
@psiborg
psiborg / backup.sh
Last active January 19, 2023 23:54
Backup files on Mac using command line
#!/bin/bash
currdate=`date +"%Y-%m-%d %T"`
folders=("Backup Documents Sites")
echo -e "\n---[${currdate}]---\n" >> ~/backup_stdout.log
echo -e "\n---[${currdate}]---\n" >> ~/backup_stderr.log
for folder in $folders
@psiborg
psiborg / README.md
Last active March 25, 2023 18:51
Garuda Linux

Garuda Linux

Update

sudo garuda-update

Yakuake

@psiborg
psiborg / quake.md
Last active December 13, 2022 02:51
Quake on Ubuntu

To enable the F12 hotkey in Ubuntu:

  • Go to: "Settings" > "Keyboard" > "View and Customize Shortcuts" > "Custom Shortcuts"
  • Click "+"
  • Enter the following the click "Add":
    • Name: Guake
    • Command: /usr/bin/guake
    • Shortcut: F12
@psiborg
psiborg / distros.md
Last active May 29, 2024 02:51
Linux Distros

Distros

Arch-based

Name Description Based on
Arch A minimalist, lightweight, and bleeding edge distribution that follows a rolling release model and offers customizability. It is a DIY distro for proficient GNU/Linux users who want to tweak their system according to their needs. Independent
Archcraft Uses window managers and lightweight applications, which makes it super fast. With pre-configured settings, Archcraft provides you the best out of the box window manager experience. Arch