Skip to content

Instantly share code, notes, and snippets.

View bloodf's full-sized avatar
:shipit:
Coding...

Heitor Ramon Ribeiro bloodf

:shipit:
Coding...
View GitHub Profile
<?php
class Yii2ValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @Param string $sitePath
* @Param string $siteName
* @Param string $uri
@bloodf
bloodf / slack_dark_theme.css
Created August 14, 2018 15:08
Slack Datk Theme
/* Scrollbar Chrome*/
*::-webkit-scrollbar {
width: 10px !important;
height: 10px !important;
background: #1e1e1e !important;
border: 1px solid #252525 !important;
}
*::-webkit-scrollbar-button {
//
// loginwindowbgconverter
// 2018-09-27
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
@bloodf
bloodf / prettyLog.ts
Created July 22, 2019 13:57
PrettyLog
export enum LogLevelName {
Info = 'info',
Warn = 'warn',
Error = 'error',
Method = 'method',
All = 'all',
None = 'none',
}
export enum LogLevelStyle {
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: path.resolve(__dirname, 'src/index.js'),
plugins: [
new webpack.HashedModuleIdsPlugin(), // so that file hashes don't change unexpectedly
],
output: {
path: path.resolve(__dirname, 'dist'),
@bloodf
bloodf / bootstratpSetup.sh
Last active December 18, 2019 21:35
MacOs Bootstrap Installation Script
#!/usr/bin/env bash
NINITE_SCRIPT=curl -s 'https://api.macapps.link/pt/firefox-firefoxdev-chrome-dropbox-drive-github-sequelpro-vscode-docker-postman-insomnia-keka-1password-filezilla-appcleaner-ccleaner-caffeine-istatmenus-duet-spotify-calibre-handbrake-mpegstreamclip-skype-telegram-slack-whatsapp-discord' | sh
NPM_PACKS="@quasar/cli @vue/cli @vue/cli-service-global @vue/devtools capacitor cordova electron eslint global ios-deploy ios-sim jscs jshint jslint ncu ndb netlify-cli nodemon now npm npm-check-updates prettier start-android-emulator ts-node tslint typescript vue-language-server"
#Help
COMMANDS="Node -> nodeglobalinstall\nPackage Managers Update -> updaterepo\nApp Install -> ninite\niOS Sim Rec Video -> recsim nomeVideo.mp4\nFlush DNS -> flushdns\nClearbluetooth -> bluetoothRestart"
HELP_ALIAS="alias helpAlias=\"printf \"$COMMANDS\""
#NODE
UPDATE_REPO="alias updaterepo=\"npm update -g && brew update && brew upgrade\""
@bloodf
bloodf / .bash_profile
Created December 14, 2019 14:46
Bash Profile MacOS
source ~/.profile
export PATH="/usr/local/sbin:$PATH"
#ANDROID
# Create a JAVA_HOME variable, determined dynamically
export JAVA_HOME=$(/usr/libexec/java_home)
# Add that to the global PATH variable
export PATH=${JAVA_HOME}/bin:$PATH
# Set Android_HOME
@bloodf
bloodf / .bash_alias
Last active December 20, 2019 14:23
Bash Alias
#Help
COMMANDS="Node -> nodeglobalinstall\nPackage Managers Update -> updaterepo\nApp Install -> ninite\niOS Sim Rec Video -> recsim nomeVideo.mp4\nFlush DNS -> flushdns\nClearbluetooth -> bluetoothRestart"
alias helpAlias="printf \"$COMMANDS\""
#NODE
NPM_PACKS="@quasar/cli @vue/cli @vue/cli-service-global @vue/devtools capacitor cordova electron eslint global ios-deploy ios-sim jscs jshint jslint ncu ndb netlify-cli nodemon now npm npm-check-updates prettier start-android-emulator ts-node tslint typescript vue-language-server"
alias updaterepo="npm update -g && brew update && brew upgrade"
alias nodeglobalinstall="npm install -g $NPM_PACKS"
alias listNodeModules="find . -name 'node_modules' -type d -prune"
alias pruneNodeModules="find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +"
@bloodf
bloodf / .zshrc
Created December 14, 2019 14:47
Oh-My-Zsh Config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/heitor/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@bloodf
bloodf / .p10k.zsh
Created December 14, 2019 14:49
PowerLevel10K Config
# Generated by Powerlevel10k configuration wizard on 2019-09-08 at 16:02 -03.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 20097.
# Wizard options: nerdfont-complete + powerline, small icons, lean, time, 2 lines,
# solid, sparse, many icons, concise.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.