Skip to content

Instantly share code, notes, and snippets.

View renkasiyas's full-sized avatar

Ren Kasiyas renkasiyas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am renkasiyas on github.
  • I am renkasiyas (https://keybase.io/renkasiyas) on keybase.
  • I have a public key ASAKf9pLIU036xqoRv0iFl6EUSJYNdrj3jwWU-KVE-f99wo

To claim this, I am signing this object:

@renkasiyas
renkasiyas / gist:fe2b978fea8fbf374a43229f696d2783
Created June 2, 2021 20:37
Load All Relational Events - Tribe Events & ACF
<?php
function load_all_relational_events( $query )
{
if (is_admin() && $query->tribe_is_event) {
$query-/set('eventDisplay', 'all');
}
}
add_filter('pre_get_posts', 'load_all_relational_events');
@renkasiyas
renkasiyas / findStyles.js
Created July 4, 2020 00:30 — forked from macbookandrew/findStyles.js
List unique CSS properties for all DOM elements
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*
@renkasiyas
renkasiyas / style.css
Created April 18, 2020 20:58 — forked from traumverloren/style.css
VSCode Customizations for Operator Mono, Fira Code, and Dark Candy Theme
/*
Instructions for MacOS:
- Install the fonts 'Operator Mono' & 'Fira Code'
- Install theme 'Dark Candy'
- Add the following config to the VS Code settings.json:
{
"editor.renderWhitespace": "all",
"editor.fontSize": 14,
@renkasiyas
renkasiyas / sanfrancisco-font.css
Created December 3, 2018 22:43
San Francisco Web Font
/** WARNING - USE AT OWN RISK */
/** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */
/** https://sf.abarba.me/font.css */
/** https://sf.abarba.me/LICENSE.pdf */
/** 1. Copy/import this file into your main css/scss file */
/** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */
/** 3. Apply font-weight or italic to html elements */
/** THANK YOU */
#!/bin/bash
# Bash script to clone an easyengine webiste installation onto another (the destination site must exist already)
# To debug, use set -xe
# I personally prefer to create an alias, after I placed this file at ~/scripts/
# echo 'alias eeclone=". ~/scripts/eeclone.sh"' >> ~/.bash_aliases
# . ~/.bash_rc to load the new alias
# Note that the script will also create a log at the /var/www/destinationdomain.com/logs/ folder
log ()
{
@renkasiyas
renkasiyas / django_cmd.sh
Created March 29, 2018 07:16 — forked from hezhao/django_cmd.sh
Django Commands Cheatsheet
# Use Python 3 for easy unicode
$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install django
$ deactivate
# Start new django project and app
$ django-admin.py startproject mysite
$ ./manage.py migrate
$ ./manage.py createsuperuser
@renkasiyas
renkasiyas / .gitignore
Created March 1, 2018 22:39 — forked from jaredhocutt/.gitignore
.gitignore
###############################################################################
# Project
###############################################################################
###############################################################################
# Python
# https://github.com/github/gitignore/blob/master/Python.gitignore
###############################################################################
@renkasiyas
renkasiyas / .gitignore
Created March 1, 2018 22:37 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@renkasiyas
renkasiyas / gist:79fce5a27e536e1e9e8994340c2ae73f
Created August 21, 2017 23:27 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 20px; }
@media (min-width: 768px){
body{ padding-top: 150px; }
}
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; max-width: 650px; margin: 0 auto; }