Friday, July 5, 2024

vifm dark theme


rm -rf ~/.config/vifm/colors

git clone https://github.com/vifm/vifm-colors ~/.config/vifm/colors

Load with :colorscheme theme-name in vifm, or write colorscheme theme-name in vifm's configuration file ~/.config/vifm/vifmrc.


vim ~/.config/vifm/vifmrc

# set colorscheme //
colorscheme nord

for images in vifm ** not working come back and fix this --


" Open images with sxiv
command open_with_sxiv sxiv %c

i3 no nagbar logout - no mouse needed


# NO NAGBAR LOGOUT
bindsym $mod+Shift+q exec --no-startup-id i3-msg exit

you could also just type pkill i3 in terminal

Hide the mouse in i3 on linux

sudo apt-get install unclutter

#add to /.config/i3/config
exec --no-startup-id unclutter -idle 2

clipboard download on linux


alias yta='downloader-goes-here "$(xclip -o)" -x --audio-format mp3 -o "$HOME/Music/%(title)s.%(ext)s"'


sudo apt install ffmpeg

optimizing battery life for linux mint on macbook


sudo apt update
sudo apt install tlp tlp-rdw
#
sudo apt install laptop-mode-tools

dark theme for thunar/pcmanfm

sudo apt-get install lxappearance the xfce4 settings manager doesnt work in i3 to enable dark theme

Thursday, July 4, 2024

bubba gump on cyber security

Scene: Forest and Bubba are sitting on the bench, chatting. Forest looks at Bubba as he begins to list off types of cyber attacks.

Bubba:
(earnestly) You know, Forest, there's all kinds of cyber attacks. I reckon if you can think it, someone's hacked it. I could talk about cyber attacks all day long.

Forest:
(taken aback) Oh really, Bubba? Like what?

Bubba:
Well, you got your phishing attacks. They send you an email lookin' like it's from someone you know, but it's really just a hacker tryin' to steal your information.

Forest:
That's bad, Bubba.

Bubba:
Then there's spear-phishing. That's like phishing, but it's aimed at a specific person. Like when that guy Carl always tried to steal our lunch money in school.

Forest:
I remember Carl.

Bubba:
(continues, more excitedly) And then you got your whaling attacks. Those target the big fish, like CEOs and high-level executives. Imagine a hacker trying to get Mama's secret pie recipe.

Forest:
(enthusiastically) Mama's pie is the best!

Bubba:
(serious) And there's malware. That's like the bad stuff people sneak onto your computer. You got your ransomware, which locks your computer up tighter than Fort Knox until you pay up.

Forest:
(leaning in) How much they usually ask for, Bubba?

Bubba:
Could be a few hundred, could be a few thousand. Then there's spyware, which just watches everything you do, like that creepy guy in the corner.

Forest:
That's real creepy, Bubba.

Bubba:
(continuing) And don't forget about Trojans. They look all friendly and helpful, but once they're in, they open the gates for all the bad guys. Just like that wooden horse in Troy.

Forest:
(laughs) Like a wooden horse!

Bubba:
Yup. And then you got C2 attacks. That's Command and Control, where the hacker takes over your computer and makes it do whatever they want, like a puppet.

Forest:
Puppets are fun, but not like that, Bubba.

Bubba:
Exactly, Forest. Then there's "living off the land" attacks. Those use the tools already on your system against you. Like using your own knife to cut your own pie.

Forest:
(mind blown) That ain't right!

Bubba:
And don't forget about DDoS attacks. That's Distributed Denial of Service. They flood a website with so much traffic it crashes, like a stampede in a shopping mall.

Forest:
(seriously) We gotta protect the malls, Bubba.

Bubba:
(grinning) And then you got zero-day exploits. Those are vulnerabilities that nobody knows about yet, not even the folks who made the software. It's like findin' a secret door in your own house.

Forest:
(secretive) Secret doors are cool.

Bubba:
And there's SQL injection, where they sneak bad code into your database queries. It's like addin' hot sauce to your ice cream when you ain't lookin'.

Forest:
(shocked) Who would do such a thing?

Bubba:
And then there's brute force attacks. They just keep tryin' passwords till they get in, like a stubborn mule tryin' to kick down a barn door.

Forest:
Mules are real stubborn, Bubba.

Bubba:
(nodding) Sure are, Forest. And there’s cross-site scripting. They sneak malicious code into your web pages, like hidin' a snake in your mailbox.

