Skip to content

Instantly share code, notes, and snippets.

Łukasz Żarnowiecki dolohow

  • Cracow, Poland
Block or report user

Report or block dolohow

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
@dolohow
dolohow / ctest.txt
Last active Feb 19, 2019
Oracle test for Solaris team
View ctest.txt
> 1) Write a C (C99) program which reads a standard input and prints each line in reversed order. Assume '\n' as line separator. Do not assume limit of number of character per line. Example:
>
> $ printf "123\nhello\n" | ./a.out
> 321
> olleh
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
View paranthesis_parser.py
def parse(string):
tokens = []
for char in string:
try:
if char == '(':
tokens.append('(')
elif char == '[':
tokens.append('[')
elif char == ']':
if tokens.pop() != '[':
@dolohow
dolohow / lspci
Created Dec 15, 2018
lspci Huawei Matebook D 14 Ryzen
View lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15d0
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 15d0
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 15d1
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 15d1
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 25
@dolohow
dolohow / subtitles_download.py
Last active Feb 18, 2019
subtitles_download.py
View subtitles_download.py
#!/usr/bin/python2
import random
import string
import md5
import chardet
import sys
import urllib
import os
import glob
View allegro.js
// ==UserScript==
// @name Auction script
// @version 0.1
// @description Improve auction services experience
// @author Łukasz Żarnowiecki
// @grant GM_registerMenuCommand
// @grant GM_openInTab
// @grant GM_xmlhttpRequest
// @match *://allegro.pl/*
// @match *://*.ebay.pl/*
View closure.js
function add(x, y) {
return x + y;
}
function mul(x, y) {
return x * y;
}
function make(arg) {
var arr = [];
View background.go
package main
import (
"fmt"
"os"
"time"
)
func cancel(abort chan bool) {
fmt.Println("Exit (y/n)")
View rsync-backup-systemd.service
[Unit]
Description=Backups via rsync
[Service]
ExecStart=/bin/true
ExecStop=/usr/bin/rsync -aAX --exclude-from=/mnt/backup/ryszard/.exclude /home/ryszard /mnt/backup
Type=oneshot
RemainAfterExit=yes
[Install]
View channels.go
package main
import (
"fmt"
"os"
"time"
)
func main() {
c := make(chan int)
View _wizard.sass
&::after
content: ''
position: absolute
width: 100%
background-color: $dark-gray
height: 2px
left: 0
top: 14px
You can’t perform that action at this time.