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
<?php | |
//--------------------- Copyright Block ---------------------- | |
/* | |
PrayTime.php: Prayer Times Calculator (ver 1.2.2) | |
Copyright (C) 2007-2010 PrayTimes.org | |
Developer: Hamid Zarrabi-Zadeh | |
License: GNU LGPL v3.0 |
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 | |
# check for domain hosted at A2Hosting - made by Abdelaziz Elrashed (vzool) | |
if [ -z $1 ]; then | |
echo "Usage $0 <domain>" | |
exit 1 | |
fi | |
ip=$(curl https://ipfinder.us) | |
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
name: Node CI | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
upload-release: |
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
# Add Repository to your system (ondrej/php PPA) | |
sudo apt install apt-transport-https lsb-release ca-certificates | |
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' | |
sudo apt update | |
# Install PHP 7.1 | |
sudo apt install php7.1 |
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 | |
# apt install certbot python3-certbot-dns-cloudflare | |
chmod 400 /root/.cloudflare | |
certbot certonly --dry-run --dns-cloudflare --dns-cloudflare-credentials /root/.cloudflare -d *.example.me && date >> ssl.log | |
chown bind:bind /etc/letsencrypt/live -R | |
# .cloudflare file | |
# Cloudflare API credentials used by Certbot | |
# dns_cloudflare_email = [email protected] | |
# dns_cloudflare_api_key = xxxxxxxxxxxxxxxxxxxxx |
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
ssl=yes | |
use=if if=eth0 | |
protocol=cloudflare, \ | |
zone=example.com, \ | |
[email protected] \ | |
password='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ | |
test.example.com |
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
netdom query fsmo | |
regsvr32 schmmgmt.dll |
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
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
return new class extends Migration | |
{ | |
/** | |
* Run the migrations. |
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
# Bitbucket Git Downloader | |
# Copyright (c) Davide Gironi, 2021 | |
# Released under GPLv3 | |
# Downloads all the repository from a Bitbucket account |
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
-- Reasonably efficient pagination without OFFSET | |
-- SQLite version (Adapted from MS SQL syntax) | |
-- Source: http://www.phpbuilder.com/board/showpost.php?p=10376515&postcount=6 | |
SELECT foo, bar, baz, quux FROM table | |
WHERE oid NOT IN ( SELECT oid FROM table | |
ORDER BY title ASC LIMIT 50 ) | |
ORDER BY title ASC LIMIT 10 |
NewerOlder