Skip to content

Instantly share code, notes, and snippets.

View andreloty's full-sized avatar

André Lima andreloty

View GitHub Profile
@andreloty
andreloty / hotfix.txt
Last active February 13, 2016 14:37
Hotfix instalation npm
echo prefix = ~/.node >> ~/.npmrc
export PATH=$HOME/.node/bin:$PATH
{
"black": "#002b36",
"dark_blue": "#81A2BE",
"dark_green": "#01e327",
"dark_cyan": "#81d6ff",
"dark_red": "#dc322f",
"dark_magenta": "#d33682",
"dark_yellow": "#b58900",
"gray": "#eee8d5",
"dark_gray": "#019393",
@andreloty
andreloty / gist:931d80540f2acff69058d00f3b03e56b
Created December 18, 2017 18:45
summernote clear format
var cleanText = $('#summernote').data().summernote.code()
.replace(/<\/p>/gi, "\n")
.replace(/<br\/?>/gi, "\n")
.replace(/<\/?[^>]+(>|$)/g, "")
@andreloty
andreloty / gist:5a8fa7b5256ed2dfd05c941c4d44fbec
Created February 23, 2018 01:31
./bin/www com socket.io
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app')
var debug = require('debug')('knex:server')
var http = require('http')
@andreloty
andreloty / gist:16a8a285e784a9c476c7db47f6239e6b
Created February 23, 2018 01:34
layout.vash com script conectando com o socket.io
<!DOCTYPE html>
<html>
<head>
<meta>
<title>@model.title</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
@andreloty
andreloty / gist:5c2152b1f87ac7e569a781d95bd51d9d
Last active February 23, 2018 01:53
set reloadify on express
// set reloadify
if (process.env.NODE_ENV !== 'prodution') {
var reloadify = require('reloadify')([
__dirname + '/views',
__dirname + '/public',
])
app.use(reloadify)
}
@andreloty
andreloty / gist:7a25d3c86f81fd9f1bb61edea5cd1b60
Created November 27, 2019 20:48
powershell core themes
Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Brogrammer.itermcolors' -OutFile .\Brogrammer.itermcolors
Import-Iterm2ColorScheme -Path .\Brogrammer.itermcolors -Name Brogrammer
Get-MSTerminalProfile -Name "PowerShell Core" | Set-MSTerminalProfile -ColorScheme Brogrammer
FirefoxDev
Cobalt2
deep
Flat
[settings]
api_key =12af562f-f7ba-4626-866a-818dd22c132c
proxy=
debug =true
status_bar_icon = true
status_bar_enabled = true
status_bar_coding_activity = true
@andreloty
andreloty / gist:36584a605f238ad2ecd0cfb264b8e0c7
Created February 25, 2020 22:13
synthwave-x-fluoromachine
.mtk3, .mtk6 {
color: #61e2ff;
text-shadow: 0 0 2px #001716, 0 0 5px #03edf933, 0 0 10px #ffff6633;
}
aca
.mtk4, .mtk5, .mtk14 {
color: #9963ff;
}
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "system",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": true,
"wordDelimiters": " /\\()\"'-.,:;<>~!@#$%^&*|+=[]{}~?│",