Skip to content

Instantly share code, notes, and snippets.

View kkszysiu's full-sized avatar
🦄
🧙🧙🧙┬─┬ ノ( ゜-゜ノ)🧙🧙🧙

Krzysztof Klinikowski kkszysiu

🦄
🧙🧙🧙┬─┬ ノ( ゜-゜ノ)🧙🧙🧙
View GitHub Profile
KONDY W PREAMPIE 220/63 wszystkie zastępujemy NIPPON CHEMICON LXV 1000/63 sa na aljegro.
C501,502-10uF/25-63V Wysokiej klasy np MUSE, Silmic,Cerafine,FG,FM pełno tego na allegro.
OR
C501, C502 na MKT 2,2uF ? (obecnie 4,7uF 25V)
R501,502-33KOhm.
R503,504-470-680Ohm dobrej jakosci nawet bezindukcyjne, one maja duzy związek z barwą dzwieku wzmacniacza.
@kkszysiu
kkszysiu / mysql2sqlite.sh
Created September 22, 2021 14:40 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
https://github.com/wheesir/Exercise-Bike-LCD/blob/main/Exercise_Bike_LCD_v1.0.ino
https://github.com/mgranell/trainer-blebridge
https://github.com/BigJinge/Multi-BLE-Sensor/blob/master/Multi_BLE_Sensor_0_4_6.ino
https://github.com/CaffeineAU/BLESpinBike
https://github.com/Tschucker/ArduinoBLE-Cycle-Power-Service
https://gist.github.com/arpruss/d8a26cb8121be7dcdff33c3b07cc79bf
https://github.com/imwitti/FootpodMimic
@kkszysiu
kkszysiu / launch.sh
Created August 3, 2020 19:20
Tamriel Trade Centre prices update script for macOS / OSX
#!/usr/bin/env bash
wget https://eu.tamrieltradecentre.com/download/PriceTable -O PriceTable.zip
unzip PriceTable.zip -d ./PriceTable/
cp ./PriceTable/*.lua ~/Documents/Elder\ Scrolls\ Online/live/AddOns/TamrielTradeCentre/
rm PriceTable.zip
rm -rf PriceTable
@kkszysiu
kkszysiu / enc_dec_test.py
Created February 20, 2020 02:26 — forked from justinfx/enc_dec_test.py
Speed test of common serializers on python 2.7.2 (pickle, cPickle, ujson, cjson, simplejson, json, yajl, msgpack)
"""
Dependencies:
pip install tabulate simplejson ujson yajl msgpack
"""
from timeit import timeit
from tabulate import tabulate
setup = '''d = {
'words': """
@kkszysiu
kkszysiu / youtube api video category id list
Created August 13, 2018 01:26 — forked from dgp/youtube api video category id list
youtube api video category id list
2 - Autos & Vehicles
1 - Film & Animation
10 - Music
15 - Pets & Animals
17 - Sports
18 - Short Movies
19 - Travel & Events
20 - Gaming
21 - Videoblogging
22 - People & Blogs
RootConfigFilename = "/storage/emulated/0/Android/data/com.ryzom/files/client_default.cfg";
SelectedSlot = 0;
FullScreen = 1;
Width = 1080;
Height = 1920;
Frequency = 0;
Depth = 32;
LandscapeTileNear = 50.0000000000;
LandscapeThreshold = 1000.0000000000;
Vision = 500.0000000000;
FILES=`find . -name "*.java"`
for f in $FILES
do
filename="${f%.*}"
if file -I $f | grep -wq "iso-8859-1" || file -I $f | grep -wq "us-ascii" ; then
echo -n "$f"
mkdir -p converted
cp $f ./converted
@kkszysiu
kkszysiu / SimpleAuthServer.py
Created February 18, 2016 23:07 — forked from fxsjy/SimpleAuthServer.py
SimpleAuthServer: A SimpleHTTPServer with authentication
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import sys
import base64
key = ""
class AuthHandler(SimpleHTTPRequestHandler):
''' Main class to present webpages and authentication. '''
def do_HEAD(self):
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 17 columns, instead of 4 in line 6.
id,device,timestamp,received_at,lon,lat,duration,speed_max,speed_avg,acceleration,braking,holes,cornering,plug_inserted,power_available,in_motion,engine_running
5624f17e758a771993d30d65,862950023269312,2015-10-19 13:33:56,2015-10-19 13:34:54.345000,0.04281166666666667,50.79389333333334,0,0,0,0,0,0,0,true,true,false,true
5624f17e758a771993d30d67,862950023269312,2015-10-19 13:34:13,2015-10-19 13:34:54.446000,0.044226666666666664,50.79376333333333,17,43,11,0,0,0,0,true,true,false,true
5624f17e758a771993d30d68,862950023269312,2015-10-19 13:34:19,2015-10-19 13:34:54.518000,0.04478166666666667,50.79375,6,40,27,0,0,0,0,true,true,false,true
5624f17e758a771993d30d6a,862950023269312,2015-10-19 13:34:20,2015-10-19 13:34:54.636000,0.04513833333333333,50.79374833333333,0,0,0,0,0,0,0,true,true,false,true
5624f17e758a771993d30d6c,862950023269312,2015-10-19 13:34:34,2015-10-19 13:34:54.836000,0.047065,50.793978333333335,14,51,38,0,0,0,0,true,true,false,true
5624f17e758a771993d30d6d,862950023269312,2015-10-19 13:34:44,2015-10