Skip to content

Instantly share code, notes, and snippets.

View krobertson's full-sized avatar

Ken Robertson krobertson

View GitHub Profile
@probonopd
probonopd / linux_fusion360.md
Last active November 9, 2023 15:22
Autodesk Fusion 360 on Linux

Autodesk Fusion 360 on Linux

In the Web Browser

Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.

https://myhub.autodesk360.com

On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED.

@bzub
bzub / rook-osd-ds.yaml
Last active March 23, 2017 20:00
Modified Rook OSD DaemonSet
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: rook
role: osd
rook_cluster: rookcluster
name: osd
spec:
selector:
#!/bin/vbash
# CONFIG
wan=dhcp
lan=192.168.1.1
lan_segment=192.168.1.0
vpn_segment=192.168.5.0
domain=apertoire.org
lease_start=192.168.1.200
lease_stop=192.168.1.245
@atmos
atmos / disable-java-safari-6.md
Last active December 13, 2015 23:29
Disable Java in Safari 6

Disable Java in Safari 6

I keep coming across articles talking about browser vulnerabilities related to java. Apparently I don't have to worry about Chrome or Firefox, but it appears Java is enabled by default in Safari.

I had a hard time finding documentation on the correct safari defaults to set to disable Java in Safari 6.

If you really need to run java for some shit, keep it off by default and turn it on when needed.

To Disable

@priestjim
priestjim / chef-noatime-and-swap.rb
Created November 29, 2012 19:01
A quick (hacky) Chef recipe for adding noatime and a swap file in case a swap file does not exist
# Enable noatime on local ext3/4 & xfs filesystems
fstab = File.open('/etc/fstab',"r")
newlines = Array.new
needremount = Array.new
ihaveswap = false
fstab.each do |line|
# Tokenize each fstab line with a space separator
tokens = line.split
if tokens[2] == "swap"
@robinsmidsrod
robinsmidsrod / _INSTALL.md
Last active March 21, 2024 23:00
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@geemus
geemus / addendum.markdown
Created September 1, 2011 20:26
API - Assumptions Probably Incorrect
@ujh
ujh / commit-msg
Created April 1, 2011 08:01
git commit hook that modifies the commit message to include links to Pivotal Tracker stories when issue number is included
#!/usr/bin/env ruby
PREFIX = "https://www.pivotaltracker.com/story/show/"
fn = ARGV.first
sids = []
File.open(fn) do |f|
f.each do |line|
next if line =~ /^#/
line.scan(/\[[^#]*#(\d+)\s*\]/) {|a| sids += a }
end
# Monkeypatch to disable connection pooling in ActiveRecord
module ActiveRecord
module ConnectionAdapters
class ConnectionPool
def checkout
c = ActiveRecord::Base.send(spec.adapter_method, spec.config.dup)
c.verify!
c
end