Skip to content

Instantly share code, notes, and snippets.

View xyzkpz's full-sized avatar
😮
I may be slow to respond.

kishan.panchal xyzkpz

😮
I may be slow to respond.
View GitHub Profile
@xyzkpz
xyzkpz / gist:b29679d889337152f0d6576866c654b6
Last active November 1, 2020 19:46
php httpd.conf file
dawnload wamp and codeignitor
to run all service of wamp stop mysqlcli.exe from taskmanager
or visit below url
--httpd.conf file of apache change port 80 to 8080
#Listen 12.34.56.78:8080
Listen 0.0.0.0:8080
Listen [::0]:8080
@xyzkpz
xyzkpz / github commands
Last active November 29, 2020 12:28
all about github and use
// create git
git init .
// add to staging area
git add .
// commit final changes
git commit -am "final commit"
//check current status
@xyzkpz
xyzkpz / install laravel using composer
Last active January 29, 2021 20:48
install laravel using composer
first install composer exe from this website - https://getcomposer.org/download/
reboot pc
run 4 command in htdoc create project folder pro
>>>> C:\MAMP\htdocs\pro\cmd.exe
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
@xyzkpz
xyzkpz / laravel packages installation guide.txt
Last active December 30, 2020 09:30
laravel collection of packages with installations
--------------- LIST OF ESSENTIAL PACKAGES USED IN PHP TO CREATE PROJECT FASTER IN LARAVEL ------------------------
------------------- PACKAGE 1 -------------------
http://image.intervention.io/getting_started/installation
------------------- PACKAGE 1 -------------------
INSTALLL USING IN PROJECT IN CMD
composer require intervention/image
THEN ADD below 2 lines INSIDE CONFIG/APP.PHP
@xyzkpz
xyzkpz / d7adp72.Dockerfile
Created July 25, 2021 12:54 — forked from Biker93/d7adp72.Dockerfile
Biker Drupal 7 Dockerfile
# docker build -t drupal:d7adp72 -f d7adp72.Dockerfile .
# docker image tag drupal:d7adp72 .../drupal:d7adp72
# docker push .../drupal:d7adp72
FROM php:7.2-apache
# install the PHP extensions we need
RUN set -ex; \
\
if command -v a2enmod; then \
@xyzkpz
xyzkpz / gist:a9a276306275919c09a810393803538f
Created August 21, 2021 00:56
VM were error The process cannot access the file because another process has locked a portion of the file
solution go to below path and delete all files and restart vm
https://communities.vmware.com/t5/VMware-Workstation-Pro/The-process-cannot-access-the-file-because-another-process-has/td-p/466318

Install suggested plugin

  • Folders Plugin
  • OWASP Markup Formatter Plugin
  • build timeout plugin
  • Credentials Binding Plugin
  • Timestamper Workspace Cleanup Plugin
  • Ant Plugin Gradle Plugin
  • Pipeline GitHub Organization
  • Folder Plugin
@xyzkpz
xyzkpz / docker.md
Created September 5, 2021 08:51 — forked from developerinlondon/docker.md
Docker saving and loading images

Here's how to save and load docker images:

Example scenario: To save a docker image from a docker repository and save it as a tar file locally.

  1. Save the image as a tarball

docker save repositoryname:tag > repotag.tar

  1. Zip the image
@xyzkpz
xyzkpz / postgres-backup.sh
Created September 11, 2021 11:41 — forked from 4410287/postgres-backup.sh
Shell script for daily postgres database backup with basic archiving.
#!/bin/bash
# Written 2018-11-15 by 4410287
# This script will create a backup file of a postgres database and compress it. It is capable of access a local or remote server to pull the backup. After creating a new backup, it will delete backups that are older than 15 days, with the exception of backups created the first of every month. It is recommended to create a seperate database user specifically for backup purposes, and to set the permissions of this script to prevent access to the login details. Backup scripts for different databases should be run in seperate folders or they will overwrite each other.
HOSTNAME=
USERNAME=
PASSWORD=
DATABASE=
# Maintainer: Jakub Hajek, jakub.hajek@cometari.com
#
# docker stack deploy -c stack-elastic.yml elastic
#
# The stack creates Elasticsearch cluster consiting of
# - 3 dedicated master nodes in order to keep quorum
# - 4 dedicated data nodes to manage CRUD,
# - 2 coordination node acting like kind of load balancer in multi instance environments
#
#