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
-- code for https://youtu.be/tp_5c6jaNQE | |
create table users ( | |
id serial primary key, | |
first_name varchar(255) not null, | |
last_name text, | |
age int, | |
email text unique not null | |
); |
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
All Databses | |
sudo mysqlcheck -a --all-databases | |
Specific a Database | |
sudo mysqlcheck -a [database] |
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
1. Navigate to home directory | |
nano ~/enable_scroll_lock_with_key.sh | |
#!/bin/bash | |
on=$(xset -q | grep 'Scroll Lock:' | cut -d ":" -f 7) | |
echo $on | |
if [ $on == "off" ]; then | |
xset led named "Scroll Lock" | |
else |
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
1. navigate to home directory | |
nano ~/enable_scroll_lock.sh | |
#!/bin/bash | |
xset led named "Scroll Lock" | |
Make the Script Executable: | |
chmod +x ~/enable_scroll_lock.sh |
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
sudo xmodmap -e 'add mod3 = Scroll_Lock' |
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
<?php | |
// validate | |
public function bank_check($short, $account) | |
{ | |
$bank_v_access_key = env('BANK_ACCOUNT_CHECK_KEY'); | |
$bank_v_password = env('BANK_ACCOUNT_CHECK_PASSWORD'); | |
$sort_code = $short; | |
$account_number = $account; |
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->prefrences -> Configure User Snippets -> SEARCH (typescriptreact.json) -> Add the below code | |
"Typescript React Function Component": { | |
"prefix": "rh", | |
"body": [ | |
"import React from 'react'", | |
"", | |
"interface ${TM_FILENAME_BASE}Props {", | |
"$1", | |
"}", |
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
<?php | |
return [ | |
/* | |
|---------------------------------------------------------------------------- | |
| Google application name | |
|---------------------------------------------------------------------------- | |
*/ | |
'application_name' => env('GOOGLE_APPLICATION_NAME', ''), |
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
<!-- | |
'************************************************************************* | |
' | |
' b-PAC 3.2 Component Sample for Extensions (JS_NamePlate.html) | |
' | |
' (C)Copyright Brother Industries, Ltd. 2019 | |
' | |
'*************************************************************************/ | |
--> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
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
Follow this instractions | |
1. Install usig WSL (This step only for windows machine) | |
Windows Subsystem Linux: https://docs.microsoft.com/en-us/windows/wsl/install | |
2. check distribution | |
uname | |
3. install redis | |
sudo apt-get update |
NewerOlder