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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Kasir Sederhana</title> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="container mt-5"> |
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
| require "credentials" | |
| wifi.setmode(wifi.STATION) | |
| print('set mode=STATION (mode='..wifi.getmode()..')') | |
| print('MAC: ',wifi.sta.getmac()) | |
| print('chip: ',node.chipid()) | |
| print('heap: ',node.heap()) | |
| pin = 4 |
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/sh | |
| service_dir=$HOME/.local/share/kio/servicemenus | |
| mkdir -p $service_dir | |
| cd $service_dir | |
| curl -s https://gist.githubusercontent.com/atmorojo/e80d1add29636e64f41a4656d33afced/raw/4c9a86697125ee9562d01a89a984bf010c688b3d/compress_pdf.desktop -o compress_pdf.desktop |
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
| [Desktop Entry] | |
| Type=Service | |
| MimeType=application/pdf; | |
| Actions=compressPDF | |
| [Desktop Action compressPDF] | |
| Name=Compress PDF | |
| Exec=sh -c "exec gs -q -dNOPAUSE -dBATCH -dSAFER -dSimulateOverprint=true -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dEmbedAllFonts=true -dSubsetFonts=true -dAutoRotatePages=/None -dColorImageDownsampleType=/Bicubic -dColorImageResolution=150 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=150 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=150 -sOutputFile=[compressed]-$(echo %f | awk -F '/' '{print $(NF)}') %f" |
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
| #!/usr/bin/env bash | |
| echo "If the script failed, you might want to make sure bash, wget, and unzip is installed on your Computer\n\n\n" | |
| # Important variables | |
| tmpdir="/tmp/QuranComplex/" | |
| targetdir="$HOME/.fonts/QuranComplex/" | |
| IFS=$'\n' # make newline the only separator. So we don't need to escape spaces | |
| declare -a source=( |
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
| console.clear(); | |
| Array.prototype.forEach.call( | |
| document.getElementsByClassName("_icyx7"), | |
| function (a) { | |
| console.log(a.src); | |
| }); |
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
| set autoupdategist | |
| set noautofocus | |
| set nocncpcompletion | |
| set smoothscroll | |
| set hud | |
| set noregex | |
| set noinsertmappings | |
| set typelinkhints | |
| set defaultnewtabpage | |
| let scrollduration = 10 |
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/sh | |
| giftmp=/tmp/outXXXXXXXXXX.gif | |
| unset x y w h | |
| eval $(xwininfo | | |
| sed -n -e "s/^ \+Absolute upper-left X: \+\([0-9]\+\).*/x=\1/p" \ | |
| -e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \ | |
| -e "s/^ \+Width: \+\([0-9]\+\).*/w=\1/p" \ | |
| -e "s/^ \+Height: \+\([0-9]\+\).*/h=\1/p" ) |