Skip to content

Instantly share code, notes, and snippets.

View pawelkl-zz's full-sized avatar

Paweł Kłosiewicz pawelkl-zz

View GitHub Profile
@pawelkl-zz
pawelkl-zz / mixer.sh
Created May 6, 2013 17:00
i3 volume control
#!/bin/bash
STEPS=10
STEP=$((65536/$STEPS))
SINK=1
MAXVOL=65536
STATE_FILE=.mute
ICON_NAME=""
MUTED=""
getMasterVolume ()
{
@pawelkl-zz
pawelkl-zz / zad1-rozw.sql
Created October 18, 2013 19:39
zadanie 1 - sql server 2012 - adventure works
--*******************************************************************
--ZADANIE 1
--*******************************************************************
-- Create simple database for Library (5 or six tables)
-- -add tables, keys, constraints (default, unique, etc)
-- define correct data types
-- define 3 any views (must be useful and logical)
--
@pawelkl-zz
pawelkl-zz / zad1-2.sql
Created October 19, 2013 09:57
sql1-2
use TSQL2012;
--*******************************************************************
--ZADANIE 2
--*******************************************************************
---------------------------------------------------------------------
-- Write a SELECT statement to return the contactname, contacttitle, AND companyname columns FROM the Sales.Customers table. Assign these columns with the aliases Name, Title, AND Company Name, respectively, in order to return more human-friendly column titles for reporting purposes.
---------------------------------------------------------------------
SELECT contactname AS 'Name', contacttitle AS 'Title', companyname AS 'Company Name'
FROM Sales.Customers;

na kolokwium część administracyjna -strategie backapów -przyznawanie uprawnień -indeksy -profiler (najmniej)

zadanie za 25pkt extra za backupy za połowę punktów do północy

Use [master];
GO
IF DB_ID('KSIEGARNA') IS NOT NULL DROP DATABASE KSIEGARNA;
GO
CREATE DATABASE KSIEGARNA;
GO
USE KSIEGARNA;
@pawelkl-zz
pawelkl-zz / config
Last active August 17, 2023 18:32
my i3 config
# http://i3wm.org/docs/userguide.html
# font pango: share tech mono, comfortaa, FontAwesome, octicons, Ionicons 10
# Lekton, NotCourierSans, SaxMono
font pango: Ubuntu Mono for Powerline, KlarTextMono, comfortaa, FontAwesome, octicons, Ionicons 11
# ubuntu 10
# ubuntu mono 11
smart_borders on
# on / no_gaps
# gaps inner 5
@pawelkl-zz
pawelkl-zz / gist:c31f702c99a29c3a9c22
Created December 11, 2014 16:04
Eloquent Javascript - Answers
We couldn’t find that file to show.
@pawelkl-zz
pawelkl-zz / answers.js
Last active August 29, 2015 14:11
Answers for Eloquent Javascript Book
// Answers
// 1 # Looping a triangle
// # http://eloquentjavascript.net/02_program_structure.html#p_pP646YLlGy
var output = "";
for (var i = 1; i < 10; i++) {
output += "#";
console.log(output);
}
@pawelkl-zz
pawelkl-zz / config
Last active March 10, 2017 00:33
.i3/config
# http://i3wm.org/docs/userguide.html
# font pango: share tech mono, comfortaa, FontAwesome, octicons, Ionicons 10
# Lekton, NotCourierSans, SaxMono
font pango: Ubuntu Mono for Powerline, KlarTextMono, comfortaa, FontAwesome, octicons, Ionicons 11
# ubuntu 10
# ubuntu mono 11
smart_borders on
# on / no_gaps
# gaps inner 5
@pawelkl-zz
pawelkl-zz / github-lost
Created April 5, 2015 11:36
access-to-github-lost :(
GITHUB help me I've broke my Galaxy SII and have recovery codes on it (very stupid way of save recovery codes...) :/
Why do You don't allow TOTP thru SMS *and* authenticator app simultaneously :/
I can send go Gist thru token authentication.. but I can't log in thru normal interface :(