Skip to content

Instantly share code, notes, and snippets.

View timchenkomo's full-sized avatar

Timchenko Mikhail timchenkomo

  • ASCON
  • Kolomna, Moscow Oblast, Russia
View GitHub Profile

Configuring Qt 6.x and CMake for windows 10

If you want to create a redistributable installer for a Qt app with Cmake then youve come to the right place... I ve been struggling to make Qt work with cmake on windows, and finally figure out something that works:

  1. Go ahead and download Qt: https://www.qt.io/download-qt-installer

  2. Start the install and select "Custom installation" image11

@timchenkomo
timchenkomo / java-hibernate-sqlite.md
Created February 28, 2023 12:56 — forked from rppowell-lasfs/java-hibernate-sqlite.md
Java Hibernate-Sqlite Simple Example 2018-04-22

Java Hibernate/Sqlite Example

Dependencies

// https://mvnrepository.com/artifact/org.hibernate/hibernate-core
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.2.16.Final'

// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.21.0.1'
@quinnjr
quinnjr / README.md
Last active July 31, 2025 19:03
How to easily add environment variables to an Angular application

How to easily add environment variables to an Angular application

This guide assumes that you already have an angular application set up by ng create and are using Angular CLI for compilation.

Other guides that I've read rely upon re-writing your environments/environment.ts|environment.prod.ts files with each compilation. I find this to be completely unnecessary when angular's internal use of webpack can just be extended to include environment variables.

1. Add @angular-builders/custom-webpack to your dev-dependencies

@windsting
windsting / starting-postgresql-in-windows-without-install.md
Created September 20, 2018 10:50
Starting Postgresql in Windows without Install

Starting Postgresql in Windows without Install

Problem

This is a question that comes up quite often by windows users, so thought we would share how we normally do it. The question is

Can you run a PostgreSQL server on your windows desktop/server box without having to install anything?

The answer is

@rdnvndr
rdnvndr / OracleConnect.md
Last active January 17, 2020 14:47
Oracle database connection

Oracle database connection

┌──────────────┬────────────────────────────────────────────────┐
│  clienthost  │                                                │
├──────────────┘                                                │
│   $ sqlplus username/password@ORCL                            │
│                                │                              │
│                                ├ Naming method                │
│   ┌────────────────────────────┴───────────────────┐          │
│   │ FILE: $ORACLE_HOME/network/admin/sqlnet.ora    │          │ 
@rppowell-lasfs
rppowell-lasfs / java-hibernate-sqlite.md
Last active March 10, 2024 19:12
Java Hibernate-Sqlite Simple Example 2018-04-22

Java Hibernate/Sqlite Example

Dependencies

// https://mvnrepository.com/artifact/org.hibernate/hibernate-core
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.2.16.Final'

// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.21.0.1'
@neretin-trike
neretin-trike / pug.md
Last active October 16, 2025 10:04
Туториал по HTML препроцессору Pug (Jade)
@ajdruff
ajdruff / fix-git-line-endings
Last active October 13, 2025 19:09
Forces all line endings to LF in your git repo.
#####################
#
# Use this with or without the .gitattributes snippet with this Gist
# create a fixle.sh file, paste this in and run it.
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF)
# This Gist normalizes handling by forcing everything to use Unix style.
#####################
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF
@winebarrel
winebarrel / pg_show_grants.sql
Last active July 16, 2025 19:02
show grants for PostgreSQL
select
pg_user.usename,
t1.nspname,
t1.relname,
relacl.privilege_type,
relacl.is_grantable
from (
select
pg_namespace.nspname,
pg_class.relname,
@ygotthilf
ygotthilf / jwtRS256.sh
Last active October 19, 2025 16:19
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub