Skip to content

Instantly share code, notes, and snippets.

Avatar

Piotr Wittchen pwittchen

View GitHub Profile
@ejhsu
ejhsu / grafana.json
Created Jan 5, 2019
grafana dashboard example
View grafana.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@amay077
amay077 / ObservableExtensions.kt
Created Nov 9, 2017
Convert RxJava:Observable<T> to AAC:LiveData<T>
View ObservableExtensions.kt
package your.awesome.package
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import io.reactivex.Observable
import io.reactivex.disposables.Disposable
fun <T> Observable<T>.toLiveData() : LiveData<T> {
return object : MutableLiveData<T>() {
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created Sep 16, 2017 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04
View install virtualenv ubuntu 16.04.md

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@okapies
okapies / t470s.md
Last active Sep 26, 2018
Ubuntu 16.04 on ThinkPad T470s
View t470s.md

This is a document describing how to install Ubuntu 16.04 LTS on ThinkPad T470s.

My Hardware

  • CPU: Intel Core i7-7600U (2.80GHz, 4MB cache)
  • Graphics: Intel HD Graphics 620
  • Display: 14” WQHD (2560 X 1440) IPS Non-Touch Anti-Glare
  • Memory: 24GB DDR4 2133 MHz (8GB Onboard + 16GB)
  • SSD: PCIe-NVMe 256G OPAL 2.0
  • Wireless: Intel Dual Band Wireless AC (2x2) 8265 Bluetooth 4.1
  • Fingerprint Reader
@mthenw
mthenw / README.md
Last active Oct 28, 2019
iTerm2 configuration
View README.md
View MainActivity.java
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@serkanh
serkanh / gist:23c73bdb1fc294ee9105f33ccc1f304e
Created Nov 14, 2016
Save tmux session via ascii cinema
View gist:23c73bdb1fc294ee9105f33ccc1f304e
asciinema rec -c "tmux attach -t 3"
@sniper7kills
sniper7kills / ELK-install.sh
Last active Feb 7, 2020
ELK-Install-Ubuntu-16.04
View ELK-install.sh
#/bin/bash
#Ask some info
echo -n "Enter ELK Server IP or FQDN: "
read eip
echo -n "Enter Admin Web Password: "
read adpwd
#Update System
sudo apt-get update
sudo apt-get upgrade -y
@conoro
conoro / hexo2hugo.sh
Created Jul 10, 2016
Hexo to Hugo converter
View hexo2hugo.sh
# code is from http://helw.net/2015/07/19/migrating-to-hugo-from-hexo/
# Ran fine on Windows 10 with MSysGit installed
# cd to directory with all the md files from Hexo
# bash hexo2hugo.sh
---
# ensure dates don't start with single quotes
for file in *; do awk '{
if ($1 == "date:") {
gsub("\047", "", $0); print;
} else {
@jarun
jarun / Travis CI local install
Created Jun 5, 2016
How to install Travis CI locally on Ubuntu 16.04
View Travis CI local install
sudo apt install ruby ruby-dev
sudo gem install travis
# install path: /var/lib/gems/
You can’t perform that action at this time.