Skip to content

Instantly share code, notes, and snippets.

View nraynaud's full-sized avatar
🌵
learning new things

Nicolas Raynaud nraynaud

🌵
learning new things
View GitHub Profile
; Relative positioning
G91
; Lift Z without endstop protection
G1 S2 Z2 F6000
; Course home X and Y
G1 X-215 Y-215 F4200 S1
; Move away from the endstops
@nraynaud
nraynaud / Readme.md
Last active September 6, 2020 18:49
Unattended installation of Xenserver with iso file

Unattended installation of Xenserver with iso file

  • create answers.xml
  • unpack iso file
    mount sudo mount XenServer-7.1.0-s1-install-cd.iso /mnt
    mkdir newContent
    (cd /mnt; sudo tar cf - .) |  (cd newContent; tar xfp -)
W: https://get.replicated.com/apt/dists/all/Release.gpg: Signature by key 68386EDB2C8B75CA615A8C985D4781862AFFAC40 uses weak digest algorithm (SHA1)
E: Failed to fetch https://get.replicated.com/apt/dists/all/Release No Hash entry in Release file /var/lib/apt/lists/partial/get.replicated.com_apt_dists_all_Release which is considered strong enough for security purposes
vagrant@ubuntu:~$ uname -a
Linux ubuntu 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
vagrant@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
@nraynaud
nraynaud / gist:75650aae6ebad2f97d77
Created March 30, 2015 16:13
STM32F4: receiving one shot of data on the SPI bus in receive only
#include <stm32f4xx.h>
#include "stm32f4xx_conf.h"
#include "stm32f4_discovery.h"
#include "math.h"
#include "arm_math.h"
volatile uint16_t counter = 0;
volatile uint16_t savedCounter = 0;
uint16_t parallelPins = GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_8 | GPIO_Pin_9 | GPIO_Pin_10;
@nraynaud
nraynaud / main.c
Created March 24, 2015 22:12
STM32F4: sending data to 2 chained 74HCT595 shift registers
#include <stm32f4xx.h>
#include "stm32f4xx_conf.h"
#include "stm32f4_discovery.h"
#include "math.h"
#include "arm_math.h"
uint16_t counter = 0;
void sendCounter();
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Visual CAM</title>
<script src="webapp/libs/require.js"></script>
<script src="webapp/config.js"></script>
<script>
requirejs.config({
@nraynaud
nraynaud / registers.ads
Created October 11, 2014 09:38
started reworking Adacore's modeling of registers in STM32F4
--------------------------------------------------------------------
---
-----------
-- --
-- GNAT EXAMPLE --
-- --
-- Copyright (C) 2014, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@nraynaud
nraynaud / svg.marker.js
Created April 18, 2014 12:20
markers for svg.js
"use strict";
define(['libs/svg'], (function () {
SVG.Marker = SVG.invent({
create: 'marker',
inherit: SVG.Container,
extend: {
getRef: function () {
return 'url(#' + this.attr('id') + ')'
},
update: function (block) {
@nraynaud
nraynaud / Form1.cs
Created February 7, 2014 20:31
clipper C# GUI demo main form cleanup
//#define UsePolyTree
using System;
using System.Diagnostics;
using System.Text;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
@nraynaud
nraynaud / test_clipper_diff.html
Created January 10, 2014 14:56
testing js clipper float difference.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple Bentley Ottmann with mock underlying structures</title>
<link rel="stylesheet" href="qunit-1.12.0.css">
<style>
.svgTest td {
border: solid 1px green;
}