Skip to content

Instantly share code, notes, and snippets.

View Muminur's full-sized avatar

Md. Muminur Rahman Muminur

View GitHub Profile
@Muminur
Muminur / Reset Ubuntu password without knowing the root password
Created December 12, 2025 08:37
Reset Ubuntu password without knowing the root password
# 🔑 Proxmox VE: How to Reset Forgotten Ubuntu VM/LXC Password
This guide covers the methods for resetting a forgotten user or root password for an Ubuntu guest system installed on Proxmox Virtual Environment (PVE).
---
## 🛑 Method 1: For Linux Containers (LXC) - Easiest
If your Ubuntu guest is an **LXC Container**, you can change the password directly from the Proxmox Host shell as the container shares the kernel.
@Muminur
Muminur / Install N8N on Ubuntu VPS 22.04
Last active December 12, 2025 08:38
Install N8N on Ubuntu VPS 22.04
# Check if Docker is already installed
docker --version
# If not installed, install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Start Docker
sudo systemctl start docker
sudo systemctl enable docker
@Muminur
Muminur / Upload local project to your github account
Last active December 12, 2025 08:38
Upload local project to your github account
git init
git remote add origin https://github.com/Muminur/TranslateShopifyApp.git
git remote -v
git add .
git commit -m "Commit number 1"
git push origin master
If error then
yum -y install epel-release
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum -y install simplescreenrecorder
@Muminur
Muminur / .htaccess
Created April 13, 2019 16:48 — forked from siffring/.htaccess
htaccess to password protect a specific server
# ----------------------------------------------------------------------
# Password protect staging server
# Use one .htaccess file across multiple environments
# (e.g. local, dev, staging, production)
# but only password protect a specific environment.
# ----------------------------------------------------------------------
SetEnvIf Host staging.domain.com passreq
AuthType Basic
AuthName "Password Required"
@Muminur
Muminur / Response.php
Created May 27, 2018 16:49 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@Muminur
Muminur / digitalocean-centos-wordpress.sh
Created October 28, 2016 08:18 — forked from reitermarkus/digitalocean-centos-wordpress.sh
Install WordPress on DigitalOcean CentOS Droplet with PHP 7
#!/bin/sh
DATABASE_NAME='wordpress'
DATABASE_USER='wordpress'
ROOT_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev`
WORDPRESS_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev`
# Write Passwords to File.
facebook.com/ajax/mercury/change_read_status.php$xmlhttprequest
import requests
from BeautifulSoup import BeautifulSoup as BS
import re
def get_dl_page(package_id):
get_request = requests.get('https://apkpure.com/search?q=' + package_id)
page = BS(get_request.text)
# it is assumed that the first search result is the thing we are looking for
link_ps = page.findAll('p', {'class': 'search-title'})
page_link = link_ps[0].a.get('href')