Skip to content

Instantly share code, notes, and snippets.

View 0x3333's full-sized avatar

Tercio Filho 0x3333

  • São Paulo, Brazil
  • 11:17 (UTC -03:00)
View GitHub Profile
@0x3333
0x3333 / README.md
Last active April 5, 2019 17:24
Bootstrap Table Fixed Header with Footer

Table Fixed Header

This is to mimic a Table with fixed header at top and a footer.

Different from other options in the internet, this is not automatic layout. You have to build the HTML following the structure above.

This table has rounded corners and the CSS is customized to remove double borders.

Columns width can be px or %, the table-layout is fixed. The table can scroll horizontally and vertically. Fixed the vertical scroll bar not been take in consideration. Now the table will scroll and the header/footer will be aligned correctly.

@0x3333
0x3333 / README.md
Last active August 29, 2015 14:17
Scroll to an element if not visible
/*
* Copyright (C) 2015 Machinery For Change, Inc.
*/
package com.github.x3333.logging;
import java.text.MessageFormat;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@0x3333
0x3333 / README.md
Created August 12, 2015 13:04
Mac OS X - Wallpaper Changer - Swift

Mac OS X - Wallpaper Changer

Swift code to change the Wallpaper for all screens. Currently, it changes only the current spaces' wallpaper. I'm working on a version to change in all spaces.

Usage: WallpaperChanger "/Users/username/SomeFolder/SomePicture.jpg"

@0x3333
0x3333 / README.md
Last active February 1, 2022 22:45
Oh My Zsh plugin to colourize commands output

Oh My Zsh Colourize Plugin

This plugin uses CCZE to colourize some commands output.

Installation:

Copy ccze.plugin.zsh to ~/.oh-my-zsh/custom/plugins/ccze and logout and login again.

Usage:

@0x3333
0x3333 / README.md
Last active February 3, 2016 15:49
DHCPD active lease reporter

DHCPD Pool active lease reporter

This python script will print all active leases availables in the /var/lib/dhcp/dhcpd.leases file.

This is not my work! See Author below.

Output example:

+--------------------------------------------------------------------------------------------------

| DHCPD ACTIVE LEASES REPORT

Karabiner Config

Karabiner private.xml for Logitech K750 for Mac

  • Remap Dashboard(F4/F12) to Launchpad
@0x3333
0x3333 / directive.md
Created April 27, 2016 22:30
AngularJS 1.X Checkbox Directive

AngularJS 1.X Checkbox Directive

Will evaluate an expression when checked state is changed. A $checked parameter will be passed to expression with checked state.

<input type="checkbox" checkbox-change="changeMyValue($checked)">

var checkboxChangeDirective = function($parse) {
@0x3333
0x3333 / prompt_0x3333_setup
Last active September 21, 2017 22:12
Prezto Prompt
#
# Authors:
# Tercio Gaudencio Filho <terciofilho@gmail.com>
#
# Ex:
# USERNAME@HOSTNAME [/FULL/PATH] ✘ $ TIME
function prompt_0x3333_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
@0x3333
0x3333 / README.md
Last active September 27, 2017 17:31
Installing ForkLift version 2 using Cask

ForkLift 2 Cask Install

ForkLift is in version 3, but I have a license for version 2. I want to install ForkLift version 2 using brew cask, if I just run brew cask install forklift it will install version 3.

To install version 2 install the last commit in the cask file forklift.rb for version 2, which is 2.6.6, commit 0bc4d90.

forklift.rb in commit 0bc4d90