Skip to content

Instantly share code, notes, and snippets.

View sozercan's full-sized avatar
:shipit:

Sertaç Özercan sozercan

:shipit:
View GitHub Profile
@sozercan
sozercan / kind-metrics-server.yaml
Created January 24, 2020 19:48 — forked from hjacobs/kind-metrics-server.yaml
Metrics Server API deployment manifests for Kubernetes kind
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system:aggregated-metrics-reader
labels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules:
- apiGroups: ["metrics.k8s.io"]
FROM ubuntu:16.04
RUN apt-get update && apt-get install software-properties-common python-software-properties -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get install -y curl libcurl3-dev unzip wget libstdc++6 && \
apt-get clean
RUN echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | tee /etc/apt/sources.list.d/tensorflow-serving.list && \
curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add - && \
#!/bin/bash
content=`cat /var/lib/dcos/mesos-slave-common | grep gpu -c`
if [ $content -gt 0 ]; then
apt-get update
apt-get install -y gcc
apt-get install -y make
apt-get install -qqy linux-headers-`uname -r`
@sozercan
sozercan / autopart.sh
Last active July 28, 2023 20:19 — forked from trentmswanson/autopart.sh
Linux bash script to partition and format all data disks in azure
#!/bin/bash
# An set of disks to ignore from partitioning and formatting
BLACKLIST="/dev/sda|/dev/sdb"
# Base directory to hold the data* files
DATA_BASE="/mnt"
usage() {
echo "Usage: $(basename $0) <new disk>"
}
@sozercan
sozercan / README.md
Created October 20, 2016 17:30 — forked from denvazh/README.md
Scheduled update for homebrew

Scheduled updates for homebrew

This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.

It will run in the following way:

  • brew update every day at 12:10
  • brew upgrade every day at 12:20

How to install

@sozercan
sozercan / macos-sierra-commands.sh
Created July 7, 2016 21:13 — forked from ProfFrnswrth/macos-sierra-commands.sh
Updating to macOS Sierra Developer Preview 1 directly from Apple
## based on https://github.com/lioonline/OS-X-El-Capitan
## pkg file link - http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/diu414781394017735583.pkg
# !!IMPORTANT!! Run this from folder where you have downloaded or copied diu414781394017735583.pkg file
#create a tmp folder
mkdir sierraRoot && cd sierraRoot
#create a folder structure to match apple server
sudo mkdir -p ./apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/