Skip to content

Instantly share code, notes, and snippets.

View huseyin's full-sized avatar

Hüseyin Tekinaslan huseyin

View GitHub Profile
@huseyin
huseyin / README.md
Created January 5, 2017 13:21 — forked from dergachev/README.md
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@huseyin
huseyin / bbb-api.rb
Last active December 29, 2016 20:48
BigBlueButton API test
require 'bigbluebutton_api'
require 'json'
BBB_URL = ENV['BBB_URL']
BBB_SECRET = ENV['BBB_SECRET']
bbb_api = BigBlueButton::BigBlueButtonApi.new(BBB_URL, BBB_SECRET)
puts JSON.pretty_generate(bbb_api.get_meetings)
@huseyin
huseyin / go.yaml
Last active August 6, 2016 22:34
dart go example
image: ubuntu:latest
name: main-go
directives:
- ["mkdir", "/root/gopath"]
env: ["GOPATH=/root/gopath"]
deps:
lang: "deb"
packages:
- golang
@huseyin
huseyin / coffee.yaml
Last active August 6, 2016 22:12
dart coffee example
container: "debian"
name: "coffee"
tag: "americano"
workdir: "/root/coffee"
deps:
lang: "deb"
packages:
- coffee
- milk
- glass
@huseyin
huseyin / dart-report.json
Last active August 6, 2016 11:00
"dart" projesi rapor değişkenleri
{
"id": "<container-id>",
"container": "<name>",
"status": "<fail|success>",
"start_time": "<time>",
"end_time": "<time>",
"elapsed_time": "<time>",
"sources": [
"used_source_0",
"used_source_1",
@huseyin
huseyin / dart-student.yaml
Created August 5, 2016 16:55
"dart" projesi yapılandırma şablonu (öğrencinin kullanabileceği)
name: "<container-name>"
image: "<container-image>"
tag: "<container-tag>"
cmd: ["<cmd>", "[args..]"]
env: ["FOO=BAR"]
workdir: "<directory>"
user: "<nick-name>"
email: "<email>"
@huseyin
huseyin / dart-system.yaml
Created August 5, 2016 16:43
"dart" projesinin yapılandırma şablonu (sistemin kullanacağı)
name: "<container-name>"
image: "<container-image>"
tag: "<container-tag>"
cmd: ["<cmd>", "[args..]"]
env: ["FOO=BAR"]
workdir: "<directory>"
files:
- "file-1"
- "file-2"
remote:

MacBook Pro 13 Retina Debian Kurulumu

Disk bölümlendirmesi

  1. "Disk İzlencesi" kullanılır

  2. "Apple SSD" diski olası hatalara karşı öncelikle onarılmalıdır

  • "İlk yardım" menüsü ile onarım yapılır
#!/usr/bin/env ruby
# encoding: utf-8
class Hash
def make_attr
each_pair do |key, value|
self.class.send :define_method, key.to_s, Proc.new { value }
end
end
# munge PATH
pathmunge() {
case ":${PATH}:" in *:"$1":*) return 0 ;; esac
[ "$2" = after ] && PATH=$PATH:$1 || PATH=$1:$PATH
}