This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "node_modules" -exec rm -rf '{}' +; | |
find . -name "__pycache__" -exec rm -rf '{}' +; | |
find . -name "*.pyc" -exec rm -rf {} \; | |
find . -name "rethinkdb_data" -exec rm -rf '{}'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"theme": "Spacegray.sublime-theme", | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"spacegray_tabs_font_xlarge": true, | |
"spacegray_tabs_xlarge": true, | |
"spacegray_tabs_auto_width": true, | |
"spacegray_sidebar_font_xlarge": true, | |
"spacegray_sidebar_tree_xlarge": true, | |
"enable_tab_scrolling": false, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get -y install python-software-properties | |
sudo apt-get install -y postgresql postgresql-contrib | |
sudo apt-get install -y build-essential |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# author: | |
# @Bartosz Kosarzycki | |
# | |
sudo apt-get install npm | |
sudo npm install -g react-native-cli | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
cd /home/user/your/project/path | |
react-native init AwesomeProject | |
cd AwesomeProject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
from tornado.ioloop import IOLoop, PeriodicCallback | |
from tornado.web import RequestHandler, Application, url | |
from tornado.httpserver import HTTPServer | |
from tornado.httpclient import AsyncHTTPClient, HTTPError | |
from tornado.gen import coroutine, Return, WaitIterator | |
from tornado.netutil import bind_sockets, bind_unix_socket | |
from tornado.process import fork_processes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import asyncio | |
import re | |
import asyncio_redis | |
import tornado.concurrent | |
import tornado.httpclient | |
import tornado.web | |
import tornado.platform.asyncio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from concurrent.futures import ThreadPoolExecutor | |
from functools import partial, wraps | |
import time | |
import tornado.ioloop | |
import tornado.web | |
EXECUTOR = ThreadPoolExecutor(max_workers=4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[redshift] | |
temp-day=7720 | |
temp-night=3700 | |
transition=1 | |
;brightness=0.84 | |
brightness-day=0.87 | |
brightness-night=0.77 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please make sure that installation of this packages | |
sudo apt-get install libxcb1-dev libxcb-randr0-dev libx11-dev intltool | |
Download & open the file (wget) | |
https://github.com/jonls/redshift/releases/download/v1.10/redshift-1.10.tar.xz | |
Than configure it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib, hmac, mimetypes, os, time | |
from base64 import b64encode, b64decode | |
from calendar import timegm | |
from datetime import datetime | |
from email.utils import formatdate | |
from urllib import quote | |
from tornado.gen import coroutine, Return | |
from tornado.httpclient import AsyncHTTPClient, HTTPError |