Skip to content

Instantly share code, notes, and snippets.

View siriokun's full-sized avatar

Rio Purnomo siriokun

View GitHub Profile
@siriokun
siriokun / Light YouTube Embed.md
Last active June 15, 2023 18:40 — forked from mheland/YouTube embed in Privacy Enhanced mode
YouTube IFRAME embed for faster page loads in privacy enhanced mode
@siriokun
siriokun / alpine-todo.html
Created November 17, 2021 08:45 — forked from kez/alpine-todo.html
Alpine.js Todo App Demo (with Tailwind). Please feel free to fork and refactor with improvements! Motivation/details here https://www.kdobson.net/2020/alpine-js-todo-demo/)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Alpine.js Todo Demo</title>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.js" defer></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/ui@latest/dist/tailwind-ui.min.css">
<meta charset="utf-8">
</head>
@siriokun
siriokun / The fix.md
Created October 5, 2021 07:27 — forked from megclaypool/The fix.md
["Unable to unlink, Permission denied" Error] Solution for: ``` $ git pull error: unable to unlink old 'sites/default/default.settings.php': Permission denied ```

In this case, the specific error was:

$ git pull
error: unable to unlink old 'sites/default/default.settings.php': Permission denied

I opened the sites directory and saw the following:

$ lll
  rwxr-xr-x  noxlady  staff  160 B    Tue Sep  4 13:34:39 2018  M?    all/
 r-xr-xr-x noxlady staff 192 B Tue Sep 4 13:40:49 2018 ✓  default/
@siriokun
siriokun / ssl.conf.sh
Last active September 16, 2021 12:38 — forked from githiro/ssl.conf
Apache: basic ssl.conf file
#
# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to
# serve pages over an https connection. For detailing information about these
# directives see <URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html>
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
/* purgecss start ignore */
@tailwind base;
@tailwind components;
/* purgecss end ignore */
/*
...
...
...other css
...
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@siriokun
siriokun / functions.php
Created November 2, 2017 07:56 — forked from gamaup/functions.php
Reorder Checkout Fields
<?php
/* WooCommerce < 3.0.4 */
add_filter('woocommerce_checkout_fields','reorder_fields');
function reorder_fields($fields) {
$billing_field_order = array(
'billing_first_name',
'billing_last_name',
'billing_address_1',
'billing_email',
@siriokun
siriokun / .jsbeautifyrc
Created May 30, 2017 04:49 — forked from wzup/.jsbeautifyrc
.jsbeautifyrc file example
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"],
@siriokun
siriokun / config.json
Last active August 29, 2015 14:26 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#22B5BF",
"@brand-success": "#88C134",
/*
LayoutBreakpoints - Sync JS with your CSS media queries - yay!
After painfully discovering that there is no hope for IE7 (and others) to read
content properties with generated content, I resolved to this solution.
If it doesn't work for you, you could easily change getElementsByTagName to
getElementsById and pop an ID attribute onto an element of your choosing.
See an example here: http://replete.github.io/FitTextNow/example.html (view-source)