Skip to content

Instantly share code, notes, and snippets.

View razor-x's full-sized avatar

Evan Sosenko razor-x

View GitHub Profile
@razor-x
razor-x / README.md
Last active October 16, 2015 05:42
Dota 2 Config

Dota 2 Config

Launch Options

-novid

autoexec.cfg

@razor-x
razor-x / Rakefile
Last active January 2, 2016 08:19
Configuration file manager.
require 'yaml'
require 'open3'
require 'socket'
task :default => [:install]
def command? name
`which #{name}`
$?.success?
end
@razor-x
razor-x / tag-gist.rb
Last active January 27, 2016 06:10
Jekyll plugin for gist-async that modifies the gist markup added by its gist Liquid tag.
# Overrides the gist markup added by Jekyll's gist Liquid tag
# to support loading GitHub Gists asynchronously using gist-async from
# https://github.com/razor-x/gist-async
# Must load the jekyll-gist plugin:
# https://github.com/jekyll/jekyll-gist
require 'jekyll-gist'
module Jekyll
module Gist
@razor-x
razor-x / knife.rb
Last active February 25, 2016 18:36
Portable .chef/knife.rb for Chef projects.
#
# Local Environment
#
home_dir = Dir.home
chef_dir = File.join(home_dir, '.chef')
secret_dir = File.join(chef_dir, 'private')
organization = ENV['chef_org'] || 'the_organization_name'
knife_override = File.join(chef_dir, 'knife_override.rb')
username = (ENV['USER'] || ENV['USERNAME']).downcase
@razor-x
razor-x / README.md
Last active March 3, 2016 02:47
Counter-Strike: Global Offensive Config

Counter-Strike: Global Offensive Config

Launch Options

-novid -w 1920 -h 1080 -tickrate 128

autoexec.cfg and config.cfg

#!/bin/bash
set -e
set -u
if [ ! "${TRAVIS:-}" = 'true' ]; then
echo 'This is not running on Travis CI. Exiting!'
exit 1
fi
@razor-x
razor-x / scss.xml
Created May 6, 2011 08:16
SCSS syntax highlighting for Kate. Based on Kate CSS syntax file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
Kate SCSS syntax highlighting definition
Modified the Kate CSS syntax highlighting definition to support SCSS.
This file should be merged with any updates to the normal Kate CCS definition (see note on version numbering in changelog for 1.2.03.0).
The latest version of this file can be found at https://gist.github.com/958598
@razor-x
razor-x / fp.js
Created March 19, 2019 22:03
Exports for phi and rxjs together
export * from '@meltwater/phi'
export {
noCase,
dotCase,
swapCase,
pathCase,
upperCase,
lowerCase,
camelCase,
snakeCase,
@razor-x
razor-x / shortcode-gist.php
Last active July 8, 2019 17:19
WordPress shortcode for loading gists asynchronously with gist-async.
// Created by timrourke.
// https://github.com/timrourke
//
// This silly little shortcode simplifies using Evan Sosenko's excellent
// script for async loading of github gists.
// https://github.com/razor-x/gist-async
//
// Plop this in your functions file or functionality plugin.
// Usage: [gist id="12345567" file="example.js"]
function async_gist_func($atts) {
@razor-x
razor-x / README.md
Last active February 19, 2020 10:26
Load GitHub Gists asynchronously and optionally specify which file to show.

Load GitHub Gists asynchronously

This is now a Bower package: [gist-async]. [gist-async]: https://github.com/razor-x/gist-async

Requires jQuery.

Jekyll plugin included that modifies the gist markup added by its gist Liquid tag.

Load GitHub Gists asynchronously and optionally specify which file to show.