Skip to content

Instantly share code, notes, and snippets.

View monirehbastami's full-sized avatar

Monireh Bastami monirehbastami

  • Iran, Shahroud
View GitHub Profile
@monirehbastami
monirehbastami / git-cheat-sheet-persian.md
Last active January 30, 2025 08:55
Git Cheat Sheet

# ایجاد یک پروژه محلی و معرفی آن به گیت

در پوشه جاری پوشه‌ای با نام انتخابی ایجاد می‌گردد که حاوی پوشه "دات.گیت" است.

git init “Project-Name”

معرفی پروژه محلی به گیت

 git init 

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@monirehbastami
monirehbastami / SMTP Setting in OJS
Last active October 21, 2024 11:41
SMTP Setting in OJS
To enable SMTP for Gmail and use it for sending emails through OJS, follow these steps:
1. Enable Less Secure App Access
- Sign in to your Google account.
- Go to the Google Account Security page.
- Scroll down to find the "Less secure app access" section. If this option is available, turn it on.
* Note: Google is phasing out this option, so if it’s not available, you will need to use a different method, like "App Passwords."
2. Enable Two-Step Verification and Create an App Password
If Google has blocked less secure app access, you need to use an App Password. To do this:
@monirehbastami
monirehbastami / Sound Stripper
Last active October 21, 2024 11:38
SoundStripper: a simple python code for extracting audio from video
import subprocess
def sound_stripper(video_file):
audio_file = "audio.wav"
ffmpeg_path = r'C:\FFmpeg\bin\ffmpeg.exe'
command = [
ffmpeg_path,
'-i', video_file,
'-ar', '16000',
'-ac', '1',
@monirehbastami
monirehbastami / Simple CSS svg code Arba'in
Last active October 21, 2024 11:39
Simple CSS svg code Arba'in
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Hossin word designer: Dr.ArianHajian -->
<title>Arba'in</title>
<style>
.container{
background: #030321;
height: 100vh;