Friday, June 14, 2024
xfce4 timer
Wednesday, June 12, 2024
syncing files with unison
rsync is great but its unidirectional.
- synthing is bidirectional but i found out that you can't easily keep 2 folders in sync on the same computer (normally id make an alias but the folder exists on a usb drive)
my wifi router has a cool usb network storage feature where you can access the drive on the local network through smb. problem is it doesnt always stay mounted when i run the sync command.
The tool I found that works pretty great for bi-directional syncing is called unison.
brew install unison
after creating the configs i run it by typing this in the terminal
unison uke-songs
to sync my desktop ukulele songs with the usb stick mounted to the router. its cool that I can access these files from the roku tv in the 'roku file player' app
This way I can download music directly to the usb using a .zshrc alias, or download it to my desktop, drag it to the uke songs folder and sync the two.
I wasted the day on virtual machines
saw on the app store utm was at number 2 in paid apps. it was going for 12$ After recently finally putting 12$ down on ibis paint (well worth it to stop the adds). in my case, on my i5 4gb of ram 2015 macbook air running virtualized oses didn't work. I think utm is really just for m1 silicon. unfortunately trying to get xp took way too long. ubuntu was really laggy. linux mint wasnt too bad. the debian 10 image with lightbox and i3 seemed promising untill i saw the terminal was modded to be white. Its been a long time since ive had to edit i3 configs i forget everything. i used i3 gaps which was a fork that wasn't compatible with regular i3.
linux mint xfce was nice i was hoping to be able to have it run along side mac os instead of booting into it
Tuesday, June 11, 2024
image to code
now that gpt4 is public you can use its image processing. Some guy made a gpt specifically for converting images to a different web frameworks include image placeholders.
go full page chrome extension this tool is usefull for capturing a a long page.
I like to use google sites to build sites and then use these tools to convert them.
Before was thinking about ussing httrack to copy all the assets and use some flexbox generator to help restructure my divs but I knew there had to be a better way.
Sunday, June 9, 2024
Hunter S thompsons Routine
I often end up becoming a night person. I like to sleep in. I like to stay up late. proper sleep is important. Often I feel most like myself, most alive past midnight. thats when I feel like its time to be active and to live. It feels horrible to force myself to sleep when I get that feeling. I don't ever want to sleeping pills to force myself to sleep. I like being able to video chat with people on the other side of the world in Australia and feel like a normal person.
I biked to Oakville its a long bike ride but I don't feel like the bike ride hasn't begun until an hour deep. When you forget you have legs when you start to think you have wheels for legs. Thinking about the up rotation, the down rotation. Balancing the toe pull back with hamstring pull down motion when pedaling. When the mind shifts from everything else to focus solely one the most efficent way to pedal to minimize the burn that starts building up in the hamstrings. At first thats all you know; Pedaling, by pushing down. Once you realize the micro changes you can make to optimize your biking its like realizing you have a second pair of lungs. (birds have a second pair of vocal chords).(cows have multiple stomachs [mooing like a cow is great you should try it, the M and N sounds resonate in your head the most MM MMMmmm, helps strengthen your vocal chords and find the resonance]).
When people gamble sometimes they say "the house wins". I remember I was working with this guy who said every day you wake up, just getting out of bed it costs you 20 dollars once you leave your house.
Every time you give in to the temptation to eat out or impulse pay for conveniences its like you gambled on yourself and lost. The house wins.
One time I worked with this company and the boss guy would take a whole loaf of bread and make peanut butter sandwitches with it and eat it all week and bring us sandwiches. (and he put it down on site and some guy stole the bag). At first I thought it was kind of hardcore but its really what you need to do if your out working to make money.
I Liked temping because I would always be working in new parts of the city and I would eat out in a new restaurant for lunch. at the time to me it was worth it but yeah the $ adds up. Working with the peanut butter guy taught me the importance of packing a lunch.
When I went on my long bike ride I didn't eat much all day, I was eying this shawarma place but it pissed me off it was self checkout and it said they only take credit, left that for wendys and it was closed drive through and skip only. Nothing else was open in oakville. I felt like I was so smart biking down because last time I was at the mercy of the go train, the time before that I tried taking the bus + train combo in winter and it pissed me off so much for how long it took and cost. Thought I was beating the system by biking but forgot that everything closes so early in oakville. I refused to be defeated by oakville. The house will not win.
Feasted when I got home and slept all day. I needed to do that bike ride. A short bike ride just wouldn't do it. I can't sit infront of computers for hours and think properly. Blood needs to flow. I want to make music, music needs to be made with people. The best thing i can do alone is practise the skills but its not the same as the real thing. The real thing involves going out into the world. I can't properly sleep if I dont get enough exercise. It usually isnt enough to binge watch and binge eat till passing out. Some people do it, some people reccomend it. I don't like it. To me what I find the most fullfilling is getting enough activity in during the waking hours to be drained.
I remember seeing something somewhere about your body getting used to burning calories if you are very active when your younger your body doesn't adapt as well to a sedentary life, you kind of get physically addicted to it. My personal experience from working labour jobs and biking alot, it was a grind but I slept pretty well, whereas other times when I sat around alot on computers usually find it harder to sleep.
With that in mind, to me I feel like its not just me wanting to do a bike ride but I need to do it so I can properly experience the next day.
Looking back on it. It felt amazing. It rained the day after and I slept all day. I ran out of my lavazza 5/10 intensity coffee. excited to finally try the Balzacs coffee I got a while back from my birthday. Im thankfull I got to sleep so much and recover and then later into the night enjoy a cup of coffee after feasting. a couple days ago i was getting up around 1. when its cloudy and rainy I dont see much point waking up.
Im glad I got out when I did for that bike ride. Im glad I got to get out and get as much sun as I did early in the week.
3:00 p.m. rise
3:05 Chivas Regal with the morning papers, Dunhills
3:45 cocaine
3:50 another glass of Chivas, Dunhill
4:05 first cup of coffee, Dunhill
4:15 cocaine
4:16 orange juice, Dunhill
4:30 cocaine
4:54 cocaine
5:05 cocaine
5:11 coffee, Dunhills
5:30 more ice in the Chivas
5:45 cocaine, etc., etc.
6:00 grass to take the edge off the day
7:05 Woody Creek Tavern for lunch-Heineken, two margaritas, coleslaw, a taco salad, a double order of fried onion rings, carrot cake, ice cream, a bean fritter, Dunhills, another Heineken, cocaine, and for the ride home, a snow cone (a glass of shredded ice over which is poured three or four jiggers of Chivas)
9:00 starts snorting cocaine seriously
10:00 drops acid
11:00 Chartreuse, cocaine, grass
11:30 cocaine, etc, etc.
12:00 midnight, Hunter S. Thompson is ready to write
12:05-6:00 a.m. Chartreuse, cocaine, grass, Chivas, coffee, Heineken, clove cigarettes, grapefruit, Dunhills, orange juice, gin, continuous pornographic movies.
6:00 the hot tub-champagne, Dove Bars, fettuccine Alfredo
8:00 Halcyon
8:20 sleep
I like how he would wake up at 3pm. I too like to eat grapefruits.
Tuesday, June 4, 2024
Song Analysis - Positions - Ariana Grande
Thursday, May 23, 2024
song analysis: Million Dollar Baby - tommy richman
tempo: 138 bpm
key: f#m
- 32 bars for intro
- 16 bar chorus
- 16 X 3 (48 bar) verse
- 16 bar breakdown
- 16 bar chorus x 2
- 32 bar outro
scales:
a pent
b pent
d pent
Wednesday, May 22, 2024
song analysis: sabrina carpenter - espresso
THE STRUCTURE
104bpm
dm, dm, em, am
2 64 bar chunks with a 4 bar break in the middle
c,v,pc,c BREAK v,pc,c,c
8 bar intro
16 chorus
16 vs
16 pc
16 chorus
4 bar break
16 vs
16 pc
16 chorus
16 chorus
8 bar outro
Monday, May 20, 2024
Sunday, May 19, 2024
bandcamp tempo tool
A browser extension to detect and adjust track tempo on Bandcamp
Detect and Adjust the tempo of tracks on Bandcamp
👉 Pick from ±6, ±10, ±16, or WIDE mode.
👉 Click on the percentage to reset the tempo
👉 Detect the BPM of tracks on album pages
👉 Adjust tempo on wishlist / collection page
👉 You're now a DJ!
Saturday, May 18, 2024
Thursday, May 16, 2024
retroarch is now on ios
i wonder if lgpt works using ppsspp?
i was excited when delta was added to the app store and i could run lsdj but them remembered i don’t like the sound on the wave channel in emulation.
lsdj has the best interface of all trackers in my opinion. handheld with just 2 buttons is perfect. lgpt is basically the same but made to run samples which is perfect because i really wanted 808s and breakbeats.
lgpts weakness is chords. you have to go lane by lane and line everything up. it’s made for beats and baselines that’s where it shines. it would be perfect to find a phone case that has gameboy style buttons that connects to bluetooth for a perfect handheld tracking experience.
squarebeat i was excited for but keyboard control was never a priority instrthe focus was on touch and that just rubs me the wrong way. might as well use fl mobile.
ios has many options that leave things to be desired my favourite is still koala sampler and audio evolution for laying things out horizontally.
Sunday, April 14, 2024
whats the deal with lip trills?
Lip trills, also known as lip bubbles or lip buzzing, are a popular vocal warm-up exercise for singers and public speakers. Here's why they're important:
Physical Warm-up: Lip trills engage the muscles involved in vocal production, including the diaphragm, abdominals, intercostal muscles, and muscles around the lips and mouth. By doing lip trills, you gently warm up these muscles, preparing them for more strenuous vocal activities.
Vocal Flexibility: Lip trills help to increase vocal flexibility and agility. They require control over airflow and the coordination of various muscles, which translates to greater flexibility in vocal range and pitch control.
Relaxation: Lip trills encourage relaxation in the vocal mechanism. When done correctly, they can help to release tension in the throat and neck muscles, promoting a more relaxed and open sound.
Breath Control: Lip trills require consistent airflow, which helps singers develop better breath control and support. By focusing on maintaining a steady stream of air through the lips, singers can improve their breath management skills.
Resonance: Lip trills can also help singers develop resonance in their voices. The buzzing sensation created by the lips helps to stimulate resonance in the vocal tract, leading to a richer, more resonant sound.
Warm-up Routine: Incorporating lip trills into a regular warm-up routine can help establish a consistent vocal routine and promote vocal health. Consistent warm-ups can reduce the risk of vocal strain and injury, allowing singers to perform at their best for longer periods.
Overall, lip trills are an effective and versatile warm-up exercise that offer numerous benefits for singers and speakers alike. They are especially valuable for improving vocal technique, flexibility, and overall vocal health.
Saturday, April 13, 2024
things i learned about singing today
Larynx tips
- lip trills
- tongue trills
These exercises help you internalize the feeling of a lowered larynx because to maintain the buzz tone your technique has to be correct. Using this as a diagnostic feedback is very useful.
Tips on placement
“biting an apple”
imagine your biting an apple opposed to yawning. thinking of a spectrum with the pharyngeal NG forward sound on one end and back of the throat roundness of a yawn. Apple bite is the best of both gives you a more balanced tone if your leaning too far in either direction.
dissecting vocal techniques under a microscope and dipping into extremes is useful to understand techniques but its nice to have something that helps you recalibrate back to normal.
I Like to learn by experimenting and feeling what too much feels like and working back from there. The learning and unlearning processes.
sing high notes without falsetto video by power to sing.
alfred not working right
so i dropped spotlight for alfred but its annoying that even after reindexing im not getting notes or mail to show up in searches. sucks becaues spotlight usually defaults to web searches when i want to get apps.
MY FIX:
ehhh just use both.
on my redragon TKL keyboard i used karabiner to remap
the right control key to be numpad zero
(originally to trigger shortcuts app)
just re maapped that to trigger spotlight so now ive got regular cmd space for alfred and R ctrl to be spotlight
Friday, April 12, 2024
my fav app for voice training
magic stave uses your phones mic to visualize the input frequency on a staff. helps you better understand where you fit in relation to sheet music and instruments.
the voice is a free fretless instrument its easy to get lost. midi keyboards confused me with transpose buttons i never felt any connection to what middle c was. there were a million cs and none of them were the same across different software. very disoriented felt like playing pin the tail on the donkey. spun around blindfolded.
finally some concrete answers! now i know what c3 feels like in relation to my voice. helps me understand each octave feels different and helps me better grasp when i switch gears into a mixed chest voice it feels like unlocking a map in a video game.
https://apps.apple.com/ca/app/magic-stave-free/id354929718
thats for ios
Friday, April 5, 2024
hardening ssh
-
Use Key-Based Authentication: Instead of relying solely on passwords, use SSH key pairs for authentication. This method is more secure as it eliminates the risk of brute force attacks on passwords.
-
Disable Root Login: Prevent direct root logins via SSH by setting
PermitRootLogin no
in your SSH configuration (/etc/ssh/sshd_config
). Instead, log in as a regular user and usesudo
for administrative tasks. -
Change Default SSH Port: Changing the default SSH port (22) can help reduce the number of automated attacks. Specify a custom port in your SSH configuration file (
/etc/ssh/sshd_config
). -
Limit SSH Access: Restrict SSH access to specific users or groups who actually need it. This can be achieved using the
AllowUsers
,AllowGroups
, orDenyUsers
directives in the SSH configuration file. -
Use Strong Encryption Algorithms: Ensure that SSH is configured to use strong encryption algorithms. Disable weak algorithms and protocols such as SSHv1 and insecure ciphers.
-
Enable Two-Factor Authentication (2FA): Implement two-factor authentication for SSH logins. This adds an extra layer of security by requiring a second form of authentication, such as a time-based one-time password (TOTP) or a hardware token.
-
Set Idle Timeout: Configure SSH to disconnect idle sessions after a certain period of inactivity to mitigate the risk of unauthorized access due to abandoned connections.
-
Monitor SSH Logs: Regularly monitor SSH logs for suspicious activity, such as failed login attempts or unauthorized access. Use tools like
fail2ban
orsshguard
to automatically ban IP addresses with multiple failed login attempts. -
Disable SSH Protocol 1 (SSHv1): SSHv1 is considered insecure and should be disabled in favor of SSHv2. Ensure that only SSH protocol version 2 is enabled in your SSH server configuration.
-
Use TCP Wrappers: Use TCP wrappers (
/etc/hosts.allow
and/etc/hosts.deny
) to control access to SSH services based on IP address or hostname. -
Implement Port Knocking: Port knocking is a security technique that involves dynamically opening firewall ports by sending a sequence of connection attempts to predefined ports. This can help conceal the SSH service and protect against port scans.
-
Regularly Update Software: Keep your SSH server software and system up to date with the latest security patches and updates to mitigate vulnerabilities.
ssh keypair raspberry pi
I dont want to use ssh keygen because I already have a pubkey generated previously.
All the other tutorials usually start from there usually,
so heres how you get your pubkey set up on a pi if you've already got one kicking around.
cat ~/.ssh/id_rsa.pub
copy it, login to your pi.
ssh username@raspberrypi.local
mkdir -p ~/.ssh # Create .ssh directory if not exists
touch ~/.ssh/authorized_keys # Create authorized_keys file if not exists
vim ~/.ssh/authorized_keys # Open the authorized_keys file in a text editor
paste it in, change permissions.
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
disable password login
you could just use raspi-config but heres how to do it from the term.
sudo vim /etc/ssh/
set PasswordAuthentication no
save and restart ssh service
sudo systemctl restart ssh
hidden network on raspberry pi fix
thought i could just ssh into it.
thought maybe i just forgot what i called the pi.
nmapped but couldnt find it. thought maybe i suck at using nmap.
logged into the router. still didn't see the pi.
ugh I really didn't want to have to get up and grab that hdmi cable.
turns out the network wasn't showing up.
makes sense, since i set the new router to hidden.
used raspi-config to add it back.
tried rebooting still wasn't showing up.
THE FIX
- cd to /etc/wpa_supplicant/wpa_supplicant.conf
- add scan_ssid=1
network={
ssid="your SSID"
scan_ssid=1
psk=your PSK
}
then reboot