Skip to content

Instantly share code, notes, and snippets.

View calebeaires's full-sized avatar
👨‍💻
on vue

Calebe Aires calebeaires

👨‍💻
on vue
View GitHub Profile
@calebeaires
calebeaires / html-input-remove-chrome-autofill-background.css
Created January 18, 2022 14:53 — forked from coltenkrauter/html-input-remove-chrome-autofill-background.css
Remove Chrome's autofill background color on HTML inputs. This unique solution makes the background color to transparent rather then a solid color.
// Remove chrome autofill color from inputs
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
transition: background-color 5000000s ease-in-out 0s;
}
# Credit: https://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete#answer-29350537
@calebeaires
calebeaires / oauth.js
Created March 24, 2019 21:06 — forked from srph/oauth.js
axios: interceptor which includes your oauth token in every request as an Authorization header
import axios from 'axios';
// You can use any cookie library or whatever
// library to access your client storage.
import cookie from 'cookie-machine';
axios.interceptors.request.use(function(config) {
const token = cookie.get(__TOKEN_KEY__);
if ( token != null ) {
config.headers.Authorization = `Bearer ${token}`;
@calebeaires
calebeaires / setup.md
Created December 29, 2017 13:54 — forked from novemberborn/setup.md
OS X Redirect ports 80 and 443 to 8080 and 8443 respectively

Changes with .dev domains in mind.

Create /etc/pf.anchors/dev, containing:

rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443