Skip to content

Instantly share code, notes, and snippets.

@kozak127
kozak127 / main.py
Created April 16, 2023 15:43
Microsoft ToDo -> Google Calendar Tasks migration script
from __future__ import print_function
import os.path
import json
import time
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from google_auth_oauthlib.flow import InstalledAppFlow
from googleapiclient.discovery import build
import keyboard
import time
import random
while True:
keyboard.press_and_release("F13")
interval = random.randint(1, 179)
time.sleep(interval)
@kozak127
kozak127 / CustomRsqlVisitor.java
Created May 5, 2020 22:27
RSQL JPA Specification SpringBoot nestedProperties
import cz.jirutka.rsql.parser.ast.AndNode;
import cz.jirutka.rsql.parser.ast.ComparisonNode;
import cz.jirutka.rsql.parser.ast.OrNode;
import cz.jirutka.rsql.parser.ast.RSQLVisitor;
import org.springframework.data.jpa.domain.Specification;
public class CustomRsqlVisitor<T> implements RSQLVisitor<Specification<T>, Void> {
private RsqlSpecificationBuilder<T> builder;
@kozak127
kozak127 / default.pa
Last active August 29, 2015 13:57
PulseAudio config
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
#WINDOW VALUES
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_argb_visual yes
#VISUAL VALUES
override_utf8_locale yes