Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
...

Ladislas de Toldi ladislas

💭
...
View GitHub Profile
View install.sh
#!/usr/bin/env zsh
mkdir -p $HOME/dev/tmp
cd $HOME/dev/tmp
git clone https://github.com/ladislas/dotfiles
cd $HOME/dev/tmp/dotfiles
./bootstrap.sh --hello
View cloudSettings
{"lastUpload":"2020-07-21T15:31:04.719Z","extensionVersion":"v3.4.3"}
View openocd.sh
/usr/local/bin/openocd \
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/board/st_nucleo_wb55.cfg \
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/interface/stlink-v2-1.cfg \
-c init \
-c "reset init"
/usr/local/bin/openocd \
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/board/st_nucleo_wb55.cfg \
-c "init; reset halt"
@ladislas
ladislas / script.sh
Created Nov 20, 2019
Check Git status
View script.sh
for f in *; do
cd $f
echo $f
if [ -n "$(git status --porcelain)" ]; then
echo "\n ⚠️ $f\n"
fi
cd ..
done
@ladislas
ladislas / Makefile
Created Sep 10, 2019
avr-gcc-unused-code
View Makefile
all: direct elf size
1: clean direct elf nm size
2: clean stepped elf nm size
3: clean steppedimproved elf nm size
direct:
avr-gcc -mmcu=atmega328p -Wall -flto -g -Os -c main.c -o main.c.elf --verbose
View .ycm_extra_conf.py
import os
import ycm_core
# You can set a directory with a lot of libraries to be search recursively here
nestedLibDirs = ["lib"]
include_flags = [
'-I.'
,'-I./mbed-os'
,'-I./mbed-os/cmsis'
View avr-binutils-size.patch
AVR only; support -C for AVR memory usage - Rev1
Source: http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master
===========================================================
--- binutils/size.c
+++ binutils/size.c
@@ -34,10 +34,31 @@
#include "getopt.h"
#include "bucomm.h"
View buffer.swift
//
// Buffer.swift
// SwiftSerialport
//
// Created by Ladislas de Toldi on 09/10/2018.
//
import Foundation
public class Buffer {
@ladislas
ladislas / triggering-functions.swift
Created Oct 14, 2018
Function trigger other functions to experiment events
View triggering-functions.swift
struct function_t {
let type: String?
let action: Any?
init(type: String, action: Any?) {
self.type = type
self.action = action
}
}
View timer.swift
//
// main.swift
// Test
//
// Created by Ladislas de Toldi on 29/08/2018.
//
//: Playground - noun: a place where people can play
import Darwin
You can’t perform that action at this time.