Skip to content

Instantly share code, notes, and snippets.

View aliva's full-sized avatar
🤖
Hello Humans!

Ali Vakilzade aliva

🤖
Hello Humans!
View GitHub Profile
find -iname *.bak -exec rm {} \;
# sudo apt-get install mp3val
find -iname *.mp3 -exec mp3val -f -t {} \;
#!/bin/bash
export MY_STRING="This is a sample string"
python3 - << EOF
import os
print (os.getenv("MY_STRING"))
EOF
#!/bin/bash
python3 - << EOF
import sys
for path in sys.path:
print (path)
EOF
#!/bin/bash
echo "this is the first part of your shell script"
python - << EOF
print ("this is a line of python code")
EOF
echo "here is the rest of your shell script"
#!/usr/bin/python3
# pip3 install markdown
template = """<!DOCTYPE html>
<html dir="rtl">
<head>
<meta charset="utf-8">
</head>
<body>
while :
do
t=`date +%S`
echo $t
if [[ $(($t % 10)) == 0 ]]
then
break
fi
while :; do date +%H:%M:%S; sleep 1; done
while :
do
date +%H:%M:%S
# my commands
# ...
sleep 1
done
#SendEnv LANG LC_*