This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
# ... existing containers from immich docker-compose.yml | |
debug: | |
image: python:3.11.9-bullseye | |
container_name: immich_debugger | |
command: tail -f /dev/null | |
env_file: | |
- stack.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Usage | |
### gitchecker.sh Parent_Folder_With_GIT_Folders | |
DIR=$(PWD)/$1 | |
for R in $DIR/*; do | |
cd $R | |
if `git status | grep -q "nothing to commit"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MY_HOME="/var/www/prajapatianil.com.np/backupdb/" | |
case $1 in | |
"backup") | |
cd $MY_HOME | |
mysqldump -h localhost -u 'usermysql' -p'passwordmysql' databasename > websitedb$(date +%Y%m%d_%H).sql | |
tar -zcvf websitedb$(date +%Y%m%d_%H).tgz websitedb$(date +%Y%m%d_%H).sql | |
rm websitedb$(date +%Y%m%d_%H).sql;; | |
*) echo "Others";; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage | |
# ./backup_script.sh | |
# logger used for adding log to syslog | |
# CONSTANT | |
################### | |
ROOT_DIR=/var/www/prajapatianil.com.np/ | |
UPLOAD_FOLDER=$ROOT_DIR/public_html/uploads | |
MEDIA_FOLDER=$ROOT_DIR/public_html/media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[includeIf "gitdir:**/htdocs/mycompany-paypal/"] | |
path = .gitconfig-mycompany-paypal # filename where your custom git credential is saved for that particular folder | |
# This is Git's per-user configuration file. | |
# This will be used as global if you use. | |
[user] | |
# Please adapt and uncomment the following lines: | |
# name = unknown | |
# email = Anil@Anil(none) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage | |
# ./delete-mail-containing-email.sh [email protected] | |
EMAILADDY=$1 | |
if [ -z "$EMAILADDY" ] | |
then | |
echo "Usage: $0 <email adres>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.path | |
from os import path | |
# This script is used for my personal project in codeigniter to check if file exist and line of text exist. | |
# It is running from applications folder in the project | |
def verify_if_file_content_text(filepath,content_to_find): | |
content_exist = False | |
if( path.exists( filepath ) and os.path.isfile( filepath ) ): | |
with open(filepath) as fp: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ req ] | |
default_bits = 2048 | |
default_keyfile = server-key.pem | |
distinguished_name = subject | |
req_extensions = req_ext | |
x509_extensions = x509_ext | |
string_mask = utf8only | |
[ subject ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p domain="Enter Domain: " | |
set OPENSSL_CONF=../conf/openssl.cnf | |
if not exist .\%domain% mkdir .\%domain% | |
..\bin\openssl req -config cert.conf -new -sha256 -newkey rsa:2048 -nodes -keyout %domain%\server.key -x509 -days 365 -out %domain%\server.crt | |
echo. | |
echo ----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#title :AnilPrz's Life with GIT & REACT | |
#description :This script helps to do everyday / every 3/4 hour git push or npm run build or git pull | |
#author :Anil Prajapati | |
#date :20181012 | |
#version :1 | |
#usage :bash gitpush.sh /home/anil/myrepo/ MyBranchName MyReactFolder | |
#notes :This is a personal script to make my life easier. It works for any GIT repo with REACT folder just inside the GIT repo. You can Skip react if you dont have | |
#bash_version :4.1.5 | |
#============================================================================== |
NewerOlder