This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -h hist_name -u user-name -p database_name < sql_file_name # for restoring a dump | |
GRANT ALL PRIVILEGES ON *.* TO'user_name'@'%'; # on all database on each incoming host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Redis CheatSheet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use parkplus_infra_sandbox_v3; | |
/** | |
SQL CookBook | |
*/ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const semSel = document.getElementById('sem-sel') | |
const semInput = document.getElementById('Semester') | |
const subSel = document.getElementById('sub-sel') | |
const subInput = document.getElementById('Subject') | |
const semm = document.getElementsByName('Semester') | |
const container=document.getElementById('container_edit_form') | |
const edit_form=document.getElementById('edit-form') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Form = document.getElementById('sub_sel_form') | |
const semSel = document.getElementById('sem-sel') | |
const semInput = document.getElementById('Semester') | |
const subSel = document.getElementById('sub-sel') | |
const subInput = document.getElementById('Subject') | |
// const img = document.getElementById('img_id') | |
const URL='' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file is a list of dict, and you can create a new one by replacing existing dict key values | |
file = [ {**row, 'GPA':row['GPA'].replace('.', '$') } for row in file ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Giant Port List | |
Down to the UDP port list | |
TCP Ports | |
TCP 0 Reserved | |
TCP 1 Port Service Multiplexer | |
TCP 2 Management Utility | |
TCP 3 Compression Process | |
TCP 4 Unassigned | |
TCP 5 Remote Job Entry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go run filename | |
go build filename | |
go doc strconv.Atoi | |
Constants: Types: | |
true false iota nil | |
Functions: | |
make len cap new append copy close | |
delete complex real imag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build the container image | |
docker build -t <image_name:tag> -f <docker_file_path> . | |
//Verfiy the docker image | |
docker image ls <image_name:tag> | |
//Run the container | |
docker run -p 2323:2323 -d --name <container_name> <image_name:tag> | |
//verify the container is running |