Skip to content

Instantly share code, notes, and snippets.

@relu
relu / Dockerfile
Last active May 15, 2023 09:19
linkerd-cni-remove-standalone-patch
FROM ghcr.io/linkerd/cni-plugin:stable-2.13.3
# Override default install-cni.sh due to https://github.com/linkerd/linkerd2/issues/10375
COPY --chmod=0755 install-cni.sh /linkerd/install-cni.sh
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test "./helm" -v -timeout 120m -parallel=4
=== RUN TestAccDataRepository_basic
--- PASS: TestAccDataRepository_basic (10.72s)
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestAccResourceRelease_basic
=== PAUSE TestAccResourceRelease_basic
=== RUN TestAccResourceRelease_import
=== PAUSE TestAccResourceRelease_import
###
Angular Directive for eonasdan's bootstrap-datetimepicker
###
angular.module('someApp')
.directive 'dateTimePicker', ($parse)->
restrict: 'A'
link: (scope, element, attrs)->
modelAccessor = $parse(attrs.ngModel)
@relu
relu / ro.kaminary.yml
Last active December 18, 2015 05:59
Kaminari :ro locale
ro:
views:
pagination:
first: "« Prima"
last: "Ultima »"
previous: "‹ Precedenta"
next: "Următoarea ›"
truncate: "…"
helpers:
page_entries_info:
--- /src/include/bcmutils.h~ 2011-10-22 18:55:54.000000000 +0200
+++ /src/include/bcmutils.h 2013-02-21 09:08:19.947034424 +0100
@@ -555,7 +555,11 @@ extern void printbig(char *buf);
extern void prhex(const char *msg, uchar *buf, uint len);
extern bcm_tlv_t *BCMROMFN(bcm_next_tlv)(bcm_tlv_t *elt, int *buflen);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
extern bcm_tlv_t *BCMROMFN(bcm_parse_tlvs)(void *buf, int buflen, uint key);
+#else
+extern bcm_tlv_t *BCMROMFN(bcm_parse_tlvs)(const void *buf, int buflen, uint key);
# Contributor: Austin ( doorknob60 [at] gmail [dot] com )
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=broadcom-wl
pkgver=5.100.82.112
pkgrel=10
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
url='http://www.broadcom.com/support/802.11/linux_sta.php'
arch=('i686' 'x86_64')
license=('custom')
<?php
class WP {
private $methods = array(
'getPost',
'getPosts',
'newPost',
'editPost',
'deletePost',
@relu
relu / gist:4619374
Created January 24, 2013 09:53
Datepicker minDate follows another fields value.
<!--
You would first need to add id's to your date fields
Shortcodes would look like:
[date ... id:date1]
[date ... id:date2]
-->
<script>
jQuery(function($){
var $date1 = $('#date1'),
@relu
relu / wp-html-excerpt.php
Last active October 1, 2015 15:17
WordPress HTML excerpt
<?php
/**
* Add these few lines of code to your theme's
* functions.php to enable HTML excerpts
*
* Tested with WordPress 3.3.1
*/
remove_filter('get_the_excerpt', 'wp_trim_excerpt');