Skip to content

Instantly share code, notes, and snippets.

View tudoanh's full-sized avatar

Đỗ Anh Tú tudoanh

View GitHub Profile
@tudoanh
tudoanh / Marketing Strategy - FML.md
Last active May 12, 2016 05:48
Marketing Strategy

#Test

@tudoanh
tudoanh / Tu Do Anh - CV.md
Created May 24, 2016 14:45
My Curriculum Vitae
@tudoanh
tudoanh / fahasa.py
Last active May 26, 2017 11:18
fahasa.py
# -*- coding: utf-8 -*-
import scrapy
from scrapy_splash import SplashRequest
script = """
function main(splash)
splash:init_cookies(splash.args.cookies)
local url = splash.args.url
assert(splash:go(url))
assert(splash:wait(5))
@tudoanh
tudoanh / python_exercise_1.md
Created June 21, 2017 15:35
Python exercises 1 - Basic Data Types

sudo apt-get install libjpeg-dev build-essential python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev vim git tmux python-virtualenv python-pip -y

@tudoanh
tudoanh / crawl_vj.py
Last active September 30, 2018 07:00
Get VietJet flight data from reservation code
# -*- coding: utf-8 -*-
from lxml import html
import requests
class VJCrawl():
def __init__(self):
self.s = requests.Session()
self.url = 'https://flightstatus.vietjetair.com/?lang=vi'
self.user_agent = ("Mozilla/5.0 (X11; Linux x86_64) "
@tudoanh
tudoanh / .vimrc
Last active August 1, 2019 15:36
Vim config tudoanh
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" @tudoanh
"
" Awesome_version:
" Get this config, nice color schemes and lots of plugins!
"
" Install the awesome version from:
"
" https://github.com/amix/vimrc
@tudoanh
tudoanh / config
Created July 29, 2020 10:47
I3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@tudoanh
tudoanh / Pihole-vn.txt
Created April 1, 2021 15:16
Blacklist Vietnam ads domain for Pihole
media.jxf88.com
v9banners.com
sbbanner.com
uwin71.com
adtimaserver.vn
api.adtimaserver.vn
log.adtimaserver.vn
media.adtimaserver.vn
media.org.adtimaserver.vn
static.adtimaserver.vn
@tudoanh
tudoanh / unsplash.py
Last active August 20, 2021 10:55
Random wallpaper on Ubuntu
#!/usr/bin/env python3
import random
import requests
import subprocess
topic = random.choice(
["meal", "food", "beverage", "wine", "bread", "restaurant", "work"]
)