Skip to content

Instantly share code, notes, and snippets.

View vNNi's full-sized avatar

Vinicius Komninakis vNNi

View GitHub Profile
@chrisle
chrisle / gist:2252209
Created March 30, 2012 15:15
CURL as GoogleBot 2.1
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@
@myano
myano / irc_games.md
Last active March 20, 2024 11:07
This is a list of games that are playable on IRC.

List of on-IRC games

AlphaChat

  • #multirpg

BakaShiMoe

@irazasyed
irazasyed / homebrew-permissions-issue.md
Last active June 14, 2024 17:01
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

@kelvinst
kelvinst / git-aliases.md
Last active April 7, 2024 20:30
Git alias - seja rápido, seja breve!

Git alias - seja rápido, seja breve!

Git freak como sou, precisava compartilhar algo útil sobre ele, claro. E, já que não vejo muito por aí o pessoal usando, resolvi falar dos alias do git! É um recurso que eu uso muito, e nunca entendi porque muitas pessoas não são adeptas. 😕

Pelo nome você já deve perceber que os alias no git são atalhos. Atalhos pro quê? São atalhos para comandos do git e até comandos shell se você quiser. E é bem fácil cadastrar um alias:

$ git config --global alias.st status
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 17, 2024 18:24
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@rekomat
rekomat / nextjs-cheatsheet.md
Created August 30, 2018 09:37
Next.js Cheatsheet

Next.js Cheatsheet

CSS Server-Side

CSS must be server-side rendered or you'll end up with a flash of unstyled content (FOUC).

styled-jsx Docs: Server-Side Rendering

// next.config.js
const bypass = [
// function names to avoid logging
];
const collapsed = [
// function names to groupCollapsed
];
module.exports = function(babel) {
const { types: t } = babel;
const wrapFunctionBody = babel.template(`{
const sleepSort = (arr) => {
const { length } = arr
const result = []
return new Promise((resolve) => {
for (let index = 0; index < length; index++) {
const value = arr[index];
setTimeout(() => {
result.push(value)
@kmvan
kmvan / _document.tsx
Created June 2, 2022 02:52
Next 12 + React 18 _document.tsx
import Document, {
DocumentContext,
Head,
Html,
Main,
NextScript,
} from 'next/document'
import { CSSProperties, ServerStyleSheet } from 'styled-components'
import { AppContextProps } from 'YOUR APP CONTEXT'
interface PageDocumentProps {