Skip to content

Instantly share code, notes, and snippets.

Avatar
🎴
Focusing

CASSIUS bycassius

🎴
Focusing
View GitHub Profile
View voicemeeterpotatoinfinitetrial.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\VB-Audio\VoiceMeeter]
"code"=dword:7fffffff
View GTWalsheimPro.md

GT Walsheim Pro

https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css

<link rel="https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css">

@bycassius
bycassius / .zshrc
Last active Apr 10, 2019
ZSHRC (Oh My ZSH)
View .zshrc
# ██
# ░██
# ██████ ██████░██ ██████ █████
# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██
# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░
# ██ ░░░░░██░██ ░██ ░██ ░██ ██
# ██████ ██████ ░██ ░██░███ ░░█████
# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░
#
##### RUNNING ON MACOS 10.14.5 (MOJAVE) #####
@bycassius
bycassius / Preferences.sublime.settings
Last active Jun 30, 2017
Sublime Text 3 User Preferences
View Preferences.sublime.settings
{
"atomic_save": true,
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
@bycassius
bycassius / bash
Created May 2, 2014
Command-line for permissons on LAMP Stack / Wordpress.
View bash
sudo chown -R www-data:www-data /var/www
@bycassius
bycassius / functions.php
Last active Aug 29, 2015
Insert ads or other content after specific paragraph in single post content. The second function here would be easily re-usable for inserting additional bits and pieces do whatever content under whatever conditions (e.g. Cinema tickets competition link after 3rd paragraph of Movie CPT).
View functions.php
add_filter( 'the_content', 'prefix_insert_post_ads' );
/**
* Insert code for ads after second paragraph of single post content.
*
* @param string $content Post content
*
* @return string Amended content
*/
function prefix_insert_post_ads( $content ) {
$content_callout = '<h4>Insert code for ads after second paragraph of single post content.</h4>';
View add-pages-to-soliloquy-featured-content-slider.php
@bycassius
bycassius / functions.php
Created Apr 11, 2014
Add the image title as a caption below the image in the gallery display.
View functions.php
add_filter( 'envira_gallery_output_after_link', 'tgm_envira_gallery_caption', 10, 5 );
/**
* Adds a caption below each image in the gallery.
*
* @since 1.0.0
*
* @param string $output String of gallery output.
* @param mixed $id The ID of the gallery.
* @param array $item Array of data about the image.
* @param array $data Array of gallery data.
@bycassius
bycassius / style.css
Created Mar 7, 2014
Media queries for mobile devices - Requires at least requires the meta viewport tag with content 'width=device-width'
View style.css
/*At least requires the meta viewport tag with content 'width=device-width'*/
@media only screen and (max-width: 1080px) and (orientation : portrait) {
/* PORTRAIT:
Windows Surface Pro*/
}
@media only screen and (max-width: 800px) and (orientation : portrait) {
/* PORTRAIT:
Acer Iconia Tab A100
@bycassius
bycassius / archive-portfolio.php
Created Mar 7, 2014
Adapt archive-portfolio.php with filter
View archive-portfolio.php
<?php
/**
* @package WordPress
* @subpackage Adapt Theme
*/
?>
<?php get_header(); ?>
 
<?php
// Load isotope scripts