This file contains hidden or 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
echo 'setting up macos...' | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install git | |
echo 'installing applications...' | |
brew install google-chrome | |
brew install visual-studio-code | |
brew install 1password |
This file contains hidden or 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
$bp-mobile-sm: 321px; | |
$bp-mobile-md: 376px; | |
$bp-mobile-lg: 414px; | |
$bp-tablet-sm: 562px; | |
$bp-tablet-md: 768px; | |
$bp-tablet-lg: 826px; | |
$bp-desktop-sm: 1120px; | |
$bp-desktop-md: 1366px; | |
$bp-laptop-md: 1441px; | |
$bp-desktop-lg: 1536px; |
This file contains hidden or 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 axios from 'axios'; | |
import LooksSame from 'looks-same' | |
import path from 'path' | |
type Image = string | Buffer | |
class ImageCompareService { | |
public rootPath: string; | |
public staticPath: string; |
This file contains hidden or 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
{ | |
"editor.lineHeight": 22, | |
"editor.fontSize": 14, | |
"editor.fontFamily": "IBM Plex Mono", | |
"editor.rulers": [ | |
{ | |
"column": 130, | |
"color": "#41505e" | |
}, | |
{ |
This file contains hidden or 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
echo "Installing microk8s 1.18/stable for $(whoami)" | |
sudo snap install microk8s --classic --channel=1.18/stable | |
sudo microk8s start | |
sudo microk8s status --wait-ready | |
sudo microk8s.kubectl get nodes | |
sudo microk8s.kubectl get all -o wide | |
echo "--DONE--" |
This file contains hidden or 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
echo "Creating 3gb swap for $(whoami)" | |
free -h | |
sudo fallocate -l 3G /swapfile | |
ls -lh /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon --show | |
free -h | |
sudo sysctl vm.swappiness=10 |
This file contains hidden or 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
change NAME | |
echo '=> Installing docker...' | |
# Docker | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker NAME | |
docker run hello-world | |
echo '=> Installing compose...' | |
# Compose |
This file contains hidden or 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 {promisify} from 'util'; | |
const wait = promisify(setTimeout) | |
await wait(5000); |
This file contains hidden or 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
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0} |
This file contains hidden or 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 Logger from "../lib/logger"; | |
import axios from "axios"; | |
import { createCanvas, loadImage, registerFont } from "canvas"; | |
import path from "path"; | |
import ColorThief from "colorthief"; | |
import { uploadImage } from "../resolvers/imgResolver"; | |
import { KeycapsetModel } from "../models"; | |
registerFont(__dirname + "../../../static/Rubik-SemiBold.ttf", { | |
family: "Rubik Semi", |
NewerOlder