Skip to content

Instantly share code, notes, and snippets.

View infurno's full-sized avatar
🤖

Hal Borland infurno

🤖
View GitHub Profile
@infurno
infurno / fastfetch.jsonc
Last active July 15, 2025 00:44
my fastfetch.jsonc
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"padding": {
"top": 2,
"left": 1,
"right": 1
}
},
"display": {
@infurno
infurno / .tmux.config
Last active June 11, 2016 17:31
.tmux.config
#Hal's TMUX Config
unbind C-b
set -g prefix C-a
#source-file "${home}.tmux-themepack/powerline/block/blue.tmuxtheme"
source-file "${home}.tmux-themepack/powerline/block/cyan.tmuxtheme"
unbind r
bind r source-file ~/.tmux.conf
set -g base-index 1
@infurno
infurno / .vimrc
Last active January 31, 2016 17:02
My .vimrc
" size of a hard tabstop
set tabstop=4
" size of an "indent"
set shiftwidth=4
" a combination of spaces and tabs are used to simulate tab stops at a width
" other than the (hard)tabstop
set softtabstop=4
"Bundle Scripts-----------------------------
@infurno
infurno / gist:6122e9be5ea9c7f00c6b
Created October 24, 2014 20:26
filter to convert string date to pretty date in Angularjs
app.filter('dateFormat', function($filter)
{
return function(input)
{
if(input == null){ return ""; }
var _date = $filter('date')(new Date(input), 'MMM dd yyyy');
return _date.toUpperCase();
@infurno
infurno / SassMeister-input-HTML.html
Created August 20, 2014 16:34
Generated by SassMeister.com.
<h1>H1 Heading</h1>
<h2>H2 Heading</h2>
<h3>H3 Heading</h3>
<h4>H4 Heading</h4>
@infurno
infurno / wpsnippets.cson
Last active August 29, 2015 13:57
WordPress Snippets for Atom Text Editor
# Simple WordPress Snippets
# for Atom Text Editor
# [email protected]
# robotsfollow.com/snippets
'.text.php':
'wp footer':
'prefix': 'wpfoot'
'body': '<?php wp_footer(); ?>'
'wp header':
'prefix': 'wphead'
@infurno
infurno / .screenrc
Last active August 29, 2015 13:56
Screen rc to allow you to use F5 and F6 to move from screen to screen.
# I got this from Andrew Nelson. https://github.com/red-tux
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
altscreen on
defscrollback 2000
termcapinfo xterm ti@:te@
@infurno
infurno / serve
Created September 27, 2013 20:06
Quick start PHP server in current directory or custom directory.
#!/bin/bash
# Description: Quick start PHP server in current directory or custom directory.
# By: Hal Borland of Southern Fried Pixels
# Usage: serve "port" "htdoc"
# Example: serve 8000 ./public
if [[ "$1" != "" ]]; then
PORT=$1
else
PORT="8888"
@infurno
infurno / example_controller.php
Last active December 12, 2015 03:29
This is an example CI Controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class #CONTROLERNAME extends MY_Controller {
public function #ACTION()
{
//code here ....
$this->load->view('welcome_message');
}
}
@infurno
infurno / example.htaccess
Created February 4, 2013 15:29
htaccess. I always loose this.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
# Send request via index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond ^(.*)$ index.php/$1 [L]
</IfModule>