Skip to content

Instantly share code, notes, and snippets.

View bathivinod's full-sized avatar

Vinod Bathi bathivinod

  • Pennywise solultion pvt ltd
  • Hyderabad, India
View GitHub Profile
@abayer
abayer / jenkins-git-backup.sh
Last active June 7, 2025 03:08
Example of a script for backing up Jenkins config in git.
#!/bin/bash
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
set -ex
if [ $# -ne 2 ]; then
echo usage: $0 root_dir jenkins_master
@dgoguerra
dgoguerra / yii2-webapp-installation.md
Last active July 24, 2023 07:28
Setup steps to serve a Yii 2 webapp in an Amazon EC2 instance with Ubuntu 14.04.

Installation

This file covers all the steps needed to install a web server and Yii 2 framework to host a project in an Ubuntu 14.04 server.

Apache and php installation

First, the packages related to apache and php need to be installed:

@hvmonteiro
hvmonteiro / legal-notice-example01
Last active January 9, 2026 10:00
LEGAL Notices for Login/MOTD unix banners
@peterforgacs
peterforgacs / Windows10AWSEC2.md
Last active October 27, 2025 08:09
Running Windows 10 on AWS EC2

Running Windows 10 on AWS EC2

Downloading the image

Download the windows image you want.

AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)

So Home wont work.

@thanhzusu
thanhzusu / generate-ssh-key-for-bitbucket.txt
Created October 30, 2017 06:43
Generate ssh key for bitbucket
1. Generate ssh key: ssh-keygen -t rsa -C "your_email@example.com"
2. Go to ssh folder: cd ~/.ssh/
3. Copy content of id_rsa.pub file
4. Go to bitbucket setting by going to your profile > select Bitbucket settings. Then select SSH keys and add new one.
@muhozi
muhozi / Laravel-permission.md
Last active October 21, 2024 23:54
Setting proper permissions to laravel directory

Setting up proper permissions to a laravel directory

There are basically two ways to setup your ownership and permissions. Either you give yourself ownership or you make the webserver the owner of all files.

Webserver as owner (the way most people do it):

Assuming www-data is your webserver user.

@zanechua
zanechua / azure-pipelines.yml
Last active September 23, 2024 09:41
Azure Pipeline + Laravel + MySQL + PHPUnit + Laravel Dusk
# PHP
# Test and package your PHP project.
# Add steps that run tests, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/php
pool:
vmImage: 'Ubuntu 16.04'
variables:
phpVersion: 7.2
@ausfestivus
ausfestivus / AzureRegionData.md
Last active January 27, 2026 14:08
A list of the Azure regions

List of Azure Regions

A list of all the region names and locations for Azure

Creating the list

You can recreate the list anytime using this command:

az account list-locations -o table
@mtvbrianking
mtvbrianking / redis.md
Last active June 17, 2025 00:27
Install Redis on Xampp - Windows

Redis

Linux

jdoe@home-pc:~# apt-get install redis-server
jdoe@home-pc:~# systemctl enable redis-server@.service
jdoe@home-pc:~# apt-get update
jdoe@home-pc:~# apt-cache pkgnames | grep php7.4
jdoe@home-pc:~# apt install php7.4-redis
@thegreatestminer
thegreatestminer / encoded-20201212150102.txt
Created December 12, 2020 15:01
MobaXTerm Professional x64 License Key [READ COMMENTS]
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA=