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 / BrowserDisableJavaScript.txt
Created January 21, 2019 04:22
Cara mengaktifkan klik kanan yang dimatikan pada website, yaitu dengan mematikan JavaScript pada browser
Mozilla Firefox : about:config > javascript.enabled.
Google Chrome : Settings > Privacy > Content Settings > JavaScript.
Internet Explorer : Internet Options > Privacy > Active Scripting.
@siayi
siayi / CSS-Dasar.md
Last active December 13, 2018 06:08
Dasar Cascading Stylesheets (CSS)

Basics of CSS and HTML for WordPress themes

If you are new to web development and/or WordPress themes, one of the key things for you to master is Cascading Style Sheets (CSS). There is lots of information available for you to research on the web, but this Introduction is intended to give the beginner an insight into the important aspects of CSS when customizing any WordPress themes.

Where HyperText Markup Language (HTML) is used to add content to your website, CSS is used to stylise that content and by using your own imagination, you can give your website a unique look-and-feel. So by understanding the basics of CSS, you will be able to experiment and get your site looking perfect for your own needs.

A WordPress theme like the Customizr theme generates a large part of the HTML content, leaving you to concentrate on the unique

@siayi
siayi / gh-compare.md
Created October 31, 2018 14:37 — forked from lehnerpat/gh-compare.md
GitHub Compare view

GitHub's compare view is available at:

https://github.com/$USER/$REPO/compare/$REV_A...$REV_B

Naturally, $USER and $REPO are the owner (user/organization) and repository names, respectively.

$REV{A,B} are the two sides of the compare view; they can either be a ref in $USER's repository, i.e. the name of a branch, tag or a commit SHA, or it can be a ref in $OWNER's fork of the repository by using the format $OWNER:$REF.

You can get a diff or patch for the result of the compare view by appending .diff or .patch to the URL, respectively.

@siayi
siayi / Cari File via Explorer.txt
Last active June 14, 2019 04:36
Pencarian Tingkat Lanjut di Windows 10
// mencari semua file di dalam folder
*.* NOT kind:=Folder
// Cari File Menurut tanggal Dimodifikasi
datemodified:yesterday
datemodified:today
datemodified:lastweek
// Search in Windows Explorer only for folders, not for files
kind:folders
id kode nama uraian enabled
1 000 UMUM - 1
2 001 Lambang - 1
3 001.1 Garuda - 1
4 001.2 Bendera Kebangsaan - 1
5 001.3 Lagu Kebangsaan - 1
6 001.4 Daerah - 1
7 001.31 Provinsi - 1
8 001.32 Kabupaten/Kota - 1
9 002 Tanda Kehormatan/Penghargaan untuk pegawai lihat 861.1 1
@siayi
siayi / argparse.bat
Created August 16, 2018 05:03 — forked from sgryjp/argparse.bat
Command line option (argument) parsing example for Windows batch file.
:: Command line option (argument) parsing example
::
:: Written by Suguru Yamamoto
:: <https://gist.github.com/sgryjp/045989b0f6f0089a24f257d74b8a60bd>
:: LICENSE: Public Domain
@echo off
setlocal enableextensions
:: Parse arguments
set _LEVEL=0
@siayi
siayi / fix_windows.bat
Created August 16, 2018 05:02 — forked from harrisonlingren/fix_windows.bat
A script to fix Windows 10 shit
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
@siayi
siayi / Standar-CodeIgniter-Format-URL.txt
Created May 12, 2018 06:06
cara CodeIgniter memformat URL stringnya
Standar CodeIgniter memformat URL stringnya:
<base_url>/index.php/<controller_name>/<controller_function>/<function_parameter_1>/>/<function_parameter_2>...
@siayi
siayi / fixFailedtoExecute.txt
Created May 4, 2018 13:09
fix Failed to execute "git ls-remote --tags --heads
fix Failed to execute "git ls-remote --tags --heads git://
git config --global url."https://".insteadOf git://
atau
fix Failed to execute "git ls-remote --tags --heads https://
git config --global url."git://".insteadOf https://
@siayi
siayi / GetURL.bas
Created May 4, 2018 10:21
Fungsi GetURL on VBA Excel
Public Function GetURL(c As Range) As String
On Error Resume Next
GetURL = c.Hyperlinks(1).Address
End Function