This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Written by Chris Arceneaux | |
# GitHub: https://github.com/carceneaux | |
# Email: [email protected] | |
# Website: http://arsano.ninja | |
# | |
# Note: This code is a stop-gap to erase Job Artifacts for a project. I HIGHLY recommend you leverage | |
# "artifacts:expire_in" in your .gitlab-ci.yml | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function ComponentWithMixins( ...mixins) { | |
class MixedComponent extends React.Component { } | |
for( let mixin of mixins) { | |
// TODO: Would need to handle mixin collisions... | |
for( let name of Object.keys( mixin)) { | |
MixedComponent.prototype[ name]= mixin[ name] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// instead of doing this: | |
Projection sqlProjection = Projections.sqlProjection(sql, new String[]{"userName"}, new Type[]{new StringType()}); | |
// you do this: | |
Projection sqlProjection = new SmartSQLProjection(sql, new String[]{"userName"}, new Type[]{new StringType()}); |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* BMW IBus Daemon reads BMW IBus data through serial port. It detects | |
* BMW board monitor(at least BM53) unit and steering wheel button presses | |
* from IBus data, maps them to key events and injects them to system event | |
* queue via uinput. | |
* | |
* It also can be configured to inject key events only in certain state like | |
* TAPE or AUX which can be useful if you want to hijack for example TAPE | |
* mode for other use. | |
* |