Skip to content

Instantly share code, notes, and snippets.

@noncototient
noncototient / PasswordInput.vue
Created February 22, 2018 10:55
Vue password input component that consumes Have I Been Pwned Password API
<template>
<div>
<input class="form-control" :class="'is-'+status" type="password" v-model="password" @change="verify">
<div :class="status+'-feedback'" v-show="message">
<i class="fa fa-spinner fa-spin" v-show="loading"></i>
<span v-text="message"></span>
</div>
</div>
</template>
@noncototient
noncototient / hosts
Created June 2, 2018 10:05 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@noncototient
noncototient / php_upgrade_to_71.sh
Created June 29, 2018 04:52 — forked from pixeline/php_upgrade_to_71.sh
Update Mac Os X's php version to php 7.1 using homebrew. Includes curl and mcrypt
# 1. Install brew --> http://brew.sh/
# 2. run the following commands in your Terminal
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install --with-openssl curl
brew install --with-homebrew-curl --with-apache php71
brew install php71-mcrypt php71-imagick
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot.
brew info php71
@noncototient
noncototient / demo-styles.css
Last active July 18, 2018 03:20
Styles for demo page
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fafafa;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
@noncototient
noncototient / VS Code Dark+.itermcolors
Created August 1, 2018 01:00 — forked from soldni/cloudSettings
Default Visual Studio Code Theme for iTerm
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.10980392247438431</real>