Skip to content

Instantly share code, notes, and snippets.

View fw8's full-sized avatar
🎯
Focusing

Florian Wolpert fw8

🎯
Focusing
  • CRIION
  • Freiburg, Germany
View GitHub Profile
@fw8
fw8 / README.md
Created November 27, 2023 16:31 — forked from mickaelperrin/README.md
1Password login / logout helper

Session sharing across terminals for 1Password

This script intends to improve usability of 1Password CLI when working with multiple sessions and.or terminals

How to use ?

Login

oplogin
@fw8
fw8 / configmap.yaml
Created May 11, 2021 21:36 — forked from jferris/configmap.yaml
Rails Kubernetes Manifests
apiVersion: v1
kind: ConfigMap
metadata:
name: example
namespace: default
data:
APPLICATION_HOST: example.com
LANG: en_US.UTF-8
PIDFILE: /tmp/server.pid
PORT: "3000"
@fw8
fw8 / kfp_to_argo.py
Created April 2, 2021 10:45 — forked from liorshk/kfp_to_argo.py
Create an Argo Pipeline YAML using Kubeflow pipelines SDK
import kfp
@kfp.components.func_to_container_op
def print_func(param: int):
print(str(param))
@kfp.components.func_to_container_op
def list_func(param: int) -> list:
return list(range(param))
@fw8
fw8 / bitrix24-crm.lead.php
Created July 10, 2019 16:12
bitrix webhooks: add,get,delete lead
<?php
//get the fields available to a lead
https://hoangweb-dev.bitrix24.com/rest/1/hnw8ye0l22f93im8/crm.lead.fields.json
/**
* Get lead
*/
$queryUrl = 'https://hoangweb-dev.bitrix24.com/rest/1/hnw8ye0l22f93im8/crm.lead.get.json';
$queryData = http_build_query(array( //send post data
'id' => 2
@fw8
fw8 / post-merge
Created March 15, 2019 21:47 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"