Skip to content

Instantly share code, notes, and snippets.

View istio-1.8.0.patch
diff --git a/.SRCINFO b/.SRCINFO
index 314521a..93d49ee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = istio-bin
pkgdesc = An open platform to connect, manage, and secure microservices
- pkgver = 1.7.4
+ pkgver = 1.8.0
pkgrel = 1
@icub3d
icub3d / main.go
Last active Aug 10, 2018
Lights Out Solver Algorithm
View main.go
package main
import (
"bytes"
"fmt"
"os"
)
func main() {
if len(os.Args) < 2 || len(os.Args[1]) != 25 {
View publish.go
package main
import (
"archive/tar"
"compress/gzip"
"crypto/md5"
"fmt"
"io"
"log"
"os"
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View designer.html
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/iconsets/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@icub3d
icub3d / colorize.sh
Last active Aug 29, 2015 — forked from anonymous/colorize.sh
Automatically change the colors of glyphicons.
View colorize.sh
#!/bin/bash
while read NAME HEX; do
for i in `find -name "*-white.svg"`; do
FILENAME=`echo $i | sed -e "s/white/$NAME/g"`
sed -e "s/#FFFFFF/$HEX/g" $i >$FILENAME
PNG=`echo $FILENAME | sed -e "s/svg/png/g"`
convert $FILENAME -transparent white $PNG
done
for i in "" "filetypes" "halflings" "social"; do
WHERE="_$i"
@icub3d
icub3d / example_wrapio.go
Created Jan 25, 2014
An example of wrapio
View example_wrapio.go
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"github.com/icub3d/wrapio"
"io"
@icub3d
icub3d / mysort.go
Created Dec 4, 2013
Interface Performance
View mysort.go
package mysort
func min(a, b int) int {
if a < b {
return a
}
return b
}
func insertionSort(data []int, a, b int) {
@icub3d
icub3d / main.go
Last active Oct 11, 2016
An example of using doozer to keep track of your groupcache instances. If you want to run it yourself, you'll want to: go get github.com/golang/groupcache go get github.com/ha/doozer
View main.go
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"github.com/golang/groupcache"
"github.com/ha/doozer"
"io"
@icub3d
icub3d / main.go
Created Aug 8, 2013
An example of using GridFS in MongoDB.
View main.go
package main
import (
"bufio"
"fmt"
"io"
"labix.org/v2/mgo"
"os"
"path"
"strings"