[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1775604006029-0.jpg (577 KB, 1536x1024)
577 KB JPG
we discuss our favorite scripting languages, their usecases, post our syntactic sugar, and render cute anime girls stylized like high-level programming languages

i'll start by saying i'm most proficient using bash and I use it every single day! here's my .bash_aliases

alias updoot="sudo apt update && sudo apt upgrade"
alias sinstall="sudo apt install"
alias ytdl="yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
alias ytdla="yt-dlp -x --audio-format mp3 --audio-quality 0"
alias eza="eza --long --tree --level=10"
alias diff="diff --color=auto"
alias hd="hexdump -C"
alias grep="grep --color=auto"
alias egrep="grep -E --color=auto"
alias rigrep="grep --color=auto -Ri"
alias weather="curl wttr.in"
alias underscore="rename 's/ /_/g' * && rename 's/-/_/g' *"
alias python="python3"
alias ..="cd .."
alias ...="cd ../.."
alias s="sudo"
alias shutdown="shutdown now"
alias list_packages="apt list --installed"
>>
>>108738423
>i'm most proficient using bash
>shares aliases
fuck off jeet
>>
>>108738423
zsh
addMemeStyleCaptionToTopOfVideo() {
if [ $# -lt 3 ]; then
echo "Usage: addMemeStyleCaptionToTopOfVideo <input_file> <caption_text> <output_file>"
return 1
fi

# Escape single quotes and other special characters in the text
local escaped_text=$(echo "$2" | sed "s/'/'\\\\\\\\''/g")

# Estimate number of lines (rough calculation: ~25 chars per line at fontsize 50 for 1920px width)
local text_length=${#2}
local chars_per_line=25
local estimated_lines=$(( (text_length + chars_per_line - 1) / chars_per_line ))

# Calculate dynamic padding (60px per line + 40px margin)
local padding_height=$(( estimated_lines * 60 + 40 ))

# Use text wrapping with dynamic padding
ffmpeg -i "$1" -vf "pad=iw:ih+${padding_height}:0:${padding_height}:color=white,drawtext=text='${escaped_text}':x=(w-text_w)/2:y=(${padding_height}-text_h)/2:fontcolor=black:fontsize=50:fontfile=/System/Library/Fonts/Supplemental/Arial.ttf:text_w=1800" "$3"
}
>>
File: barqspepe.png (108 KB, 388x509)
108 KB PNG
>>108738457
what's wrong with sharing aliases, you gay faggot?
>>
[code
# search for a file quick accross entire filesystem
function fdsys
fdfind --hidden $argv / 2>/dev/null
end
[/code]
>>
File: cigarpepe.jpg (95 KB, 1098x1098)
95 KB JPG
>>108738641
>be you
>too stoned on maryjoowana to type
>fuck up code block

put down the bong you damn hippie
>>
neat

abbr -a - 'cd -'


>>108738666
here, suck it
>>
fish

if command -v dnf > /dev/null
abbr -a up 'sudo dnf upgrade --refresh && sudo dnf autoremove'
else if command -v apt > /dev/null
abbr -a up 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove'
else if command -v pacman > /dev/null
abbr -a up 'sudo pacman -Syu && sudo pacman -Rns $(pacman -Qtdq)'
end
>>
>>108738423
Why are Ruby and Bash so fat?
>>
Is this yet another AI slop general we have to filter now?
>>
php is the greatest
>>
>>108738423
>python
>54kg
more like 154kg bloatlord
>>
I could never get into bash for most things.
If anything I just use aliases.

Python is amazing though. List comprehensions are great. It has a ton of libraries and support (i always try to minimize that use though because the whole ecosystem sucks)
Can't imagine using it for actual applications though.
>>
>>108739305
>>108739305
Since they added type hints, it has become my favorite language. The only thing I dislike about Python is its performance. I don’t know why they don’t develop a new runtime that solves this issue. Java did this and it’s now a better development environment than it was 10+ years ago.
>>
File: perlgirl.png (123 KB, 327x318)
123 KB PNG
>>108738423
Perl is having some issues
>>
>>108738423
kill js-tan
sex with the rest



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.