GithubHelp home page GithubHelp logo

issmirnov / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
56.0 56.0 10.0 43.89 MB

My dotfiles.

License: MIT License

Shell 39.38% Perl 15.34% Python 12.26% Ruby 4.41% AppleScript 0.04% PostScript 0.57% Makefile 0.04% Vim Script 27.96%
dotbot dotfiles i3 vim zsh

dotfiles's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dotfiles's Issues

Finish remote clipboard integration

In e9da2a0, we add the foundation for remote clipboard management. We need to finish the integration.

  • Add the launch control plists to osx.conf.yaml, as well as the launch control load command
  • Set up similar hooks for my linux machines

cheat: "could not locate config file"

Cheat is now erroring out with: "could not locate config file"

Initial search points to cheat/cheat#501. Apparently we now have to generate a cheat config file:

cheat --init > ~/.dotfiles/cheat/conf.yml

Initial experiments show that the file is generated, but it's unclear where the community cheats are now located.

As of now, looks like there was a major breaking change to cheat, without warning. Shame :/

update bash and zsh rc with useful aliases

Easily extract all compressed file types

extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file"
fi
}

Get weather data for Bristol

weather() {
echo BRISTOL:
curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-BS8+1JG}" | perl -ne 's/&deg;/°/g;/<title>([^<]+)/&&printf "%s: ",$1;/([^<]+)/&&print $1,"\n"';
}

see - https://www.quora.com/What-are-some-of-the-best-command-prompt-or-the-terminal-tricks

Uebersicht Energy Usage

OSX Activity monitor is showing average energy impact as 73, which is double chrome's impact (34). This is pretty egregious.

My guess is that my polling frequency is way too high. Thoughts:

  • look into having yabai signal desktop switches, rather than polling at 100ms intervals
  • update datetime every minute on the minute
  • update wifi on network event, cache data otherwise
  • Remove CPU monitor, since it's just distracting and without proper granularity will be fairly useless
  • Benchmark the weather curl wrapper, make sure it's actually lightweight.

Zsh

On load, zsh prompts for zlogout and other crap. Find the culprit

tmux config

Add:
set-option -g allow-rename off

to avoid pane names being overriden by commands

Explore xresources color schemes

See https://github.com/chriskempson/base16-xresources/blob/master/xresources/base16-monokai.Xresources

#define mydpi 120
#define myfontface Hermit
#define myfontsize 10
#define mycursorsize 30
! https://github.com/chriskempson/base16-xresources/blob/master/xresources/base16-monokai.Xresources
#define base00 #272822
#define base01 #383830
#define base02 #49483e
#define base03 #75715e
#define base04 #a59f85
#define base05 #f8f8f2
#define base06 #f5f4f1
#define base07 #f9f8f5
#define base08 #f92672
#define base09 #fd971f
#define base0A #f4bf75
#define base0B #a6e22e
#define base0C #a1efe4
#define base0D #66d9ef
#define base0E #ae81ff
#define base0F #cc6633
*foreground:   base05
*background:   base00
*color0:       base00
*color1:       base08
*color2:       base0B
*color3:       base0A
*color4:       base0D
*color5:       base0E
*color6:       base0C
*color7:       base05
*color8:       base03
*color9:       base09
*color10:      base01
*color11:      base02
*color12:      base04
*color13:      base06
*color14:      base0F
*color15:      base07
Xft.dpi: mydpi
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: true
Xft.antialias: true
Xft.rgba: rgb
rofi.dpi: mydpi
xterm*faceName: myfontface
xterm*faceSize: myfontsize
xterm*loginshell: true
xterm*savelines: 50000
xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
XTerm.termName: xterm-256color
XTerm.vt100.translations: #override \n\
    Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
    Ctrl Shift <Key>V: insert-selection(CLIPBOARD)
Xcursor.size: mycursorsize
Xcursor.theme: StarLabs
*cursorColor: base05
! vim: ft=xdefaults

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.