Skip to content

Instantly share code, notes, and snippets.

View tamimibrahim17's full-sized avatar
🎯
Focusing

Tamim Ibrahim tamimibrahim17

🎯
Focusing
  • Tikweb
  • Bangladesh
View GitHub Profile
#!/bin/bash
set -e -o errexit -o pipefail -o nounset
###################################
# This script can be used by itself, but it's recommended that you read
# a tutorial on Proxmox forum first: https://forum.proxmox.com/threads/hey-proxmox-community-lets-talk-about-resources-isolation.124256/
###################################
# Do not modify these variables (set by Proxmox when calling the script)
vmId="$1"
@tamimibrahim17
tamimibrahim17 / access_from_web.md
Created January 14, 2024 09:12 — forked from jasperf/access_from_web.md
MySQL Commands to create users, database, password and grant necessary privileges from the command line
mysql> CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'localhost' WITH GRANT OPTION;
mysql> CREATE USER 'user_name'@'%' IDENTIFIED BY 'password';

mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'%' WITH GRANT OPTION;

@tamimibrahim17
tamimibrahim17 / custom-provision.sh
Created December 7, 2023 21:31 — forked from neilgee/custom-provision.sh
Custom VVV Variable Provisioning for WordPress sites
# #!/bin/bash
# #
# # provision.sh
# #
# # This file is specified in Vagrantfile and is loaded by Vagrant as the primary
# # provisioning script whenever the commands `vagrant up`, `vagrant provision`,
# # or `vagrant reload` are used. It provides all of the default packages and
# # configurations included with Varying Vagrant Vagrants.
# # By storing the date now, we can calculate the duration of provisioning at the

Using Github Gists to VC bash_aliases

Version Control your .bash_aliases file using:


I'll use a sample .bash_aliases file for the tut:

# ~/.bash_aliases
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@tamimibrahim17
tamimibrahim17 / install_php.sh
Created October 13, 2020 10:48 — forked from nlubisch/install_php.sh
Install PHP7+ with all extensions
#!/usr/bin/env bash
sudo apt-get update && apt-get upgrade
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install \
php7.0 \
php7.0-bcmath \
@tamimibrahim17
tamimibrahim17 / shortlist.txt
Created December 2, 2019 05:54
Short list of commonly sensitive or vulnerable web paths
2g
2.php
2.tar
2.tar.bz2
2.tar.gz
2.txt
2.zip
3
30
300
010-editor: 010 Editor
0-ad: 0 A.D.
0xed: 0xED
115browser: 115Browser, 115浏览器
1clipboard: 1Clipboard
1password: 1Password
1password-cli: 1Password CLI
245cloud: 245cloud
33-rpm: 33 RPM
360safe: 360 Total Security
@tamimibrahim17
tamimibrahim17 / git-bash.sh
Created February 27, 2019 09:55 — forked from gyandeeps/git-bash.sh
Bash alias for git
# Global variables
re='^[0-9]+$'
# Will create a new branch with name ($1) from master
# it will also make sure master is up to date from origin
workstart() {
if ! [[ $1 =~ $re ]]
then
val=$1
else