Skip to content

Instantly share code, notes, and snippets.

Studying machine learning again :)

Benjamin Tamasi half2me

Studying machine learning again :)
Block or report user

Report or block half2me

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
half2me / cloudberry.js
Last active Nov 28, 2019
Remove cloudberries from Nespresso
View cloudberry.js
// ==UserScript==
// @name No Cloudberry
// @namespace
// @version 0.1
// @description Remove cloudberry from Nespresso!
// @author
// @match *://*/order/capsules/original
// @match *://*/home
// @grant none
// ==/UserScript==
half2me / .zshrc
Created Sep 12, 2019
run a command on kubernetes pod by deployment name
View .zshrc
k8exec() {
local pod=$1
kubectl exec -it $(kubectl get pods -o name | grep -m1 $pod | cut -d'/' -f 2) -- $@

Keybase proof

I hereby claim:

  • I am half2me on github.
  • I am halftome ( on keybase.
  • I have a public key ASBYjXnttEq63LZstTmJ3xkzigb4nML2hGIAYOUJOrmMqwo

To claim this, I am signing this object:

View nginx-directive-wordpress
location / {
try_files $uri $uri/ /index.php?$args;
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
half2me /
Created Jul 25, 2018
Remove file from PR
git checkout pr-branch
git reset origin/master -- /path/to/file
git commit
git checkout -- . # or git reset --hard @
git push
half2me /
Last active Aug 24, 2018
import logging
import gi
from gst.caps import CapsRegistry
from gst.pipe_loader import PipelineLoader
from gst.pipeline import Pipeline
gi.require_version('Gst', '1.0')
gi.require_version('GstRtspServer', '1.0')
package com.fidesmo.javacard.example;
import javacard.framework.*;
public abstract class BaseCardlet extends Applet implements ISO7816 {
KeyPair kp;
Signature sig;
BaseCardlet(byte[] buffer, short offset, byte length) {
//import org.bouncycastle.jce.ECPointUtil;
import javax.smartcardio.CardChannel;
import javax.smartcardio.CardException;
import javax.smartcardio.CommandAPDU;
import javax.smartcardio.ResponseAPDU;
import java.math.BigInteger;
import java.nio.ByteBuffer;
half2me /
Created Mar 29, 2018
Baytrail Vaapi matroska
gst-launch-1.0 videotestsrc ! vaapih264enc ! matroskamux ! fakesink
# Gstreamer 14.0 on Baytrail
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
Pipeline is PREROLLING ...
Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm1";
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
package com.fidesmo.javacard.example;
import javacard.framework.*;
public class ExampleCardlet extends Applet
private static final short MAX_LENGTH = 256;
private static final byte[] hello = {'p','k','i','t','c','h'};
You can’t perform that action at this time.