- 3 eggs
- 1 yolk
- 2 cans of sweetened condensed milk
- One of these
☝️ empty cans full of whole milk - A pinch of vanilla extract
View user-data-for-nginx.sh
#!/bin/bash -xe | |
yum update -y | |
amazon-linux-extras install nginx1 -y | |
cd /usr/share/nginx/html | |
echo "WebServer on instance-id " > index.html | |
curl http://169.254.169.254/latest/meta-data/instance-id >> index.html | |
systemctl start nginx |
View dope-flan.md
View ec2-nginx.yml
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Creates an EC2 instance with Nginx installed and running.' | |
Parameters: | |
VPC: | |
Description: VPC for the SecurityGroup | |
Type: AWS::EC2::VPC::Id |
View timer.js
$(function() { | |
const timer = $('.timer'); | |
timer.startTimer({ allowPause: true }); | |
setTimeout(() => { | |
timer.trigger('click'); | |
timer.data('timeLeft', 30); | |
timer.trigger('click'); | |
}, 3000); | |
}); |
View main.go
package main | |
import ( | |
"net/http" | |
"regexp" | |
) | |
type route struct { | |
pattern *regexp.Regexp | |
handler http.Handler |
View fifa-world-cup-winners.json
[ | |
{ "country": "France", "year": 2018 }, | |
{ "country": "Germany", "year": 2014 }, | |
{ "country": "Spain", "year": 2010 }, | |
{ "country": "Italy", "year": 2006 }, | |
{ "country": "Brazil", "year": 2002 }, | |
{ "country": "France", "year": 1998 }, | |
{ "country": "Brazil", "year": 1994 }, | |
{ "country": "West Germany", "year": 1990 }, | |
{ "country": "Argentina", "year": 1986 }, |
View hoc-demo.js
function App(props){ | |
return `Message ${props.classes.button} ${props.classes.isActive}`; | |
} | |
const styles = { | |
button: "btn-primary", | |
isActive: "is-active" | |
}; | |
const styledProps = withStyles(styles); |
View Dockerfile
# Change Ruby version accordingly | |
FROM ruby:2.3-stretch | |
LABEL maintainer="carloshrsouza@gmail.com" | |
RUN apt-get update | |
RUN apt-get install -y git | |
RUN mkdir /myapp | |
WORKDIR /myapp |
View issue.md
Found this solution to address the problem where raspberry.local can't be found on the network. Run:
dscacheutil -q host -a name raspberrypi.local
Then try it again shrug
View attempt-to-increase-performance.md
Increase GPU Memory
Open /boot/config.txt and add the line "gpu_mem=128".
Add Swap memory
sudo apt-get install dphys-swapfile
https://raspberrypi.stackexchange.com/questions/66913/more-memory-on-raspberry-pi
NewerOlder