Skip to content

Instantly share code, notes, and snippets.

View siayi's full-sized avatar
💭
I may be slow to respond.

Ayi Sumarna siayi

💭
I may be slow to respond.
View GitHub Profile
@siayi
siayi / Contributing.md
Created December 23, 2017 09:02
Cara Berkontribusi di Repo Github

Contributing 01

  1. Fork a repo, eg: https://github.com/USER/REPO-NAME/fork ;
  2. Create your feature branch (git checkout -b my-new-feature);
  3. Commit your changes (git commit -am 'Add some feature');
  4. Push to the branch (git push origin my-new-feature);
  5. Create a new Pull Request.
@siayi
siayi / KabupatenBandung.geojson
Created October 11, 2017 10:23
Poligon Kabupaten Bandung
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@siayi
siayi / Format Pencarian Titik Koordinat Desa di Google Maps.md
Last active October 12, 2024 15:59
Format Pencarian Titik Koordinat Desa di Google Maps

Format Pencarian Titik Koordinat Desa di Google Maps

Format Pencarian Titik Koordinat Desa di Google Maps

Format:

[nama desa], [nama kecamatan], [nama kabupaten/kota], [nama provinsi]

Contoh:

Ciburial, Cimenyan, Bandung, Jawa Barat

@siayi
siayi / KeepForkUpdate.md
Created October 10, 2017 04:23
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@siayi
siayi / fix.txt
Created October 10, 2017 04:19
fix fatal: unable to access 'https://github.com//': Couldn't resolve host 'github.com'
git config --global --unset http.proxy
git config --global --unset https.proxy
@siayi
siayi / map.geojson
Created October 7, 2017 09:27
Marker Lokasi Sebaran Desa yang sudah Mempunyai Website Desa https://github.com/siayi/website-desa
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@siayi
siayi / VisualCodeOpenFolder.reg
Created October 7, 2017 09:04
Right click on Windows folder and open with Visual Studio Code
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@siayi
siayi / md_to_rst.sh
Created September 25, 2017 11:27 — forked from hugorodgerbrown/md_to_rst.sh
Shell script for converting a batch of *.md files into *.rst using pandoc.
# This script was created to convert a directory full
# of markdown files into rst equivalents. It uses
# pandoc to do the conversion.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the .md files
# 3. Ensure that the script has execute permissions
# 4. Run the script
#
# By default this will keep the original .md file
@siayi
siayi / process.sh
Created September 25, 2017 11:10 — forked from d6y/process.sh
Batch convert HTML to Markdown
#!/bin/bash
# Converts HTML from https://exportmyposts.jazzychad.net/ exports to Markdown
POSTS_DIR=/Users/richard/Desktop/d6y/posts
for file in $POSTS_DIR/*.html
do
echo $file
@siayi
siayi / markdown to html.txt
Created September 25, 2017 09:28
Convert markdown files to html
Yep, have a look at http://pandoc.org/ or markdown-it https://github.com/markdown-it
It now depends, whether you want to merge the HTMl files or not:
# Single output files
for f in *.md ; do pandoc ${f} -f markdown -t html -s -o ${f}.html ; done
# One output file
pandoc *.md -f markdown -t -s html -o merged.html