Skip to content

Instantly share code, notes, and snippets.

View Ubuntu_Debian_Cloud_images_in_Proxmox.md
@bonsi
bonsi / MSP_ATTITUDE.ino
Created Jan 24, 2020 — forked from Xorgon/MSP_ATTITUDE.ino
An Arduino sketch for getting attitude data from a flight controller using MSP.
View MSP_ATTITUDE.ino
#include <SoftwareSerial.h>
#define MSP_ATTITUDE 108
SoftwareSerial mspSerial(11, 12); // RX TX
void setup() {
mspSerial.begin(9600);
Serial.begin(9600);
}
@bonsi
bonsi / install_font_adobe_source_code_pro.sh
Created Jan 12, 2020 — forked from enzinier/install_font_adobe_source_code_pro.sh
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
View install_font_adobe_source_code_pro.sh
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
@bonsi
bonsi / private-fork.md
Created Mar 23, 2019 — forked from DavideMontersino/private-fork.md
How to fork to a private gitlab instance
View private-fork.md

Theory:

your git repository can have more than one remote server; In this case we want to have two:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to the source repo on github, to be able to pull new changes (will be called upstream)

How to make a private fork from github to gitlab

@bonsi
bonsi / ssh_config
Created Jun 18, 2017
Secure SSH Config
View ssh_config
# Recommendations from https://stribika.github.io/2015/01/04/secure-secure-shell.html
# Github needs diffie-hellman-group-exchange-sha1 some of the time but not always.
#Host github.com
# KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Host *
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Host *
View win-add-hash-to-content-menu.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: March 5th 2017
; Tutorial: https://www.tenforums.com/tutorials/78681-file-hash-context-menu-add-windows-8-windows-10-a.html
[HKEY_CLASSES_ROOT\*\shell\hash]
"MUIVerb"="Hash"
"SubCommands"=""
@bonsi
bonsi / git.md
Last active Feb 15, 2017
Git commands
View git.md

Branches

How to check out a remote Git branch

git fetch
git checkout test

Forks

How to contribute to an open-source GitHub project using your own fork

  • Fork the repo
@bonsi
bonsi / laravel-dusk-docker.md
Last active Feb 16, 2021
Get Laravel Dusk running within (lara)dock
View laravel-dusk-docker.md

NOTES

Working solution for laradock

  • spin up the selenium image (selenium/standalone-chrome) as included with laradock
  • in .env.dusk.local set APP_URL=http://nginx to point to the docker nginx image
  • in tests\DuskTestCase.php replace the line 'http://localhost:9515', DesiredCapabilities::chrome() with 'http://selenium:4444/wd/hub', DesiredCapabilities::chrome()
  • run php artisan dusk
  • ...
  • PROFIT
@bonsi
bonsi / laravel-elixir-growl-docker.md
Last active Dec 2, 2016
Laravel elixir remote growling from within a docker container
View laravel-elixir-growl-docker.md

Laravel elixir 6 remote notifications (Growl) from within a docker container.

In /node_modules/laravel-elixir/dist/Notification.js

Replace

var _gulpNotify = require('gulp-notify');