Forest:
(scared) Snakes are scary, Bubba.

Bubba:
(smiling) And finally, there's MITM. Man-in-the-Middle attacks. They get between you and the person you're talkin' to, like that nosy neighbor always eavesdroppin' on your conversations.

Forest:
(nodding) That neighbor sure is nosy.

Bubba:
(sighs) Yeah, Forest, cyber attacks are everywhere. But just like shrimp, if you know how to handle 'em, you can keep 'em from spoilin' your day.

Forest:
(sincerely) Bubba, you're a genius.

Bubba:
(grinning) Just a guy who knows his cyber attacks, Forest. Just a guy who knows.

Fade out as the two friends sit on the bench, contemplating the complexities of the digital age.

End Scene

Wednesday, July 3, 2024

copy pasting in vim

 you need vim-gtk3 package to add clipboard functionality
regular vim doesnt come with it
in your vim rc you add:



set clipboard=unnamedplus

newsboat config


# Newsboat configuration
##########################
# when you first set up newsboat
# from home, cd into .newsboat
# vim urls and add at least one rss feed
# use this command to batch import multiple rss feeds
###########################
#newsboat -i file.opml
# in the .newsboat directory create this config file
###########################

# Set Firefox as the default browser
browser "firefox %u"

# Configure the 'y' key macro to open links in mpv
macro y set browser "mpv %u" ; open-in-browser ; set browser "firefox %u"

# Additional configuration options can be added below if needed

# Example Newsboat configuration for Vim-like keybindings
bind-key j down
bind-key k up
bind-key h prev
bind-key l next
bind-key gg home
bind-key G end
bind-key r reload
bind-key q quit

Tuesday, July 2, 2024

video editors on linux

1. kdenlive

2. shotcut

kino is for ripping DV

open shot meh

pitivi meh


I was having trouble with things crashing when playing mp4s with celluloid so im exporting as webm instead. Brodie suggested olive its not bad.

screen recording on linux

 simple screen recorder sucks, it makes my computer crash and the video it would take would drop tons of frames and be full of blocky errors.

- the way to go is an application called kazam

qutebrowser config

distrotube's qutebrowser config

caps to esc - a better way - setxkbmap

xmodmap is fine but you get this terminal error each time it loads it in the bashrc setxkb is better


vim ~/.setxkbmap_caps_escape.sh
#
#!/bin/bash
setxkbmap -option caps:escape
#
chmod +x ~/.setxkbmap_caps_escape.sh
#
# in i3 config put...
exec --no-startup-id ~/.setxkbmap_caps_escape.sh
# make sure change home/mint to your user name
# mod shift r to reset i3 config
# or for xfce "Menu" and go to "Preferences" > "Startup Applications." and put
setxkbmap -option caps:escape

linux pulse audio loopback


## to start
pactl load-module module-loopback latency_msec=1
## to stop
pactl unload-module module-loopback latency_msec=1

ffmpeg for screencast

a script to use ffmpeg to record a screencast that uses dmenu to choose audio inputs


ffmpeg -f x11grab -r 24 -s $(xdpyinfo | grep 'dimensions:' | awk '{print $2}') -i :0.0 -f pulse -i $(pactl list short sources | awk '{print $2}' | dmenu -i -p "Select audio input:") -probesize 10M -analyzeduration 10M -acodec pcm_s16le -vcodec libx264 -preset fast -crf 25 -threads 4 output.mkv

Monday, July 1, 2024

linux mint dark wall paper - sans logo

my desktop for linux mint

without the logo. easier on the eyes for when I dont feel like resorting to i3

dark-fleur

another wallpaper alternative

reaper alt drag fix on linux mint

 go to window manager tweaks , and under accessibility switch it from alt to none.
by default it moves the window around, its maddening that its not under keyboard to fix.

heres a link to my reaper configs

FL studio version 10

FL 10 download link

note - you must be logged into to your fl studio account to access the link in the php forum. Im just posting this as a bookmark incase I need to install FL on wine again. FL 10 works with q4wine 32 bit plugins seem fine anything else doesnt show the gui properly.

wine struggles - fl studio on linux mint

im using Q4wine to install wine apps playfor linux the sandbox was annoying, used winetricks to run the regedit for verifying fl studio registration its been a struggle for me to get the vsts to load arg

psycle tracker - legit link

the only legit psycle tracker link

i tried the sourceforge ones and most didn't work uh oh