Skip to content

Instantly share code, notes, and snippets.

View rebotak's full-sized avatar
🌴
On vacation

Alphaiz Ainurrofiq rebotak

🌴
On vacation
View GitHub Profile
@rebotak
rebotak / remove-visual-composer-shortcodes.md
Last active July 19, 2019 08:00 — forked from gemmadlou/remove-visual-composer-shortcodes.md
Removing Visual Composer & Shortcodes From Wordpress Content
@rebotak
rebotak / README.md
Created November 18, 2019 06:26 — forked from a-barbieri/README.md
NextJS sitemap generator with dynamic URL

NextJS sitemap generator

Install

The current setup has been tested on Next Js 7.0.0.

You need to install Axios.

$ npm install axios
@rebotak
rebotak / aes-256-cbc-test.js
Created December 5, 2019 07:21 — forked from brettscott/aes-256-cbc-test.js
AES 256 CBC encryption between Golang and Node JS
// Node v6.9.0
//
// TEST FILE (cut down for simplicity)
// To ensure Golang encrypted string can be decrypted in NodeJS.
//
let crypto;
try {
crypto = require('crypto');
@rebotak
rebotak / stubby.yml
Created April 8, 2020 23:47
config for stubby
################################################################################
######################## STUBBY YAML CONFIG FILE ###############################
################################################################################
# This is a yaml version of the stubby configuration file (it replaces the
# json based stubby.conf file used in earlier versions of getdns/stubby).
#
# For more information see
# https://dnsprivacy.org/wiki/display/DP/Configuring+Stubby
#
# This format does not fully support all yaml features - the restrictions are:
$breakpoint-sm: 400px !default;
$breakpoint-md: 768px !default;
$breakpoint-lg: 1024px !default;
// min-width
$breakpoint-up: (
'sm': 'screen and (min-width: #{$breakpoint-sm})',
'md': 'screen and (min-width: #{$breakpoint-md})',
'lg': 'screen and (min-width: #{$breakpoint-lg})',
) !default;
@rebotak
rebotak / spacers.scss
Created March 3, 2021 02:41 — forked from victorS7P/spacers.scss
padding and margin bootstrap based helpers
$positions: (
t: ('top'),
r: ('right'),
b: ('bottom'),
l: ('left'),
x: ('left', 'right'),
y: ('top', 'bottom')
);
@mixin sizeValue($prop, $i) {
@rebotak
rebotak / example.nginx
Created September 11, 2021 08:17 — forked from gsanders5/example.nginx
Automatic nginx virtual subdomains with sub-folders or sub-directories
# Automatic nginx virtual subdomains with sub-folders or sub-directories
#
# Since the original source where I found this code is now offline, I have decided to mirror it here.
# All credit goes to: http://web.archive.org/web/20150307193208/http://www.messaliberty.com/2010/10/automatic-nginx-virtual-subdomains-with-sub-folders-or-sub-directories
#
# Description: In my web root directory I wanted create a folder called photos, and another called
# music using a sftp program. Without manually going back to the config file or to the shell I like to
# be able to access them at photos.nginxdomain.com and music.nginxdomain.com. That is what this config does.
# Redirect visitors from http://nginxdomain.com/ to http://www.nginxdomain.com/
// Date : 28/05/2021
// Last Updated : 04/05/2022
// Author : Ghassane SEBAÏ
// Contact : ghassane.sebai@gmail.com
// Source : https://en.wikipedia.org/wiki/List_of_iOS_and_iPadOS_devices
// Format :
// "Model Name : [Hardware Strings]"
// -> Using '/' as a separator between hardware strings.