Skip to content

Instantly share code, notes, and snippets.

View ahmadkakarr's full-sized avatar

Ahmed Hassan Khan Kakar ahmadkakarr

  • Lahore, Punjab, Pakistan
View GitHub Profile
@ahmadkakarr
ahmadkakarr / httpd.conf
Created July 10, 2022 08:35
Configuring PHP 8.x Version with apache
PHPIniDir "C:/php811"
AddHandler application/x-httpd-php .php
LoadModule php_module "C:/php811/php8apache2_4.dll"
@ahmadkakarr
ahmadkakarr / httpd.conf
Created July 10, 2022 06:36
Configure Rendering of PHP Scripts with Apache Web Server
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
@ahmadkakarr
ahmadkakarr / httpd.conf
Last active July 10, 2022 08:42
Configuring PHP 7.x Version with apache
PHPIniDir "C:/php7427"
AddHandler application/x-httpd-php .php
LoadModule php7_module "C:/php7427/php7apache2_4.dll"
@ahmadkakarr
ahmadkakarr / httpd.conf
Last active July 10, 2022 06:30
Configuring Apache Web Server for Moodle
<IfModule mpm_winnt_module>
ThreadStackSize 8888888
</IfModule>
@ahmadkakarr
ahmadkakarr / php.ini
Created July 8, 2022 18:15
php.ini file for php8.0 that worked for moodle.
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
import subprocess
subprocess.run('sudo systemctl status nginx', shell=True, check=True)
subprocess.run("sudo ufw allow 'Nginx Full'", shell=True, check=True)
subprocess.run('sudo ufw allow OpenSSH', shell=True, check=True)
@ahmadkakarr
ahmadkakarr / Bootstrap.css
Last active August 16, 2020 19:31
Storing Data in Html
//add bootstrap file.
@ahmadkakarr
ahmadkakarr / client.opvn
Created August 6, 2017 22:27 — forked from lookingcloudy/client.opvn
Setup OpenVPN on Open Media Vault Server
#sample client configuration file
#place the ca.crt, client.crt, and client.key
#in the same folder as this configuration file.
#Import this into your OpenVPN client
client
dev tun
proto udp
# change this to the IP or name of your server
@ahmadkakarr
ahmadkakarr / feedly.py
Created June 16, 2017 19:49 — forked from scturtle/feedly.py
python scripts for feedly
import re
import json
import requests
URL_TO_SAVE = ('https://feedly.com/v3/streams/contents?'
'streamId=user%2F{}%2Ftag%2Fglobal.saved&count=100')
HEADERS = dict(l.strip().split(': ') for l in open('headers.txt').readlines()
if len(l.strip()))
USERID = re.search(r'"feedlyId":"([^"]+)"', HEADERS['Cookie']).group(1)
@ahmadkakarr
ahmadkakarr / package.json
Created June 4, 2017 19:05 — forked from coryhouse/package.json
package.json for Building a JS Development Environment on Pluralsight
{
"name": "javascript-development-environment",
"version": "1.0.0",
"description": "JavaScript development environment Pluralsight course by Cory House",
"scripts": {
},
"author": "Cory House",
"license": "MIT",
"dependencies": {
"whatwg-fetch": "1.0.0"