Let's say you want to host domains first.com and second.com.
Create folders for their files:
| <template> | |
| <div> | |
| <ul> | |
| <li v-for="product in products_data" class="py-6"> | |
| <inertia-link :href="'products/' + product.id">{{ product.name }}</inertia-link> | |
| </li> | |
| </ul> | |
| </div> | |
| </template> |
| package main | |
| import ( | |
| "runtime" | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| // Print our starting memory usage (should be around 0mb) |
| readinessProbe: | |
| exec: | |
| command: ["/root/grpc_health_probe", "-addr=:6666"] | |
| initialDelaySeconds: 1 | |
| livenessProbe: | |
| exec: | |
| command: ["/root/grpc_health_probe", "-addr=:6666"] | |
| initialDelaySeconds: 2 | |
| imagePullPolicy: IfNotPresent |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/spf13/viper" | |
| ) | |
| // Create private data struct to hold config options. | |
| type config struct { |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "sort" | |
| "time" | |
| ) | |
| // a struct to hold the result from each request including an index |
| /** | |
| * Plural forms for russian words | |
| * @param {Integer} count quantity for word | |
| * @param {Array} words Array of words. Example: ['депутат', 'депутата', 'депутатов'], ['коментарий', 'коментария', 'комментариев'] | |
| * @return {String} Count + plural form for word | |
| */ | |
| function pluralize(count, words) { | |
| var cases = [2, 0, 1, 1, 1, 2]; | |
| return count + ' ' + words[ (count % 100 > 4 && count % 100 < 20) ? 2 : cases[ Math.min(count % 10, 5)] ]; | |
| } |
| wget -qO- https://check.torproject.org/exit-addresses | grep ExitAddress | cut -d ' ' -f 2 | sed "s/^/deny /g; s/$/;/g" > /etc/nginx/conf.d/tor-block.conf; systemctl reload nginx |
| <?php | |
| /** | |
| * This is a proof of concept. In real life you would split up the various parts and allow for different cell value | |
| * types. Also read Leviscowles1986's comment below: | |
| * https://gist.github.com/thehelvetian/2e94d60b796735b167dfb1c7560049ae#gistcomment-1822986 | |
| * | |
| * @param array $ary_values An array containing the cell values | |
| * @return bool Request status | |
| */ | |
| function addRowToSpreadsheet($ary_values = array()) { |
| <?php | |
| /** | |
| * simple method to encrypt or decrypt a plain text string | |
| * initialization vector(IV) has to be the same when encrypting and decrypting | |
| * | |
| * @param string $action: can be 'encrypt' or 'decrypt' | |
| * @param string $string: string to encrypt or decrypt | |
| * | |
| * @return string | |
| */ |