Skip to content

Instantly share code, notes, and snippets.

View gornostal's full-sized avatar

Oleksandr Gornostal gornostal

  • Kyiv, UA
View GitHub Profile
@gornostal
gornostal / phones.txt
Created February 25, 2022 07:32
phones
+380 (99) 047 11 02 - Slava
+380 (66) 435 53 36 - Mom
+380 93 308 1268 - Dad
+380 99 609 1473 - Marina
#!/bin/bash
set -ex
cd `dirname $0`
cd ..
ROOT_DIR=$(pwd)
APP=utest
LOWERAPP=${APP,,}
@gornostal
gornostal / Dockerfile
Last active May 22, 2023 19:10
React JS app in Docker with Nginx
FROM node:12-alpine as build
WORKDIR /www
ENV REACT_APP_KEYCLOAK_URL %REACT_APP_KEYCLOAK_URL%
ENV REACT_APP_KEYCLOAK_REALM %REACT_APP_KEYCLOAK_REALM%
COPY package*json ./
RUN npm install
COPY . .
RUN npm run build
@gornostal
gornostal / Unicode.md
Created November 22, 2015 10:15
Python 2.7. Unicode Errors Simply Explained

Python 2.7. Unicode Errors Simply Explained

I know I'm late with this article for about 5 years or so, but people are still using Python 2.x, so this subject is relevant I think.

Some facts first:

  • Unicode is an international encoding standard for use with different languages and scripts
  • In python-2.x, there are two types that deal with text.
    1. str is an 8-bit string.
  1. unicode is for strings of unicode code points.
@gornostal
gornostal / steps.sh
Created September 6, 2017 13:28
Fedora. Install trusted certificate into the system (p7b file)
openssl pkcs7 -in mycert.p7b -inform DER -print_certs -out mycert.pem
sudo cp mycert.pem /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust
@gornostal
gornostal / README.md
Last active May 2, 2024 21:24
Ulauncher Color Themes

This will be a temporary site for sharing Ulauncher color themes

When posting a theme make sure it has

  • title (theme name or whatever)
  • link to a gist or github repo with theme files
  • screenshot attached (just drag an image onto a comment area)