Skip to content

Instantly share code, notes, and snippets.

Avatar

Emo lyubenov

View GitHub Profile
@lyubenov
lyubenov / docker-compose.yml
Created Jul 16, 2019
wordpress development on docker
View docker-compose.yml
version: '3'
services:
db:
image: mysql:5.7
volumes:
- ./db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
@lyubenov
lyubenov / @babel packages
Created Jun 3, 2018
modules for babel 7
View @babel packages
@babel/cli
@babel/code-frame
@babel/core
@babel/generator
@babel/helper-annotate-as-pure
@babel/helper-bindify-decorators
@babel/helper-builder-binary-assignment-operator-visitor
@babel/helper-builder-react-jsx
@babel/helper-call-delegate
@babel/helper-define-map
View .eslintrc react-native-app
create-react-native-app my-app
cd my-app
curl https://raw.githubusercontent.com/react-community/create-react-native-app/master/.eslintrc > .eslintrc
Add "lint": "eslint ." to package.json
npm install --save-dev eslint babel-eslint eslint-plugin-import eslint-plugin-flowtype eslint-plugin-react eslint-plugin-babel eslint-config-exponent
npm run lint
View .eslintrc
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@lyubenov
lyubenov / .hgignore
Created Apr 5, 2017
Mercurial ignore file and folders advisory by Mozilla Central
View .hgignore
# .hgignore - List of filenames hg should ignore
# Filenames that should be ignored wherever they appear
~$
\.py(c|o)$
(?i)(^|/)TAGS$
(^|/)ID$
(^|/)\.DS_Store$
\.pdb
\.egg-info
@lyubenov
lyubenov / itebooks.py
Last active Jun 21, 2020
Removes it-ebooks.info links from book's footers. Run python itebooks.py -f /sourcepath/books/thebook.pdf to cleanup your thebook.pdf file.
View itebooks.py
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
pattern = b'''0a2f54797065202f416e6e6f740a2f53756274797065202f4c696e6b0a2f52656
374205b20.*?205d0a2f426f7264657220.*?\n0a2f41203c3c0a2f54797065202f416374696f6e
You can’t perform that action at this time.