Skip to content

Instantly share code, notes, and snippets.

View Lysak's full-sized avatar
🎯
Focusing

Dmytrii Lysak

🎯
Focusing
View GitHub Profile
@Lysak
Lysak / cloudSettings
Last active December 16, 2021 15:29
Visual Studio Code Sync Settings Gist
{"lastUpload":"2021-12-16T15:29:36.285Z","extensionVersion":"v3.4.3"}
@Lysak
Lysak / redshift.conf
Last active October 2, 2017 08:03
Redshift config for Vinnitssa, Ukraine (/$HOME/.config/redshift.conf) ~/.config/redshift.conf
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=6500
temp-night=3400
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1
@Lysak
Lysak / index.php
Last active September 9, 2017 10:37
PHP likes. Complete code using PDO
Complete code using PDO
db_params.php:
<?php
return array(
'host' => 'localhost',
'dbname' => 'dbname',
'user' => 'root',
'password' => 'password'
);
@Lysak
Lysak / .bashrc
Created October 26, 2017 16:42
.bashrc
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
alias st='git status'
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Alignment",
"All Autocomplete",
@Lysak
Lysak / friGate3_site_list.txt
Last active October 29, 2020 20:28
friGate3 site list for Ukraine
ip.fri-gate.org
*.2ip.ru [RU]
*.1tvcrimea.ru
*.2ch.hk
*.adfox.ru
*.antifashist.com
*.antimaydan.info
*.apiok.ru
*.attachmail.ru
*.auto.ru
@Lysak
Lysak / gmail_enter_animation.html
Last active June 20, 2018 08:51
gmail_enter_animation
<!DOCTYPE html>
<html lang="uk">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gmail</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google" value="notranslate">
<meta name="application-name" content="Gmail">
<meta name="description" content="Електронна пошта в стилі Google">
<meta name="application-url" content="https://mail.google.com/mail/u/0">
@Lysak
Lysak / font-stacks.css
Created June 21, 2018 06:30 — forked from ct27stf/font-stacks.css
Similar looking fonts for Windows, Linux, Mac
.mono-font-stack {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}
.times-font-stack {
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
}
.modern-font-stack {
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
@Lysak
Lysak / ttf-vista-fonts-installer.sh
Last active June 21, 2018 06:47 — forked from maxwelleite/ttf-vista-fonts-installer.sh
Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
#!/bin/bash
# Author: Maxwel Leite
# Website: http://needforbits.wordpress.com/
# Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
# Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007.
# These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas.
# Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today.
# Dependencies: wget, fontforge and cabextract
# Note: Microsoft no longer provides the PowerPoint Viewer 2007 (v12.0.4518.1014) or any version anymore for download
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic
@Lysak
Lysak / commands.txt
Last active December 7, 2018 12:57
linux commands
## for php 7.0 ##
sudo apt install php7.0 php7.0-fpm php7.0-mysql php7.0-sqlite3 php7.0-bcmath php7.0-gd php7.0-odbc php7.0-sybase php7.0-bz2 php7.0-gmp php7.0-opcache php7.0-tidy php7.0-cgi php7.0-imap php7.0-pgsql php7.0-xml php7.0-cli php7.0-interbase php7.0-phpdbg php7.0-xmlrpc php7.0-common php7.0-intl php7.0-pspell php7.0-xsl php7.0-curl php7.0-json php7.0-readline php7.0-zip php7.0-dba php7.0-ldap php7.0-recode php7.0-dev php7.0-mbstring php7.0-snmp php7.0-enchant php7.0-mcrypt php7.0-soap
## end ##
## for php 7.1 ##
sudo apt install php7.1-bcmath php7.1-gd php7.1-mysql php7.1-sqlite3 php7.1-bz2 php7.1-gmp php7.1-odbc php7.1-sybase php7.1-cgi php7.1-imap php7.1-opcache php7.1-tidy php7.1-cli php7.1-interbase php7.1-pgsql php7.1-xml php7.1-common php7.1-intl php7.1-phpdbg php7.1-xmlrpc php7.1-curl php7.1-json php7.1-pspell php7.1-xsl php7.1-dba php7.1-ldap php7.1-readline php7.1-zip php7.1-dev php7.1-mapi php7.1-recode php7.1-enchant php7.1-mbstring php7.1-snmp php7.1-fpm php7.1-mcrypt php7.1-soap