Smart 🧠 Fullstack
45 subscribers
168 photos
11 videos
13 files
153 links
About channel: everyday developer hints.

for (πŸ’²Coders as πŸ’²Student):
echo("Hello πŸ’²Student->name");
endfor;

Author: @BakirovRoman
Download Telegram
git checkout master

Switched to branch 'master'
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)


git checkout master 2>/dev/null

Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)


git checkout master 2>&1

Switched to branch 'master'
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)


#git #wtf
😁2
Git status have changes, but it is in submodules?

git status --ignore-submodules=all

or:
git update-index --assume-unchanged /path/to/submodule


#git #wtf
Hello World on Brainfuck:

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.


#brainfuck
Ghostscript

Ghostscript is a powerful, versatile interpreter for PostScript and PDF file formats. It's an open-source software package that has been in development since the late 1980s and continues to be actively maintained.

%!PS
/Helvetica findfont
20 scalefont
setfont
72 500 moveto
(Hello, world!) show
showpage


%!PS
/drawCircle { % x y radius
3 dict begin
/r exch def
/y exch def
/x exch def

x y r 0 360 arc
fill
end
} def

% Red Circle
1 0 0 setrgbcolor
100 100 30 drawCircle

% Green Circle
0 1 0 setrgbcolor
200 150 40 drawCircle

% Blue Circle
0 0 1 setrgbcolor
150 200 35 drawCircle

showpage


gs test.ps


#ghostscript
Batch Convert mkv to ogg

nano batch-mkv-to-ogg.sh

for file in *.mkv; do
ffmpeg -i "$file" -vn -c:a libvorbis "${file%.mkv}.ogg"
done

chmod +x batch-mkv-to-ogg.sh

./batch-mkv-to-ogg.sh


Video 4 iPhone:
ffmpeg -i input.mkv -codec copy output.mp4


#vorbis #ogg #convert #mkv #ffmpeg #video #iphone
Bash cd OLDPWD

romaxa@coder:~$ cd -
bash: cd: OLDPWD not set
romaxa@coder:~$ cd / && pwd && cd -
/
/home/romaxa


#bash
Install PHP Phalcon for php8.4, troubleshooting with php 8.3.

sudo apt-get install php8.4-dev
sudo update-alternatives --set phpize /usr/bin/phpize8.4
sudo update-alternatives --set php-config /usr/bin/php-config8.4
sudo pecl uninstall phalcon-5.9.0
sudo pecl install phalcon-5.9.0
composer global require phalcon/devtools:"^5.0@dev" --dev
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc


#php #phalcon #pecl
When SSL Certificate Expires

echo | openssl s_client -servername bakirov.expert -connect bakirov.expert:443 2>/dev/null | openssl x509 -noout -dates | grep 'notAfter'

notAfter=Jul  9 10:59:02 2025 GMT

or
end_date=$(echo | openssl s_client -servername bakirov.expert -connect bakirov.expert:443 2>/dev/null | openssl x509 -noout -enddate | cut -d= -f2); end_ts=$(date -d "$end_date" +%s); now_ts=$(date +%s); echo $(( (end_ts - now_ts) / 86400 )) days till the end

84 days till the end


Source

#ssl #tls #openssl #certificate #expire
😁2πŸ‘1
White Boσ „²σ …œσ …₯σ …•σ „σ …ƒσ …“σ …’σ …•σ …•σ …žσ „σ …Ÿσ …–σ „σ „΄σ …•σ …‘σ …€σ …˜ard

Hint

Hint 2 (Description)

Buy $5000 Emoji =)

#steganography #funny #task #challenge
Show Sys & Hardware Info Linux

apt install neofetch


#linux #sys
Set Redis Key Value From File

export REDISCLI_AUTH='password'
cat index.html | redis-cli -h 127.0.0.1 -p 6789 -x SET "redis-key"


#redis #bash
πŸ”₯1
This media is not supported in your browser
VIEW IN TELEGRAM
klingai.com v1.6

Penguin looks at the monitor in which 2 elephants, a python, a crab, a dolphin, a whale, and there is a railroad next to each other.


#ai #video #funny #kling
Forwarded from Coding Tips 😎
😁3
* * * * * /path/to/your_script.sh
* * * * * sleep 30 && /path/to/your_script.sh


😎 #funny #cron #crontab
Please open Telegram to view this post
VIEW IN TELEGRAM