Skip to content

Instantly share code, notes, and snippets.

View Lh4cKg's full-sized avatar
🐍
Working

Lasha Gogua Lh4cKg

🐍
Working
View GitHub Profile
@Lh4cKg
Lh4cKg / cmd.sh
Created April 27, 2016 08:58
Fedora 24/Centos 7 set locale LANG configuration in terminal output non-ASCII character
[innotec@innotec ~]$ export LANG=en_US.UTF-8
[innotec@innotec ~]$ sudo localectl set-locale LANG=en_US.UTF-8
[innotec@innotec ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
@Lh4cKg
Lh4cKg / teamviewer
Last active May 10, 2021 13:41
Howto Fix TeamViewer Daemon is not running | start teamviewerd on Fedora 24
[innotec@innotec ~]$ locate teamviewerd
/etc/init/teamviewerd.conf
/opt/teamviewer8/logfiles/install_teamviewerd.log
/opt/teamviewer8/tv_bin/teamviewerd
/opt/teamviewer8/tv_bin/script/teamviewerd.conf
/opt/teamviewer8/tv_bin/script/teamviewerd.service
/opt/teamviewer8/tv_bin/script/teamviewerd.sysv
/opt/teamviewer8/tv_bin/script/teamviewerdMint.conf
[innotec@innotec ~]$ sudo /opt/teamviewer/tv_bin/teamviewerd start
[innotec@innotec ~]$ teamviewer
@Lh4cKg
Lh4cKg / subl-shortcuts
Last active April 9, 2016 17:07
Sublime Text 3 Keyboard Shortcuts
# Sublime Text 3 Keyboard Shortcuts
## Text
CTRL-L: Select Entire Line
CTRL-D: Select Word
CTRL-SHIFT-A: Select text inside HTML Tags
CTRL-SHIFT-J: Select code that's indented to same level
CTRL-] / CTRL-[: Increase Indent / Decrease Indent
CTRL-SHIFT-V: Paste matching indentation
CTRL-CTRL-UP / CTRL-CTRL-DOWN: Move line up / Move Line down
@Lh4cKg
Lh4cKg / multi-git.md
Created April 9, 2016 16:47 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer.

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.

@Lh4cKg
Lh4cKg / install.sh
Last active May 21, 2021 17:39
Install and Configuration Python/Django/Virtualenv/Postgres/Nginx/uWSGI On CentOS 7
#!/bin/sh
# -*- MAINTAINER -*- Lasha Gogua [email protected]
# -*- RUN -*- $ bash install.sh
# system update and install epel package
yum install epel-release
# or
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
snake="""
.-=-. .--.
__ .' '. / " )
_ .' '. / .-. \ / .-'\
( \ / .-. \ / / \ \ / / ^
\ `-` / \ `-' / \ `-` /
\---` '.____.' `.____.'
2016
"""
@Lh4cKg
Lh4cKg / tmux-cheatsheet.markdown
Created March 31, 2016 18:20 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Python
-- IDLE
-- Pip
-- Virtuelenv
-- Django
-- etc.
Text Editor
-- Sublime Text 3
-- Package Control
@Lh4cKg
Lh4cKg / 1.bug
Last active March 21, 2016 10:02
python 3.3 ssl bug - undefined reference to `SSLv3_method`
building '_ssl' extension
gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -IInclude -I/usr/local/include -I/opt/Python-3.3.3/Include -I/opt/Python-3.3.3 -c /opt/Python-3.3.3/Modules/_ssl.c -o build/temp.linux-x86_64-3.3/opt/Python-3.3.3/Modules/_ssl.o
/opt/Python-3.3.3/Modules/_ssl.c: In function ‘context_new’:
/opt/Python-3.3.3/Modules/_ssl.c:1751:27: warning: implicit declaration of function ‘SSLv3_method’ [-Wimplicit-function-declaration]
ctx = SSL_CTX_new(SSLv3_method());
^
/opt/Python-3.3.3/Modules/_ssl.c:1751:27: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /opt/Python-3.3.3/Modules/_ssl.c:108:0:
/usr/include/openssl/ssl.h:2131:10: note: expected ‘const SSL_METHOD * {aka const struct ssl_method_st *}
@Lh4cKg
Lh4cKg / HTMLPrettify.sublime-settings
Last active August 26, 2016 13:50
Sublime Text 3 Configuration
{
"node_path": {
"linux": "/usr/bin/node",
},
"format_on_save": false,
"format_selection_only": true,
"print_diagnostics": true