This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using submodules - it's good if repos are unrelated or developed separately | |
see http://www.kernel.org/pub/software/scm/git/docs/v1.5.6/git-submodule.html | |
Either copy repository A into a separate directory in larger project B, or (perhaps better) clone repository A into a subdirectory in project B. | |
Then use git submodule to make this repository a submodule of a repository B. | |
Using subtree - real merge | |
see http://nuclearsquid.com/writings/subtree-merging-and-you/ | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# paste code into bash/zsh | |
hidedesktop() { | |
local state && state=$(defaults read com.apple.finder CreateDesktop) | |
if [ "$state" == "true" ]; then | |
defaults write com.apple.finder CreateDesktop false | |
else | |
defaults write com.apple.finder CreateDesktop true | |
fi | |
killall Finder | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port = 8001 | |
host = localhost | |
console.log("Example app listening at http://%s:%s", host, port) | |
// Example app listening at http://localhost:8001 | |
// Carbon | |
// https://carbon.now.sh/?bg=rgba(171%2C%20184%2C%20195%2C%201)&t=seti&wt=none&l=auto&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=56px&ph=56px&ln=false&fl=1&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&code=port%2520%253D%25208001%250Ahost%2520%253D%2520localhost%250Aconsole.log(%2522Example%2520app%2520listening%2520at%2520http%253A%252F%252F%2525s%253A%2525s%2522%252C%2520host%252C%2520port)%250A%252F%252F%2520Example%2520app%2520listening%2520at%2520http%253A%252F%252Flocalhost%253A8001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew uninstall mongodb | |
brew tap mongodb/brew | |
brew install mongodb-community | |
# se vocês rodam o mongo sempre que ligam o mac rodem o comando a baixo também | |
# auto start service on login | |
brew services start mongodb-community | |
credits :twitter: @arthurdandrea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container: HTMLDivElement { _reactRootContainer: [ReactSyncRoot] }, | |
baseElement: HTMLBodyElement {}, | |
debug: [Function: debug], | |
unmount: [Function: unmount], | |
rerender: [Function: rerender], | |
asFragment: [Function: asFragment], | |
queryAllByLabelText: [Function: bound queryAllByLabelText], | |
getAllByLabelText: [Function: bound getAllByLabelText], | |
queryByLabelText: [Function: bound ], | |
findAllByLabelText: [Function: bound ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test.only('it works', async () => { | |
const environment = createMockEnvironment(); | |
const ComponentWithRouter = await mountWithRouter(LoginComponent, environment); | |
const { getByPlaceholderText, queryByText, getByTestId } = render( | |
<RelayEnvironmentProvider environment={environment}> | |
<ThemeProvider theme={theme}>{ComponentWithRouter}</ThemeProvider> | |
</RelayEnvironmentProvider>, | |
); | |
// Inject some input into component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { createRender, resolver as defaultResolver, getStoreRenderArgs } from 'found'; | |
import createFarceStore from 'found/lib/utils/createFarceStore'; | |
import { FarceElementResult, FarceRedirectResult, GetFarceResultArgs } from 'found/lib/server'; | |
import queryMiddleware from 'farce/lib/queryMiddleware'; | |
import BrowserProtocol from 'farce/lib/BrowserProtocol'; | |
import RouterProvider from 'found/lib/server/RouterProvider'; | |
import FarceActions from 'farce/lib/Actions'; | |
import { Resolver } from 'found-relay'; | |
import { RelayModernEnvironment } from 'relay-runtime/lib/store/RelayModernEnvironment'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
receitinha de bolo basica pra investir de maneira simples, pagando o minimo de taxas, e evitando fazer timing do mercado: | |
renda fixa: | |
curtissimo prazo (0 a 6 meses): cdb liquidez diaria | |
curto prazo (6 meses a 2 anos): lci lca | |
medio prazo (2-5 anos): cdbs com vencimentos fazendo ladeira | |
renda variavel (longo prazo, nao compre pensando em vender): | |
se for investir no brasil, compre um etf indexado pelo indice ibov todo mes | |
se for investir no exterior, compre um etf como aok (conservador), aom (moderado), aor (moderado agressivo) ou aoa (agressivo) dependendo do teu perfil de risco, todo mes | |
na renda fixa vc investe de 5 a 10 anos do seu custo mental de vida, como se fosse um fundo de emergencia, na renda variavel vc investe tudo q sobrar depois disso, sempre pensando em viver de dividendos, se vc compra uma acao ou etf pra vender, vc ta especulando, nao investindo, ai ja eh outro tipo de estrategia (edited) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# script by arch forums user NuSkool | |
UZR=$(getent passwd 1000 | awk -F':' '{print $1}') | |
Pdate=$(date '+%m-%d-%Y') | |
Buplog="/home/${UZR}/Desktop/${Pdate}".backup | |
ROOTdev="/dev/sdc1" | |
HOMEdev="/dev/sdc3" | |
touch "${Buplog}" |