Skip to content

Instantly share code, notes, and snippets.

View dmitry-saritasa's full-sized avatar

Dmitry Semenov dmitry-saritasa

View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
export PATH=$PATH:/usr/local/bin
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk/
source ~devops/.aliases
setopt appendhistory autocd extendedglob notify
export EDITOR=vim
export CHEATCOLORS=true
[ -f ~devops/.fzf.zsh ] && source ~devops/.fzf.zsh
# VIM replacement with CLIPBOARD support
alias rm='rm -i'
alias rm~='find . -iname "*~" -type f | xargs rm -f'
alias cp='cp -i'
alias mv='mv -i'
alias of='xdg-open .'
alias dropbox='~/.dropbox-dist/dropboxd'
alias nas='sudo mount -t cifs -o rw,user=admin //192.168.0.49/Volume_1/ /mnt/nas'
# The following lines were added by compinstall
export TERM="xterm-256color"
zstyle :compinstall filename '/home/dmitry/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
@dmitry-saritasa
dmitry-saritasa / supervisord.service
Created March 31, 2017 18:06
supervisord.service
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/supervisord -c /etc/supervisor.d/supervisord.conf
ExecReload=/usr/bin/supervisorctl reload
ExecStop=/usr/bin/supervisorctl shutdown
@dmitry-saritasa
dmitry-saritasa / .hyper.js
Created February 15, 2017 23:47
~/.hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 18,
// font family with optional fallbacks
fontFamily: 'Hack, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
var person = {
age: 0,
sex: "M",
year: 2015,
sibling: undefined,
married: false,
details: function() {
console.log(this.age, this.sex, this.year);
},
var person = {
age: 0,
sex: "M",
year: 2015,
sibling: undefined,
married: false,
details: function() {
console.log(this.age, this.sex, this.year);
},
@dmitry-saritasa
dmitry-saritasa / python-settings.el
Created September 27, 2016 01:57
python-settings.el
;;; package --- Python Programming ;;;
;;; Commentary:
;;; Code:
; don't show the startup screen
(setq inhibit-startup-screen t)
; don't show the menu bar
(menu-bar-mode nil)
/*
* NOTE:
* - The use of browser-specific styles (-moz-, -webkit-) should be avoided.
* If used, they may not render correctly for people reading the email in
* a different browser than the one from which the email was sent.
* - The use of state-dependent styles (like a:hover) don't work because they
* don't match at the time the styles are made explicit. (In email, styles
* must be explicitly applied to all elements -- stylesheets get stripped.)
*/