# clone the repo and get into it
git clone https://github.com/imartinez/privateGPT && cd privateGPT
# install Python 3.11
pyenv install 3.11
# install make for running various scripts
This file contains 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
/**#@+ | |
* Authentication Unique Keys and Salts. | |
* | |
* Change these to different unique phrases! | |
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} | |
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. | |
* | |
* @since 2.6.0 | |
*/ | |
define('AUTH_KEY', 'put your unique phrase here'); |
This file contains 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
.test{ | |
color: red; | |
font-size: 16px; | |
} | |
.content-body{ | |
font-family: 'Siyam Rupali', 'SolaimanLipi', Vrinda, Arial, Helvetica, sans-serif; | |
font-size: 16px; | |
box-shadow: inset 1px -1px 1px #444,inset -1px 1px 1px #444; /* to make a border-like appearance */ | |
width: 100%; /* to get the full width */ |
This file contains 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
abbr { | |
position: relative; | |
cursor: pointer; | |
} | |
abbr:hover::after { | |
content: attr(title); | |
position: absolute; | |
white-space: nowrap; | |
background-color: #666; |
This file contains 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
var finalEnlishToBanglaNumber={'0':'০','1':'১','2':'২','3':'৩','4':'৪','5':'৫','6':'৬','7':'৭','8':'৮','9':'৯'}; | |
String.prototype.getDigitBanglaFromEnglish = function() { | |
var retStr = this; | |
for (var x in finalEnlishToBanglaNumber) { | |
retStr = retStr.replace(new RegExp(x, 'g'), finalEnlishToBanglaNumber[x]); | |
} | |
return retStr; | |
}; | |
This file contains 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 | |
/** | |
* Truncate Amount (in Indian format). | |
* | |
* Return amount in lac/koti etc. | |
* | |
* @param integer $amount Amount. | |
* | |
* @link https://stackoverflow.com/q/42571702/1743124 (Concept) | |
* |
This file contains 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
<!-- | |
jQuery File Upload UI | |
jQuery File Upload is a huge plugin with a lot of functionalities. | |
And that made this a bit complex to find out how to implement a | |
basic upload feature like: | |
1. Multiple file upload | |
2. Validate on file types | |
3. Validate on file size |
This file contains 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 | |
/** | |
* Programmatically install and activate wordpress plugins | |
* | |
* Usage: | |
* 1. Edit the $pluginSlugs array at the beginning of this file to include the slugs of all the | |
* plugins you want to install and activate | |
* 2. Upload this file to the wordpress root directory (the same directory that contains the | |
* 'wp-admin' directory). | |
* 3. Navigate to <your-domain-wordpress-root>/install-wp-plugins.php (If wordpress is installed |
This file contains 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 mime type | |
file -b --mime-type 'filename has space in it.flv' | |
# Create dummy file with any defined size with valid mime_type | |
# file size in binary bytes | |
fsutil file createnew myfile.pdf 10485760 | |
# Source: https://www.digitalcitizen.life/3-ways-create-random-dummy-files-windows-given-size | |
# Helpful converter: https://www.gbmb.org/ |
NewerOlder