Skip to content

Instantly share code, notes, and snippets.

View skull-squadron's full-sized avatar
💭
*aaS unreleased project in Elixir, Rust, Typescript, Kafka, and k8s

🏴‍☠️ skull-squadron

💭
*aaS unreleased project in Elixir, Rust, Typescript, Kafka, and k8s
  • (stealth)
  • ATX
  • 06:19 (UTC -06:00)
View GitHub Profile
$ chef --version
Chef Development Kit Version: 0.15.15
chef-client version: 12.11.18
delivery version: 0.0.23 (bf89a6b776b55b89a46bbd57fcaa615c143a09a0)
berks version: 4.3.5
kitchen version: 1.10.0
$ chef verify
Running verification for component 'berkshelf'
Running verification for component 'test-kitchen'
@smarr
smarr / truffle-material.md
Last active April 2, 2025 18:27
Truffle: Languages and Material
@perfectfoolish
perfectfoolish / InstallOracleJava8JDK.sh
Last active September 8, 2017 19:51
Oracle Java 8 JDK Downloads Page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Notice: Use the md5sum command line utility on Linux to verify the integrity of the downloaded file. Java SE Binaries Checksum: https://www.oracle.com/webfolder/s/digest/8u40checksum.html
# How To Install Java on CentOS and Fedora
# https://www.digitalocean.com/community/tutorials/how-to-install-java-on-centos-and-fedora
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u40-b26/jdk-8u40-linux-x64.tar.gz"
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u40-b26/jdk-8u40-linux-x64.rpm"
@toioski
toioski / UIButton+ClipBackgroundImageToBounds.swift
Last active August 29, 2015 14:17
Conversion to Swift of Barry Allard UIView+ClipBackgroundImageToBounds
//
// UIView+ClipBackgroundImageToBounds.m
//
// Created by Barry Allard on 2013-06-18.
// Copyright (c) 2013 Stealth Mode Industries LLC. All rights reserved.
//
// Based on http://stackoverflow.com/questions/262156/uiimage-rounded-corners
//
// MIT License
@lavalamp
lavalamp / The Three Go Landmines.markdown
Last active February 28, 2025 12:54
Golang landmines

There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.

All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.

  1. Loop variables are scoped outside the loop.

What do these lines do? Make predictions and then scroll down.

func print(pi *int) { fmt.Println(*pi) }
@cfr
cfr / main.c
Last active August 29, 2015 14:15
iOS kernel panic
// Content source: https://medium.com/@oleavr/diy-kernel-panic-os-x-and-ios-in-10-loc-c250d9649159
// HN thread: https://news.ycombinator.com/item?id=9085536
#include <unistd.h>
#include <mach/mach.h>
#include <mach-o/dyld.h>
extern kern_return_t mach_vm_protect(vm_map_t, mach_vm_address_t, mach_vm_size_t,
boolean_t, vm_prot_t);
@aktau
aktau / homebrew-llvm351-error.log
Created January 24, 2015 11:28
Failing homebrew/versions/llvm35 (3.5.1) build
llvm[6]: ======= Finished Linking Release+Asserts Unit test ClangApplyReplacementsTests (without symbols)
llvm[6]: Compiling UniqueHeaderNameTest.cpp for Release+Asserts build
if clang++ -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../../../include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../../../include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../clang-modernize -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../clang-apply-replacements/include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../include -I/private/tmp
hfm@giant [~/program/test-serf] [perl v5.21.2] [ruby 2.2.0preview1] [python 2.7.8]
$ puppet --version
/Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/gems/2.2.0/gems/puppet-3.7.1/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError)
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/gems/2.2.0/gems/puppet-3.7.1/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:197:in `<module:YAML>'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/gems/2.2.0/gems/puppet-3.7.1/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:132:in `<top (required)>'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/r
@revskill10
revskill10 / lopmonhoc.js.jsx
Created January 22, 2014 09:25
Integrate Datatable with React.js
/** @jsx React.DOM */
var LopMonHoc = React.createClass({
getInitialState: function(){
return {data: []}
},
loadData: function(){
$.ajax({
url: '/daotao/lops',
success: function(data){
require "net/https"
require "uri"
require 'json'
uri = URI.parse("https://www.howsmyssl.com/a/check")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
resp = JSON.parse(http.request(Net::HTTP::Get.new(uri.request_uri)).body)
puts JSON.pretty_generate(resp)