8000 GitHub - artfin/configs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

artfin/configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My configs for vim and i3wm:

  • vim:
    • Using Vundle plugin manager
  • i3wm (config file is ~/.config/i3/config):
    • System San Fransisco Font files should be put in ~/.fonts (just drop there all the .ttf-files)

Zsh

Oh My Zsh framework: https://ohmyz.sh/ Current theme of choice: af-magic Autosuggestions plugin: https ://github.com/zsh-users/zsh-autosuggestions z plugin: https ://github.com/rupa/z zsh-autocomplete: https ://github.com/marlonrichert/zsh-autocomplete zsh-interactive-cd: https ://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/zsh-interactive-cd

Clean installation and preparation of Python2.7 on Ubuntu server

  • preparing system configuration
    sudo apt-get update (keeps your source list up-to-date)
    sudo atp-get upgrade (upgrades all installed packages)
    sudo apt-get dist-upgrade(upgrade with some smart conflist-resolution system)

  • installing python:
    sudo apt-get install python2.7

  • installing and upgrading pip:
    sudo apt-get install python-pip python-dev build-essential
    sudo -H python -m pip install --upgrade

  • installing cryptography package:
    sudo apt-get install libssl-dev libffi-dev python-dev
    sudo -H python -m pip install cryptography

  • list of packages:

  1. Beautiful soup: sudo -H python -m pip install bs4
  2. dateutil.parser: sudo apt-get install python-dateutil
  3. Crypto: sudo -H python -m pip install pycrypto
  4. builtins: sudo -H python -m pip install future
  5. lxml: sudo -H python -m pip install lxml (HTML-markup parser for bs4)

Crontab info

  • Setting environment variables
    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

  • timeout for terminating hanging processes
    /usr/bin/timeout 5m

Example

// Environment variable
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/sbin:/usr/bin

// -----------------------------------------------------
// ps axo pid,etime,args -- to see id of process and its execution time
// -----------------------------------------------------

// -----------------------------------------------------
// adding timeout command to terminate hanging processes
// -----------------------------------------------------

*/2 * * * * /usr/bin/timeout 3m /home/ubuntu/Steamdaemon/steamdaemon/usr/terol983/scripts/_buyorder_checker.sh
*/2 * * * * /usr/bin/timeout 3m /home/ubuntu/Steamdaemon/steamdaemon/usr/terol983/scripts/_sellorder_checker.sh
0,20,40 * * * * /usr/bin/timeout 9m /home/ubuntu/Steamdaemon/steamdaemon/usr/terol983/scripts/_buyorder_installer.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0