Skip to content

Instantly share code, notes, and snippets.

Writing Content @petanikode

Ahmad Muhardian ardianta

Writing Content @petanikode
View GitHub Profile
ardianta /
Last active Oct 26, 2021
List tempat hosting web statis
ardianta /
Created Jun 3, 2021
Zoom video recorded downloader
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"
ardianta / medium-text-styles.css
Last active Aug 28, 2020
Medium like Typography style for Callibre Ebook Reader
View medium-text-styles.css
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;
ardianta / Remove_MIUI_Bloatware.CMD
Created Aug 16, 2020 — forked from Biswa96/Remove_MIUI_Bloatware.CMD
Remove bloatware applications from MIUI ROM in Xiaomi phones
View Remove_MIUI_Bloatware.CMD
@echo off
set /p Y=Enter adb.exe folder path:
cd /d %Y%
adb devices
for %%X in (
ardianta /
Last active Aug 28, 2020
VS Code Find and Replace using Regex

I want to find this string:

{{< img "/img/image-name.png" "Image Caption" >}}

And replace with:

![Image Caption](/img/image-name.png)
View clear_screen.c
#include <stdlib.h>
#include <stdio.h>
void clear_screen(){
#ifdef _WIN32
#elif defined(unix) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
//add some other OSes here if needed
ardianta /
Last active Jan 9, 2020
Simple Todo List App using Java and File
import java.util.ArrayList;
import java.util.Scanner;
public class TodoListApp {
static String fileName;
ardianta /
Created Jun 12, 2019
Multimonitor Wacom Linux Kubuntu

Gunakan driver:

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  
ardianta / petanikode-logo.svg
Last active May 13, 2019
Embedable Petani Kode logo
View petanikode-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ardianta / index.html
Last active May 13, 2019
Disqus Lazyloading using IntersectionObserver
View index.html
<div id="disqus_thread">Loading Comments...</div>
var disqus_config = function () { = ""; = "flutter-web"; = "Tutorial Membuat Web dengan Flutter";