Skip to content

Instantly share code, notes, and snippets.

View robalb's full-sized avatar
🟡
[object Object] ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌

alberto ventafridda robalb

🟡
[object Object] ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌
View GitHub Profile
@robalb
robalb / build.yaml
Created November 17, 2022 22:33
tag image in github action
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# https://github.com/docker/metadata-action#typesha
tags: |
type=sha,priority=100,format=short,prefix=sha-
type=raw,priority=200,prefix=sha-,value=${{ github.sha }}
@robalb
robalb / trackpoint.md
Created November 6, 2022 22:25
configure Thinkpad trackpoint on Ubuntu

add new trackpoint config

sudo vim /etc/udev/rules.d/10-trackpoint.rules

enter the following

ACTION=="add",
SUBSYSTEM=="input",
ATTR{name}=="TPPS/2 IBM TrackPoint",

ATTR{device/sensitivity}="220",

@robalb
robalb / telegram-widget.js
Created November 17, 2021 22:54
telegram widget for local development
window.fakeOrigin = "http://garrlab.local:3000"
(function(window) {
(function(window){
window.__parseFunction = function(__func, __attrs) {
__attrs = __attrs || [];
__func = '(function(' + __attrs.join(',') + '){' + __func + '})';
return window.execScript ? window.execScript(__func) : eval(__func);
}
}(window));
(function(window){

Keybase proof

I hereby claim:

  • I am robalb on github.
  • I am 20alb (https://keybase.io/20alb) on keybase.
  • I have a public key ASCuV7T5XA4PxqeWmXeaOHuAHwdIYk0wRH96BpFCTKMHNAo

To claim this, I am signing this object: