Skip to content

Instantly share code, notes, and snippets.

View SaFi2266's full-sized avatar

Mustafa SAADI SaFi2266

View GitHub Profile
@SaFi2266
SaFi2266 / MakeEMISShortcut.bat
Created January 13, 2023 16:25
ملف حزمي لتوليد مفتاح اختصار (شورت كت) مع الايقونة للوصول مباشرة للوحة إدارة المعلومات التربوية EIMS
@echo off
:: Set Encoding for Arabic naming
chcp 1256
::Set the application-specific string vars
SET AppDescription=EMIS
SET IconURL=https://publictest.epicemis.school/App_Themes/EMIS/images/favicon.ico
SET Shortcut_Name=ÈÑäÇãÌ ÅÏÇÑÉ ÇáãÚáæãÇÊ ÇáãÏÑÓíÉ (EMIS)
SET URL_PATH=https://publictest.epicemis.school/
@SaFi2266
SaFi2266 / args_script_template.sh
Created February 3, 2023 15:19 — forked from rragundez/args_script_template.sh
Template of bash script with mandatory and optional arguments
#!/bin/bash
set -e
usage="$(basename "$0") [-h] [-i PROJECT] [-v VM] [-p PYTHON] [-d NOTEBOOKS]
Make a user provide SSH key and jupyter notebooks (in roles/bootstrap/files/notebooks) to each user listed in var/common.yml
where:
-h show this help text
-i google cloud project id
-v name of instance/virtual machine
-p python path
@SaFi2266
SaFi2266 / playlist-dl.sh
Created July 10, 2023 14:14
Bash script to download youtube playlists
#!/usr/bin/env bash
##################################################################
# Playlist-dl v.1.1 by SaFi2266 (safi2266@gmail.com)
# First: Get your API Key from https://console.cloud.google.com/
# Second: Install the folowing if you doesn't already'
# - curl (sudo apt install curl)
# - jq (sudo apt install jq)
# - yt-dlp (pip install yt-dlp)
##################################################################
bold=$(tput bold)
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux