This hides things and renames things.
This assigns things to areas based on their name
disable_ec2_metadata: True | |
datasource_list: [ "ConfigDrive", "None"] | |
datasource: | |
None: | |
userdata_raw: | | |
#!/bin/bash | |
groupadd vagrant | |
useradd -d /home/vagrant -s /bin/bash -m -g vagrant -G wheel vagrant | |
echo "root:vagrant" | chpasswd |
#!/usr/bin/env python | |
import json | |
import requests | |
import urllib3 | |
urllib3.disable_warnings() | |
cookie = open("cookie.txt").readline().strip() | |
csrf_token = [x.split("=") for x in cookie.split(";") if "csrf" in x][0][1] |
package main | |
import ( | |
"crypto/tls" | |
"log" | |
"net" | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
) |
Software that provides a programmer friendly interface between application programs and the hardware by providing a virtual environment to applications.
Software that handles resource requests from application programs and prevents applications from trampling each other.
blueprint: | |
name: Motion-activated light scene with surrounding light level check and optional ambient scene | |
description: Turn on a light scene when motion is detected. Three different scenes can be defined depending on time of day. Furthermore a source for checking sourrounding light can be defined to enable light only if it is dark enough. | |
domain: automation | |
source_url: https://gist.github.com/dirkk1980/3e5c23acb05fb639bafdc5036b91aae6 | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: |
import java.io.*; | |
import java.util.*; | |
class LargestFromTextFile { | |
public static void main(String[] args) { | |
try { | |
Scanner file = new Scanner(new File("numbers.txt")); | |
int largest = file.nextInt(); | |
while(file.hasNextInt()) { |
#!/bin/sh | |
SSH_PUBLIC_KEY='insert_your_ssh_public_key_here' | |
function add_ssh_public_key() { | |
cd | |
mkdir -p .ssh | |
chmod 700 .ssh | |
echo "$SSH_PUBLIC_KEY" >> .ssh/authorized_keys | |
chmod 600 .ssh/authorized_keys |
FROM debian:buster-slim | |
# Install Chrome | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends software-properties-common \ | |
&& apt-add-repository contrib \ | |
&& apt-get update \ | |
&& apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ |