Skip to content

Instantly share code, notes, and snippets.

Avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿
2️⃣0️⃣0️⃣

Andrew James phunkren

🏴󠁧󠁢󠁳󠁣󠁴󠁿
2️⃣0️⃣0️⃣
View GitHub Profile
View etc-hosts-on-win.md

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad

@phunkren
phunkren / Component.jsx
Last active Oct 29, 2020
My custom Theme provider for ajames.dev
View Component.jsx
import React from 'react';
import styled from 'styled-components';
const Container = styled.div(({ theme }) => css`
background-color: ${theme.background};
background-color: ${theme.copyColor};
border-color: ${theme.borderColor};
`);
export const Component = ({ children, ...props }) => {
@phunkren
phunkren / .env
Last active Apr 25, 2020
"Segment as a Service" /s
View .env
REACT_APP_SEGMENT_WRITE_KEY=dUmmYK3yTh@tisnaeReel
You can’t perform that action at this time.