Skip to content

Instantly share code, notes, and snippets.

View ArslanKathia's full-sized avatar
🌏
Working from home

Arslan Maqbool ArslanKathia

🌏
Working from home
View GitHub Profile
@ArslanKathia
ArslanKathia / moodlemobileapp.css
Created April 20, 2024 12:52 — forked from jleyva/moodlemobileapp.css
moodlemobileapp.css advanced
.bar-header {
background-color: #5069A1;
}
ion-side-menu li .item {
background-color: #313848;
border-color: #4F5865;
color: #BCC3CF;
}
@ArslanKathia
ArslanKathia / gist:050d778d9dda9b9bd9ef3a669ba7cf24
Created April 7, 2024 09:45
Install Web-Server Php,mysql and phpmyadmin on docker
-------------------
docker-compose.yml
-------------------
version: "3.9"
services:
webserver:
container_name: PHP-webserver
build:
@ArslanKathia
ArslanKathia / gist:742ef1ad62e8644d4c75585881b07b96
Last active April 2, 2024 09:53
To install Nagios on Ubuntu, follow these step-by-step commands based on the provided sources:
To install Nagios on Ubuntu, follow these step-by-step commands based on the provided sources:
1. **Install Packages Dependencies**:
- Update the Ubuntu repository:
```bash
sudo apt update
```
- Install necessary packages for Nagios installation:
```bash
sudo apt install -y autoconf gcc make unzip libgd-dev libmcrypt-dev libssl-dev dc snmp libnet-snmp-perl gettext
@ArslanKathia
ArslanKathia / allinonemigration.md
Created September 11, 2023 03:23 — forked from giovanni-d/allinonemigration.md
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

All-in-One WP Migration Restore From Server (without pro version)

If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, follow the instructions below:

  1. Open the js file: wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js
  2. On line 1208, replace the code below:
$('.ai1wm-backup-restore').click(function (e) {
@ArslanKathia
ArslanKathia / nvmCommands.js
Created August 24, 2023 10:51 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@ArslanKathia
ArslanKathia / contracts...Learning...IdentityManagement.sol
Created April 15, 2023 17:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract IdentityManagement{
//address owner;
//structure to hold user data
struct User{
string firstName;
@ArslanKathia
ArslanKathia / contracts...Learning...CropsSupplyChain.sol
Created April 15, 2023 17:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract CropsSupplyChain{
//Define variable for tracking crop batch
struct CropBatch{
string origin;
@ArslanKathia
ArslanKathia / contracts...Learning...HealthCareSupplyChain.sol
Created April 15, 2023 17:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HealthSupplyChain{
address public manufacturer;
address public distributor;
address public recipient;
uint public shipmentDate;
@ArslanKathia
ArslanKathia / contracts...Learning...IdentityManagement.sol
Created April 8, 2023 11:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract IdentityManagement{
//address owner;
//structure to hold user data
struct User{
string firstName;
@ArslanKathia
ArslanKathia / BEP20 Token Contract
Created March 4, 2023 11:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SKCoin {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;