Skip to content

Instantly share code, notes, and snippets.

Piotr Wittchen pwittchen

Block or report user

Report or block pwittchen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pwittchen
pwittchen / t470s.md
Created Apr 24, 2018 — forked from okapies/t470s.md
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
View 5 minute local Kubernetes Cluster on Mac
# Reference:
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/
# install homebrew and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install virtualbox
brew cask install virtualbox
# install dockertoolbox
@pwittchen
pwittchen / coworking.md
Created Jan 27, 2018 — forked from mackuba/coworking.md
Lista coworkingów w Krakowie
View coworking.md

Coworking w Krakowie

Studio Kreatywnej Współpracy

http://www.studioprzylea.pl

Adres: ul. Królewska 2/2

  • miesiąc - 420 + VAT
  • 10 dni - 230 + VAT
@pwittchen
pwittchen / mysql-docker.sh
Created Jan 12, 2018 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
View mysql-docker.sh
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@pwittchen
pwittchen / Custom-Jan-2018_blue_green_orange.json
Created Jan 4, 2018
Custom Color Scheme for Tilix Terminal on Ubuntu Linux (based on Monokai Dark)
View Custom-Jan-2018_blue_green_orange.json
{
"background-color": "#2E3436",
"badge-color": "#FFFFFF",
"bold-color": "#FFFFFF",
"comment": "",
"cursor-background-color": "#000000",
"cursor-foreground-color": "#FFFFFF",
"foreground-color": "#BABDB6",
"highlight-background-color": "#000000",
"highlight-foreground-color": "#FFFFFF",
@pwittchen
pwittchen / caqi.sh
Last active Dec 22, 2017
This script is responsible for getting Common Air Quality Index (CAQI) in Poland basing on airly.eu sensors. It works with BitBar on macOS and Argos on Linux with Gnome 3.
View caqi.sh
#!/usr/bin/env bash
# This script is responsible for getting Common Air Quality Index (CAQI) in Poland basing on airly.eu sensors
# Replace API_KEY with your key, YOUR_LATITUDE and YOUR_LONGITUDE with your location
# get your API key at: https://developer.airly.eu/
# this script can be used with bitbar on macOS: https://github.com/matryer/bitbar
# and argos on Linux with Gnome 3: https://github.com/p-e-w/argos
# requirements: curl and jq (on Linux it works just with jq - on macOS I needed to add /usr/local/bin/jq)
@pwittchen
pwittchen / JavaPasswordSecurity.java
Created Nov 20, 2017 — forked from jtan189/JavaPasswordSecurity.java
Java PBKDF2 Password Hashing Code
View JavaPasswordSecurity.java
import java.security.SecureRandom;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.SecretKeyFactory;
import java.math.BigInteger;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
/*
* PBKDF2 salted password hashing.
* Author: havoc AT defuse.ca
@pwittchen
pwittchen / logback.xml
Created Oct 22, 2017 — forked from vazexqi/logback.xml
sfl4j logging with Groovy using Gradle to manage dependencies (logback.xml) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
View logback.xml
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %ms
@pwittchen
pwittchen / install-firefox-nightly.md
Created Oct 7, 2017 — forked from brenopolanski/install-firefox-nightly.md
Install Firefox Nightly in Ubuntu via PPA
View install-firefox-nightly.md

via: http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html

Add the Mozilla Daily PPA (available for Ubuntu 11.04, 10.10 and 10.04) and install Firefox Nightly using the commands below:

$ [sudo] add-apt-repository ppa:ubuntu-mozilla-daily/ppa
$ [sudo] apt-get update
$ [sudo] apt-get install firefox-trunk

Since this is a daily builds PPA, it's nowhere near stable so use it at your own risk!

@pwittchen
pwittchen / readme.md
Created May 5, 2017 — forked from maxogden/readme.md
list of interdisciplinary open source conferences
View readme.md

Interdisciplinary Open Source Community Conferences

Criteria

  • Must be an event that someone involved in open source would be interested in attending
  • Must be a community oriented event (no corporate owned for-profit events here please)
  • Can't be about a specific language/framework.

Leave suggestions in the comments below

You can’t perform that action at this time.