- Github Pages
- Gitlab Pages
Aerobatic(shutdown: 2021.10.30)- Cloudflare Pages
- Surge.sh
- Vercel
- Firebase
- Netlify
- Digitalocean Cloud/Pages
- AWS
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
SELECT | |
HOUR(CONVERT_TZ(`bookingCreatedAt`, '+00:00', '+08:00')) AS jam, -- convert UTC time to local time +08:00 | |
COUNT(*) AS total_booking | |
FROM | |
Booking -- table name | |
WHERE | |
YEAR(`bookingCreatedAt`) = 2024 AND MONTH(`bookingCreatedAt`) = 10 -- month of year 2024 | |
GROUP BY | |
jam | |
ORDER BY |
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
mkdir out | |
for i in *pdf; do pdftk "$i" cat 2-end output "out/$i"; done |
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
#!/bin/sh | |
url="$1" | |
jar=$(mktemp) | |
mp4=$(curl -s -c "$jar" "$url" | grep video/mp4 | grep -o 'https:[^"]*') | |
file=$(echo "$mp4" | grep -o "[^/? ]*\.mp4") | |
echo "Downloading $file" | |
curl -b "$jar" -o "$file" -e "$url" "$mp4" | |
rm "$jar" |
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
p { | |
text-align: left; | |
overflow-wrap: break-word; | |
margin-top: 2em; | |
margin-bottom: 0.46em; | |
word-break: break-word; | |
font-style: normal; | |
font-weight: 400; | |
letter-spacing: -0.003em; | |
line-height: 32px; |
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
@echo off | |
set /p Y=Enter adb.exe folder path: | |
cd /d %Y% | |
adb devices | |
pause | |
for %%X in ( | |
"com.amazon.appmanager" | |
"com.android.browser" | |
"com.android.chrome" | |
"com.android.email" |
I want to find this string:
{{< img "/img/image-name.png" "Image Caption" >}}
And replace with:
![Image Caption](/img/image-name.png)
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
#include <stdlib.h> | |
#include <stdio.h> | |
void clear_screen(){ | |
#ifdef _WIN32 | |
system("cls"); | |
#elif defined(unix) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)) | |
system("clear"); | |
//add some other OSes here if needed | |
#else |
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
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class TodoListApp { | |
static String fileName; |
Gunakan driver: https://github.com/linuxwacom/xf86-input-wacom/wiki/xsetwacom
dian@petanikode~> xrandr
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
eDP-1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
1366x768 59.97*+
1360x768 59.80 59.96
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
NewerOlder