Skip to content

Instantly share code, notes, and snippets.

View bycassius's full-sized avatar
🧃
*sip*

CASSIUS bycassius

🧃
*sip*
  • Melbourne
  • 22:22 (UTC +10:00)
View GitHub Profile
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@bycassius
bycassius / .zshrc
Last active July 10, 2023 11:55
ZSHRC (Oh My ZSH)
# ██
# ░██
# ██████ ██████░██ ██████ █████
# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██
# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░
# ██ ░░░░░██░██ ░██ ░██ ░██ ██
# ██████ ██████ ░██ ░██░███ ░░█████
# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░
#
# PATHS
@tylerdigital
tylerdigital / gist:717d432cf71bd87f7bd4
Last active August 12, 2018 13:24
Advanced Custom Logic workflow with Gravity Forms to Asana
<?php
add_filter( 'gfasana_task_details', 'my_custom_asana_logic', 10, 5 );
function my_custom_asana_logic( $asana_task, $user_index, $project_index, $entry, $form ) {
/* $asana_task array format: */
/*
Array
(
[workspace] => 1234567890123 // don't change this almost ever
[name] => New Task - overridden // string of text for task name
[notes] => long description here // string of texgt
@About2git
About2git / functions.php
Last active January 21, 2019 07:14 — forked from srikat/functions.php
Full width Soliloquy slider with Header floating on the top in Genesis
//* Register Home Slider widget area
genesis_register_sidebar( array(
'id' => 'home-slider',
'name' => __( 'Home Slider', 'mpp' ),
'description' => __( 'This is the home slider widget area.', 'mpp' ),
) );
//* Add custom Slider + Header wrapper's opening div tag
add_action( 'genesis_before_header', 'sk_home_opening_div' );
function sk_home_opening_div() {

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@neilkinnish
neilkinnish / about.json
Last active August 29, 2015 14:05
Example modules in Mixture, passing data to a reusable module....
{
"meta": {
"title": "About Us",
"subtitle": "Why we're different",
"description": "<p>Lorem ipsum nibh convallis malesuada nam pulvinar velit pulvinar dolor ante.</p><p>Sed sollicitudin id. Ornare ut laoreet morbi eros nibh tincidunt vitae metus. Consequat placerat lacinia eu at arcu. Mollis metus consectetuer blandit quisque commodo donec velit tincidunt vivamus nunc bibendum. Eu adipiscing tempor praesent aliquam. Sagittis pellentesque pretium nostra pellentesque sollicitudin.</p>",
"logo": {
"name": "Text for logo",
"image": "logo.jpg"
}
}
@richardjortega
richardjortega / cubox-i4pro-setup.md
Last active August 29, 2015 14:04
CuBox i4-Pro - Debian Wheezy (Serial Only) with Ruby 2.1.2, Rails 4.1.2, Expanded FS,Networking

This tutorial assists users of the CuBox i4-Pro (using Freescale's iMX6 SoC) stand up a stable, serial-only version (no desktop/GUI) of Debian Wheezy with working Networking (Ethernet and WiFi) with Ruby/Rails. Information collected from various forum posts, blog posts, etc. Attribution added where I could remember. Using a Windows 8.1 machine, please provide comments for update regarding Mac/Linux tutorial translations (for the most part it shouldn't matter except for how you write ISOs to microSD cards).

Note: Relatively new at this level of Linux usage, if there are better ways to do something please mention in comments so I can update

Download Debian Wheezy ISO image

Note: The password for root is cubox-i on this linked Debian image

  • Download Debian Wheezy (may be updated in future) ISO image from Gunnar Wolf (Debian Developer) at http://people.debian.org/~gwolf/. You can use 7-zip to unpack an XZ file.
  • Alternatively, se
@natelandau
natelandau / .bash_profile
Last active June 4, 2024 09:44
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@thomasgriffin
thomasgriffin / gist:9606363
Created March 17, 2014 19:19
Remove Soliloquy boxes from everywhere except for the Soliloquy post type screen (v2).
<?php
add_action( 'add_meta_boxes', 'tgm_soliloquy_remove_metabox', 0 );
function tgm_soliloquy_remove_metabox() {
if ( ! class_exists( 'Soliloquy' ) ) {
return;
}
if ( empty( get_current_screen()->post_type ) || 'soliloquyv2' == get_current_screen()->post_type ) {
return;
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active June 4, 2024 04:16
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.