Skip to content

Instantly share code, notes, and snippets.

View lyubenov's full-sized avatar

Emo lyubenov

View GitHub Profile
@lyubenov
lyubenov / itebooks.py
Last active January 3, 2024 22:01
Removes it-ebooks.info links from book's footers. Run python itebooks.py -f /sourcepath/books/thebook.pdf to cleanup your thebook.pdf file.
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
pattern = b'''0a2f54797065202f416e6e6f740a2f53756274797065202f4c696e6b0a2f52656
374205b20.*?205d0a2f426f7264657220.*?\n0a2f41203c3c0a2f54797065202f416374696f6e
@lyubenov
lyubenov / docker-compose.yml
Created July 16, 2019 11:27
wordpress development on docker
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 June 3, 2018 22:46
modules for babel 7
@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
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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@lyubenov
lyubenov / .hgignore
Created April 5, 2017 18:41
Mercurial ignore file and folders advisory by Mozilla Central
# .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