Skip to content

Instantly share code, notes, and snippets.

View A4D4RSHA's full-sized avatar
😎

Aadarsha Paudel A4D4RSHA

😎
View GitHub Profile
@A4D4RSHA
A4D4RSHA / postman-deb.sh
Created October 11, 2022 08:17 — forked from SanderTheDragon/postman-deb.sh
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2022 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
curlExists=$(command -v curl)
echo "Testing Postman version"
@A4D4RSHA
A4D4RSHA / config.php
Created August 20, 2020 12:44
PDO Connection in PHP
<?php
// Config File
$db_name = "";
$db_user = "";
$db_password = "";
$db_host = "localhost";
// Prepare the Connection
@A4D4RSHA
A4D4RSHA / index.php
Created March 8, 2020 07:30
Simple Script to Replace "matches XX" to "matches XX++"
<?php
$file = file_get_contents("matches.txt");
// explode lines
$lines = explode("
", $file);
$new_matches = "";
foreach($lines as $line) {