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 / wxr.py
Created October 27, 2021 18:39 — forked from chrono-meter/wxr.py
#!/usr/bin/env python3
from xml.etree import ElementTree
from pathlib import Path
import io
import datetime
import email.utils
__author__ = '[email protected]'
__version__ = '1.0.0'
__license__ = 'Python Software Foundation License'
@siayi
siayi / github-wiki-how-to.md
Created October 26, 2020 23:32 — forked from subfuzion/github-wiki-how-to.md
GitHub Wiki How-To

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: [email protected]:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?

@siayi
siayi / Clone-Github-Wiki-Pages.sh
Created October 26, 2020 23:31 — forked from hanxue/Clone-Github-Wiki-Pages.sh
Cloning Github Wiki Pages
hanxue-mac:Github hanxue$ git clone https://github.com/AppScale/appscale.wiki.git
Cloning into 'appscale.wiki'...
remote: Counting objects: 1745, done.
remote: Compressing objects: 100% (1733/1733), done.
remote: Total 1745 (delta 1089), reused 10 (delta 4)
Receiving objects: 100% (1745/1745), 267.93 KiB | 35.00 KiB/s, done.
Resolving deltas: 100% (1089/1089), done.
Checking connectivity... done
hanxue-mac:Github hanxue$ ls appscale.wiki/
.git/
@siayi
siayi / Quickly extract tar gz files Windows 10.md
Last active August 31, 2024 08:37
Quickly extract .tar.gz files on Windows 10

Extract .tar.gz, .tgz, or .gz tarballs using tar on Windows 10

To extract .tar.gz, .tgz, .gz as well as .zip files using tar on Windows 10, use these steps:

  1. Open Start on Windows 10.
  2. Search for Command Prompt, right-click the first result and select the Run as administrator option.
  3. Type the following command to use tar to extract the files and press Enter:
tar -xvzf C:\PATH\TO\FILE\FILE-NAME.tar.gz -C C:\PATH\TO\FOLDER\EXTRACTION
@siayi
siayi / Windows 10 TCP-IP Reset.txt
Last active September 25, 2020 12:13
Windows 10 TCP/IP Reset
WiFi adapter sees available network, however will not accept tcp/ip address. Attempting to reset winsock and ip stack may resolve the problem. Note, this information is one of many possible solutions that should only be attempted if you have a good working knowledge of the Windows OS network settings and services.
1. In the search box on the taskbar, type Command prompt, press and hold (or right-click) Command prompt, and then select Run as administrator > Yes.
2. At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:
Type netsh winsock reset and press Enter.
Type netsh int ip reset and press Enter.
Type ipconfig /release and press Enter.
@siayi
siayi / ayisumarna.html
Last active April 15, 2020 15:08
Ayi Sumarna PNG base 64
<div>
<p>Ayi Sumarna</p>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFoCAYAAAB65WHVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjQ5NkI1QUVDN0Q3QjExRUFCQkRFOTA3RTZFODMxNjVCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjQ5NkI1QUVEN0Q3QjExRUFCQkRFOTA3RTZFODMxNjVCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@siayi
siayi / ciburial-25K.geojson
Created January 31, 2020 04:12
ciburial-25K geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@siayi
siayi / MakeTablePress-responsive.md
Last active October 25, 2022 18:48
Cara 1 - Make TablePress responsive / let it overflow

Use the following code on your table in your article:

<div class="tablepress-wrapper">[table id=1 /]</div>

And then add the following CSS code to your Tablepress custom CSS setting:

.tablepress-wrapper {
	overflow-x: scroll;
	overflow-y: hidden;
@siayi
siayi / Fatal error - Acrobat failed to connect to a DDE server.txt
Last active February 7, 2019 04:33
FIX Fatal error - Acrobat failed to connect to a DDE server
Solution 1:
-------------
1. Open the Windows Registry Editor:
a. Click Start > Run.
b. Type Regedit in the Open field and then click OK.
2. Navigate to following registry key:
HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application