This file contains 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 off | |
setlocal EnableDelayedExpansion EnableExtensions | |
rem Install virtualbox and extensions | |
rem Install golang and set up PATH, GOROOT and GOPATH | |
rem Drop a ssh pubkey with the extension .pub in the same directory as this file | |
rem Key must be in ssh-(rsa|dsa) KEY form. No headers like ------------------ | |
rem Copy from puttygen do not save from puttygen. | |
rem Run this batch file, use --noget if you change the go programs locally | |
rem Log in using username core not coreos (1 hour wasted) using the private key in putty |
This file contains 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/", | |
"Mappings" : { | |
"RegionMap" : { | |
"eu-central-1" : { | |
"AMI" : "ami-04bcbc19" | |
}, |
This file contains 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
\documentclass[a4paper,norsk,12pt]{article} | |
\usepackage{amssymb} % needed for math | |
\usepackage{amsmath} % needed for math | |
\usepackage[utf8]{inputenc} % this is needed for german umlauts | |
\usepackage[norsk]{babel} % this is needed for german umlauts | |
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf | |
\usepackage[margin=2.5cm]{geometry} %layout | |
\usepackage{hyperref} % this is needed for forms and links within the text |
This file contains 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
#!/bin/bash | |
# sudo bash lxde_mopidy_osmc.sh | |
# lxde with x11vnc and mopidy-spotify on osmc | |
# 1 or 2 | |
raspberry=1 | |
x11vnc=true | |
mopidy=true |
This file contains 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Provision a VPC (across two AZs) Output the VPC, Subnet, and SG IDs.", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the Elastic Beanstalk and Bastion hosts", | |
"Type": "String", | |
"MinLength": "1", |
This file contains 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 bpy | |
myCurve = bpy.data.curves[0] # here your curve | |
spline= myCurve.splines[0] # maybe you need a loop if more than 1 spline | |
scale = 200 | |
curvepath_template = """ | |
var curves = new THREE.CurvePath(); | |
%s |
This file contains 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
chattr -i /etc/resolv.conf | |
mv /etc/resolv.conf /etc/resolv.conf.bak.$(date +%FT%H%M) | |
echo nameserver 185.56.187.149 >/etc/resolv.conf | |
echo nameserver 87.238.35.136 >>/etc/resolv.conf | |
chattr +i /etc/resolv.conf |
This file contains 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
--- webpackHotDevClient.orig.js 2019-10-24 21:33:25.464549772 +0200 | |
+++ webpackHotDevClient.js 2019-10-24 21:40:27.485125571 +0200 | |
@@ -22,7 +22,7 @@ | |
url.format({ | |
protocol: window.location.protocol, | |
hostname: window.location.hostname, | |
- port: parseInt(process.env.PORT || window.location.port, 10) + 1, | |
+ port: process.env.RAZZLE_HOTCLIENT_NOPORT ? '' : parseInt(process.env.PORT || window.location.port, 10) + 1, | |
pathname: launchEditorEndpoint, | |
search: |
This file contains 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
/** | |
* The passed list of environment variables will be removed from the nodejs | |
* instance of webpack.DefinePlugin, so they can be resolved dynamically at | |
* runtime. | |
* @example | |
* // Include this in the plugins array exported by razzle.config.js | |
* const nodeRuntimeVarsPlugin = createRazzlePluginNodeRuntimeVars('PORT', 'HOST'); | |
* @param {String} ...nodeRuntimeVars | |
* @return {Function} | |
*/ |
This file contains 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 { useEffect, useLayoutEffect } from 'react'; | |
// eslint-disable-next-line max-len | |
// See https://github.com/reduxjs/react-redux/blob/316467a/src/hooks/useSelector.js#L6-L15 | |
export const useIsomorphicLayoutEffect = | |
typeof window !== 'undefined' ? useLayoutEffect : useEffect; | |
export const useServerNoopLayoutEffect = | |
typeof window !== 'undefined' ? useLayoutEffect : () => ({}); |
OlderNewer