Skip to content

Instantly share code, notes, and snippets.

View nikitalpopov's full-sized avatar
📷
watchin' you

Nikita Popov nikitalpopov

📷
watchin' you
View GitHub Profile
@nikitalpopov
nikitalpopov / vk_audio.py
Created June 26, 2019 19:05
Extract {track name} - {artist name} from VK audios.html to separated *.txt files
from bs4 import BeautifulSoup
vk_audios_file = 'audios.html' # SET YOUR FILE NAME
soup = BeautifulSoup(open(vk_audios_file, encoding='ISO-8859-1'), 'lxml')
songs = [song.get_text() for song in soup.find_all("div", {"class": "audio__title"})]
def revert(songname):
song = None
if (len(songname.split(' –')) > 1):
song = songname.split(' –')[1] + ' - ' + songname.split('– ')[0]
@nikitalpopov
nikitalpopov / nginx.conf
Last active February 14, 2019 14:34
nginx configuration file for node.js app
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
@nikitalpopov
nikitalpopov / .zshrc
Created November 15, 2017 20:04
my .zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/nikitapopov/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="robbyrussell"
@nikitalpopov
nikitalpopov / Python3 Virtualenv Setup.md
Created November 15, 2017 15:00 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@nikitalpopov
nikitalpopov / tree.json
Last active October 11, 2017 16:49
tree
{
"text": "text",
"children": [
{
"text": "text",
"children": [
{
"text": "text",
"children": [
{