2023-01-20 17:42:41 +00:00
<!DOCTYPE html>
< html >
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" >
< title > Balkian' s site - WELCOME< / title >
< meta name = "viewport" content = "width=device-width" >
< link rel = "stylesheet" href = "../../font-awesome/css/all.css" >
< link rel = "stylesheet" media = "only screen" href = "../../css/main.css" >
< link href = 'http://fonts.googleapis.com/css?family=Open+Sans:300|Comfortaa' rel = 'stylesheet' type = 'text/css' >
< / head >
< body >
< div id = "container" class = "container" >
< div id = "contentwrapper" >
< div id = "content" >
< header id = "header" >
< ul class = "navbar" id = "navbar" >
< a href = "../../" >
< li >
< i class = "fa fa-home fa-large" > < / i >
< / li > < / a >
< a href = "../../post/" > < li class = '' > Blog
< / li > < / a >
< a href = "../../tags/" > < li class = '' > Tags
< / li > < / a >
< a href = "../../cheatsheet/" > < li class = '' > Cheatsheets
< / li > < / a >
< a href = "../../project/" > < li class = '' > Projects
< / li > < / a >
< a href = "../../page/todo/" > < li class = '' > To-do
< / li > < / a >
< a href = "//jfernando.es" target = "_blank" > < li >
CV
< / li > < / a >
< a href = "../../search" > < li >
< i class = "fa fa-search" > < / i >
< / li > < / a >
< / ul >
< / header >
< h2 > Sharing dotfiles< / h2 >
< span class = "date" > 2015/04/10< / span >
< span >
< a class = "tag" href = '../../tags/github' > < span class = "label" > github< / span > < / a >
< a class = "tag" href = '../../tags/git' > < span class = "label" > git< / span > < / a >
< a class = "tag" href = '../../tags/dotfiles' > < span class = "label" > dotfiles< / span > < / a >
< / span >
< h3 > < / h3 >
< p > Today’ s post is half a quick note, half public shaming. In other words,
it is a reminder to be very careful with OAuth tokens and passwords.< / p >
< p > As part of moving to emacs, I starting using the incredibly useful
< a href = "https://github.com/defunkt/gist.el" > gh.el< / a > . When you first use it, the
extension saves either your password or an OAuth token in your
.gitconfig file. This is cool and convenient, unless you < a href = "https://github.com/balkian/dotfiles" > happen to be
publishing your .gitconfig file in a public
repo< / a > .< / p >
< p > So, how can you still share your gitconfig without sharing your
password/token with the rest of the world? Since Git 1.7.0, you can
< a href = "http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig" > include other files in your
gitconfig< / a > .< / p >
< pre > < code class = "language-config" data-lang = "config" > [include]
path = ~/.gitconfig_secret
< / code > < / pre > < p > And now, in your .gitconfig_secret file, you just have to add this:< / p >
< pre > < code class = "language-config" data-lang = "config" > [github]
user = balkian
token = " < Your secret token > "
< / code > < / pre >
< / div >
< div id = "sidebar" class = "fixed" >
< div id = "badge" class = "flip-container" ontouchstart = "this.classList.toggle('hover');" >
< div class = "flipper sticky expand" >
< div class = "front" >
< img id = "avatar" class = "expandx" src = "../../img/me.png" >
< / div >
< div class = "back" >
< div id = "about" >
< div class = "icons vertical-center" >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fab fa-inverse fa-stack-1x fa-linux" > < / i > < / span > < span class = "explanation" > Linux user< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fab fa-inverse fa-stack-1x fa-android" > < / i > < / span > < span class = "explanation" > Android dev and user< / span > < / span >
< a href = "http://github.com/balkian" target = "_blank" > < span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fab fa-inverse fa-stack-1x fa-github" > < / i > < / span > < span class = "explanation" > Github user< / span > < / span > < / a >
< a href = "http://gitlab.com/balkian" target = "_blank" > < span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fab fa-inverse fa-stack-1x fa-gitlab" > < / i > < / span > < span class = "explanation" > GitLab user< / span > < / span > < / a >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fab fa-inverse fa-stack-1x fa-stack-exchange" > < / i > < / span > < span class = "explanation" > StackExchange fan< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-music" > < / i > < / span > < span class = "explanation" > Music lover< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-film" > < / i > < / span > < span class = "explanation" > Movie fan< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-laptop" > < / i > < / span > < span class = "explanation" > Always on a PC< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-moon" > < / i > < / span > < span class = "explanation" > Night owl< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-terminal" > < / i > < / span > < span class = "explanation" > CLI user< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-flag" > < / i > < / span > < span class = "explanation" > I love languages< / span > < / span >
< span class = "coolicon" > < span class = "fa-stack" > < i class = "fas fa-square fa-stack-2x" > < / i > < i class = "fas fa-inverse fa-stack-1x fa-code" > < / i > < / span > < span class = "explanation" > I love programming< / span > < / span >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "entries" >
< h2 class = "title" > Latest entries< / h2 >
2023-01-23 07:55:17 +00:00
< dt > < a href = "../../post/2023-01-20-kanata/" > Kanata: advanced keyboard configuration< / a > < / dt >
2023-01-20 17:42:41 +00:00
< a class = "tag" href = '../../tags/linux' > < span class = "label" > linux< / span > < / a >
< a class = "tag" href = '../../tags/logitech' > < span class = "label" > logitech< / span > < / a >
< a class = "tag" href = '../../tags/keyboard' > < span class = "label" > keyboard< / span > < / a >
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/layout' > < span class = "label" > layout< / span > < / a >
< a class = "tag" href = '../../tags/rust' > < span class = "label" > rust< / span > < / a >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< dt > < a href = "../../post/2021-10-30-logitech-mk850/" > Logitech MB850 combi in linux< / a > < / dt >
2023-01-20 17:42:41 +00:00
< a class = "tag" href = '../../tags/linux' > < span class = "label" > linux< / span > < / a >
< a class = "tag" href = '../../tags/logitech' > < span class = "label" > logitech< / span > < / a >
< a class = "tag" href = '../../tags/keyboard' > < span class = "label" > keyboard< / span > < / a >
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/mouse' > < span class = "label" > mouse< / span > < / a >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< dt > < a href = "../../post/2021-10-29-logitech-mx-keys-mac/" > Logitech MX Keys for Mac on Linux< / a > < / dt >
2023-01-20 17:42:41 +00:00
< a class = "tag" href = '../../tags/linux' > < span class = "label" > linux< / span > < / a >
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/logitech' > < span class = "label" > logitech< / span > < / a >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/keyboard' > < span class = "label" > keyboard< / span > < / a >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< dt > < a href = "../../post/2019-05-01-surface-go/" > Linux on the Microsoft Surface Go< / a > < / dt >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/linux' > < span class = "label" > linux< / span > < / a >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/surface-go' > < span class = "label" > surface go< / span > < / a >
2023-01-20 17:42:41 +00:00
2023-01-23 07:55:17 +00:00
< a class = "tag" href = '../../tags/config' > < span class = "label" > config< / span > < / a >
2023-01-20 17:42:41 +00:00
< / div >
< / div >
< div class = "clear" > < / div >
< / div >
< footer class = "pagefooter" role = "contentinfo" >
< div class = "contact" >
< p >
J. Fernando Sánchez Rada | balkian
< / p >
< / div >
< ul id = "social" >
< li > < a href = "http://github.com/balkian" > < i class = "fab fa-github" > < / i > < / a > < / li >
< li > < a href = "http://lab.gsi.upm.es/balkian" > < i class = "fab fa-gitlab" > < / i > < / a > < / li >
< li > < a href = "http://twitter.com/balkian" > < i class = "fab fa-twitter" > < / i > < / a > < / li >
< li > < a href = "http://git.sinpapel.es/balkian" > < i class = "fab fa-git" > < / i > < / a > < / li >
< li > < a href = "http://linkedin.com/in/jfsanchezrada" > < i class = "fab fa-linkedin" > < / i > < / a > < / li >
< / ul >
< p >
< i class = "fab fa-creative-commons" > < / i > Creative Commons A-SA-NC
< / p >
< / footer >
< / div >
< script src = "../../js/jquery-2.0.2.min.js" > < / script >
< / body >
< / html >