Skip to content

Instantly share code, notes, and snippets.

View anton-petrov's full-sized avatar
:octocat:
🥷

Anton Petrov anton-petrov

:octocat:
🥷
View GitHub Profile
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version"
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version"
export COLORTERM="truecolor"
source ~/.bash-powerline.sh
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version"
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version"
if [ -f ~/.bash_powerline01.sh ]; then
. ~/.bash_powerline01.sh
fi
@anton-petrov
anton-petrov / pyenv_macos.bash
Last active February 26, 2019 17:18 — forked from excenter/rune.bash
macOS pyenv + homebrew initial install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
export VERSION="3.7.2"
export LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include"
export CFLAGS="-Ofast -I$(xcrun --show-sdk-path)/usr/include"
xcode-select --install
brew update
brew upgrade
brew install bash
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
chsh -s /usr/local/bin/bash
echo $BASH && echo $BASH_VERSION
$ vim /sys/bus/thunderbolt/devices/0-0/0-1/authorized
https://greenroomrobotics.com/2019/10/29/egpu-tutorial-step-by-step-process-ubuntu-18-04-intel-nuc-egpu/
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34cf85}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "dark",
"keybindings": [
{
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34cf85}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "dark",
"keybindings": [
{
import requests
from bs4 import BeautifulSoup
import json
from time import strftime, localtime
import os.path
import emoji
INFECTED = 'ЗАРАЖЁННЫЕ'
DEATHS = 'УМЕРЛО'
RECOVERED = 'ИЗЛЕЧИЛОСЬ'
import requests
from bs4 import BeautifulSoup
import time
from time import gmtime, strftime
import emoji
import smtplib
from email.mime.text import MIMEText
from email.header import Header
print('Exchange Rates v1.0')