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
| <!-- npx -y pagefind --site public --> | |
| <div x-data="pagefindSearch()" :class="open ? 'w-full' : ''" class="relative w-10/12 sm:w-6/12" | |
| @click.away="open = false; results = []; searchQuery = ''"> | |
| <input @click="open = true" x-model="searchQuery" @input.debounce.300ms="search()" type="text" | |
| class="px-5 py-2 pl-10 rounded-full bg-gray-100 dark:bg-neutral-800 w-full border-lime-500" | |
| placeholder="Search"> | |
| <div class="absolute inset-y-0 left-0 flex items-center pl-3"> | |
| <template x-if="!isLoading"> |
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
| #!/bin/bash | |
| # Periksa apakah file PSD diberikan sebagai argumen | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <input.psd>" | |
| exit 1 | |
| fi | |
| # Periksa apakah ImageMagick terinstal | |
| if ! command -v convert &> /dev/null; then |
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
| version: '3.8' | |
| services: | |
| app: | |
| image: php:83 | |
| container_name: claravel | |
| ports: | |
| - "8888:80" | |
| volumes: | |
| - ./src:/var/www |
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
| /.local/share/Odoo/filestore | |
| not found | |
| DELETE FROM ir_attachment WHERE store_fname LIKE '%<the ending hash>%' | |
| DELETE FROM ir_attachment WHERE store_fname LIKE'%62a49bf2e1730c57a5ed44e864a4dd32080e4e2a%'; |
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
| sed -i 's/abc/aab/g' *.txt |
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 | |
| // Database connection settings | |
| $servername = "localhost"; | |
| $username = "your_username"; | |
| $password = "your_password"; | |
| $database = "your_database"; | |
| // Create connection | |
| $conn = new mysqli($servername, $username, $password, $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
| const int TRIGPIN = 3; | |
| const int ECHOPIN = 2; | |
| int maxRange = 10; | |
| int minRange = 00; | |
| long duration, distance; | |
| void setup() | |
| { |
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
| export const baseUrl = 'https://dummyjson.com/' |
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 | |
| session_start(); | |
| if (isset($_SESSION['authenticated']) && $_SESSION['authenticated'] === true) { | |
| echo "masuk"; | |
| exit; | |
| } ?> | |
| <?php if (!isset($_SESSION['authenticated']) or $_SESSION['authenticated'] != true) { ?> | |
| <!DOCTYPE html> |
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 useradd -m -d /opt/odoo -U -r -s /bin/bash odoo | |
| sudo apt install postgresql postgresql-client | |
| sudo -u postgres psql | |
| create database mydb; | |
| create user myuser with encrypted password 'mypass'; | |
| grant all privileges on database mydb to myuser; | |
| alter database mydb owner to myuser; |