Skip to content

Instantly share code, notes, and snippets.

View slayerfat's full-sized avatar
💾
DBA is life.

Alejandro Granadillo slayerfat

💾
DBA is life.
View GitHub Profile
@slayerfat
slayerfat / ps1.sh
Created November 28, 2018 12:48
default shell PS1 solaris / aix
export PS1=${LOGNAME}@`uname -n`':/${PWD##*/}\$ '
@slayerfat
slayerfat / php.ini
Created April 26, 2016 01:57
xdebug > php.ini
[Xdebug]
zend_extension=/etc/php/7.0/apache2/conf.d/20-xdebug.ini (locacion real puede variar)
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
@slayerfat
slayerfat / phpmd-ruleset.xml
Last active April 9, 2024 03:09
php mess detector ruleset for laravel and similar frameworks
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Laravel and similar phpmd ruleset"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Inspired by https://github.com/phpmd/phpmd/issues/137
using http://phpmd.org/documentation/creating-a-ruleset.html
</description>
@slayerfat
slayerfat / custom_settings.txt
Created September 9, 2015 18:07
increased dungeon crawl tiles fontsizes
#Increased font size in dungeon crawl
#INCLUDE THIS IN OR EQUIVALENT FOLDER: /usr/share/crawl/settings/init.txt
#(without the # in the include = custom_settings.txt)
#include = custom_settings.txt
#fullscreen
#tile_full_screen = false
#if you wanna use a custom font, you need to
#copy the *.ttf file in this directory:
@slayerfat
slayerfat / atom_packages
Created May 25, 2015 16:18
useful atom packages
<!-- PHP -->
<!-- LINT -->
https://atom.io/packages/linter-php
<!-- PHPMD -->
composer global require "phpmd/phpmd"
@slayerfat
slayerfat / automount-drive-ubuntu.md
Last active December 23, 2015 01:19
automount drive in ubuntu

if ubuntu >= 14.04 go to unity searchbox > disks > edit mount options > turn on

sudo apt-get install udisks

sudo blkid

if unclean: sudo ntfsfix /dev/sdXY where XY = partition

/dev/sda1: UUID="89b18940-d5ff-4ce1-a85a-42cdd0369016" UUID_SUB="57d79ff6-7b53-44bc-82ec-ef783a23efc3" TYPE="btrfs" 
@slayerfat
slayerfat / Gruntfile.js
Created January 19, 2015 21:34
barebones Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
});
};
@slayerfat
slayerfat / git.log
Last active December 23, 2015 19:21
git log version bonita
git config --global alias.historial "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
@slayerfat
slayerfat / Preferences.sublime-settings
Last active August 29, 2015 14:11
Sublime text 3 user settings
{
"auto_complete_selector": "source, text",
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": true,
"font_options": "subpixel_antialias",
"font_size": 16,
"highlight_line": false,
"highlight_modified_tabs": true,