Skip to content

Instantly share code, notes, and snippets.

View Muminur's full-sized avatar

Md. Muminur Rahman Muminur

View GitHub Profile
@Muminur
Muminur / gist:cdca65aa00da277caf1c22d3a0577117
Last active January 14, 2024 12:32
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 / gist:45428da57c7c11f382adf4eae43e1b53
Created June 5, 2018 13:22
GitHub Alternative TOP 7 Opensource Github Alternative site
Github Alternative 2018
https://techspree.net/github-alternatives/
@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')