diff --git a/archives.html b/archives.html index 7245cdc..730080e 100644 --- a/archives.html +++ b/archives.html @@ -76,6 +76,10 @@

Latest entries

+
Sharing dotfiles
+
github
+
git
+
dotfiles
Zotero
zotero
webdav
@@ -95,8 +99,6 @@
javascript
python
heroku
-
Remove git files with globbing
-
git
@@ -106,6 +108,8 @@

Archives for balkian.com

+
Fri 10 April 2015
+
Sharing dotfiles
Tue 09 December 2014
Zotero
Thu 09 October 2014
diff --git a/author/j-fernando-sanchez.html b/author/j-fernando-sanchez.html index a225398..77024ee 100644 --- a/author/j-fernando-sanchez.html +++ b/author/j-fernando-sanchez.html @@ -77,6 +77,10 @@

Latest entries

+
Sharing dotfiles
+
github
+
git
+
dotfiles
Zotero
zotero
webdav
@@ -96,8 +100,6 @@
javascript
python
heroku
-
Remove git files with globbing
-
git
@@ -111,6 +113,19 @@ +
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +When you first use it, the extension saves either ...

+
+ Read more...

Zotero

2014-12-09 diff --git a/authors.html b/authors.html index 4c50cfa..07140e2 100644 --- a/authors.html +++ b/authors.html @@ -76,6 +76,10 @@ @@ -105,7 +107,7 @@

Authors on balkian.com

-
diff --git a/categories.html b/categories.html index 5f3d83c..9602cde 100644 --- a/categories.html +++ b/categories.html @@ -76,6 +76,10 @@

Latest entries

+
Sharing dotfiles
+
github
+
git
+
dotfiles
Zotero
zotero
webdav
@@ -95,8 +99,6 @@
javascript
python
heroku
-
Remove git files with globbing
-
git
diff --git a/category/misc.html b/category/misc.html index 03a2061..6ba2dad 100644 --- a/category/misc.html +++ b/category/misc.html @@ -77,6 +77,10 @@

Latest entries

+
Sharing dotfiles
+
github
+
git
+
dotfiles
Zotero
zotero
webdav
@@ -96,8 +100,6 @@
javascript
python
heroku
-
Remove git files with globbing
-
git
@@ -111,6 +113,19 @@ +
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +When you first use it, the extension saves either ...

+
+ Read more...

Zotero

2014-12-09 diff --git a/creating-my-web.html b/creating-my-web.html index c8346ea..b085731 100644 --- a/creating-my-web.html +++ b/creating-my-web.html @@ -76,6 +76,10 @@ diff --git a/feeds/all.atom.xml b/feeds/all.atom.xml index 54a980e..f3ed71b 100644 --- a/feeds/all.atom.xml +++ b/feeds/all.atom.xml @@ -1,5 +1,22 @@ -balkian.comhttp://balkian.com/2014-12-09T12:12:12+01:00Zotero2014-12-09T12:12:12+01:00J. Fernando Sáncheztag:balkian.com,2014-12-09:zotero.html<p><a class="reference external" href="https://www.zotero.org/">Zotero</a> is an Open Source tool that lets +balkian.comhttp://balkian.com/2015-04-10T17:47:00+02:00Sharing dotfiles2015-04-10T17:47:00+02:00J. Fernando Sáncheztag:balkian.com,2015-04-10:sharing-dotfiles.html<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 class="reference external" 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 class="reference external" 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 class="reference external" href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p> +<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 +2</pre></div></td><td class="code"><div class="highlight"><pre>[include] + path = ~/.gitconfig_secret +</pre></div> +</td></tr></table><p>And now, in your .gitconfig_secret file, you just have to add this:</p> +<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 +2 +3</pre></div></td><td class="code"><div class="highlight"><pre>[github] + user = balkian + token = &quot;&lt; Your secret token &gt;&quot; +</pre></div> +</td></tr></table>Zotero2014-12-09T12:12:12+01:00J. Fernando Sáncheztag:balkian.com,2014-12-09:zotero.html<p><a class="reference external" href="https://www.zotero.org/">Zotero</a> is an Open Source tool that lets you organise your bibliography, syncing it with the cloud. Unlike other alternatives such as <a class="reference external" href="http://www.mendeley.com">Mendeley</a>, Zotero can upload the attachments and data to a private cloud via WebDav.</p> diff --git a/feeds/misc.atom.xml b/feeds/misc.atom.xml index c049c3d..7d5094b 100644 --- a/feeds/misc.atom.xml +++ b/feeds/misc.atom.xml @@ -1,5 +1,22 @@ -balkian.comhttp://balkian.com/2014-12-09T12:12:12+01:00Zotero2014-12-09T12:12:12+01:00J. Fernando Sáncheztag:balkian.com,2014-12-09:zotero.html<p><a class="reference external" href="https://www.zotero.org/">Zotero</a> is an Open Source tool that lets +balkian.comhttp://balkian.com/2015-04-10T17:47:00+02:00Sharing dotfiles2015-04-10T17:47:00+02:00J. Fernando Sáncheztag:balkian.com,2015-04-10:sharing-dotfiles.html<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 class="reference external" 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 class="reference external" 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 class="reference external" href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p> +<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 +2</pre></div></td><td class="code"><div class="highlight"><pre>[include] + path = ~/.gitconfig_secret +</pre></div> +</td></tr></table><p>And now, in your .gitconfig_secret file, you just have to add this:</p> +<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 +2 +3</pre></div></td><td class="code"><div class="highlight"><pre>[github] + user = balkian + token = &quot;&lt; Your secret token &gt;&quot; +</pre></div> +</td></tr></table>Zotero2014-12-09T12:12:12+01:00J. Fernando Sáncheztag:balkian.com,2014-12-09:zotero.html<p><a class="reference external" href="https://www.zotero.org/">Zotero</a> is an Open Source tool that lets you organise your bibliography, syncing it with the cloud. Unlike other alternatives such as <a class="reference external" href="http://www.mendeley.com">Mendeley</a>, Zotero can upload the attachments and data to a private cloud via WebDav.</p> diff --git a/index.html b/index.html index 15a6aae..ca6c81b 100644 --- a/index.html +++ b/index.html @@ -76,6 +76,10 @@ @@ -110,6 +112,19 @@
+
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +When you first use it, the extension saves either ...

+
+ Read more...

Zotero

2014-12-09 diff --git a/pages/about.html b/pages/about.html index e7ddab1..4016152 100644 --- a/pages/about.html +++ b/pages/about.html @@ -77,6 +77,10 @@ diff --git a/pages/cv.html b/pages/cv.html index 20ab923..cc26578 100644 --- a/pages/cv.html +++ b/pages/cv.html @@ -77,6 +77,10 @@ diff --git a/pages/projects.html b/pages/projects.html index 4f39d3c..c346681 100644 --- a/pages/projects.html +++ b/pages/projects.html @@ -77,6 +77,10 @@ diff --git a/pages/to-do.html b/pages/to-do.html index 895c6b8..c9b4750 100644 --- a/pages/to-do.html +++ b/pages/to-do.html @@ -77,6 +77,10 @@ diff --git a/proxies-with-apache-and-python.html b/proxies-with-apache-and-python.html index d5271e6..53df15e 100644 --- a/proxies-with-apache-and-python.html +++ b/proxies-with-apache-and-python.html @@ -76,6 +76,10 @@ diff --git a/publishing-in-pypi.html b/publishing-in-pypi.html index 79684da..af86c82 100644 --- a/publishing-in-pypi.html +++ b/publishing-in-pypi.html @@ -76,6 +76,10 @@ diff --git a/remove-git-files-with-globbing.html b/remove-git-files-with-globbing.html index 20197b2..179a473 100644 --- a/remove-git-files-with-globbing.html +++ b/remove-git-files-with-globbing.html @@ -76,6 +76,10 @@ diff --git a/sharing-dotfiles.html b/sharing-dotfiles.html new file mode 100644 index 0000000..5ac3aa8 --- /dev/null +++ b/sharing-dotfiles.html @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + +
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+ +
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +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 happen to be publishing your .gitconfig file in a public repo.

+

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 include other files in your gitconfig.

+
1
+2
[include]
+    path = ~/.gitconfig_secret
+
+

And now, in your .gitconfig_secret file, you just have to add this:

+
1
+2
+3
[github]
+    user = balkian
+    token = "< Your secret token >"
+
+
+
+
+
+
+
+
+

+ J. Fernando Sánchez Rada | balkian +

+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
+

+ Creative Commons A-SA-NC +

+
+
+ + + + + \ No newline at end of file diff --git a/tag/dotfiles.html b/tag/dotfiles.html new file mode 100644 index 0000000..1396311 --- /dev/null +++ b/tag/dotfiles.html @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + +

Entries tagged: dotfiles

+ +
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +When you first use it, the extension saves either ...

+
+ Read more... + + +
+
+
+
+
+

+ J. Fernando Sánchez Rada | balkian +

+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
+

+ Creative Commons A-SA-NC +

+
+
+ + + + + \ No newline at end of file diff --git a/tag/git.html b/tag/git.html index 79959bd..913aa09 100644 --- a/tag/git.html +++ b/tag/git.html @@ -76,6 +76,10 @@

Latest entries

+
Sharing dotfiles
+
github
+
git
+
dotfiles
Remove git files with globbing
git
Creating my web
@@ -98,6 +102,19 @@

Entries tagged: git

+
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +When you first use it, the extension saves either ...

+
+ Read more...

Remove git files with globbing

2013-08-22 diff --git a/tag/github.html b/tag/github.html index d8bf226..5a175f5 100644 --- a/tag/github.html +++ b/tag/github.html @@ -76,6 +76,10 @@

Latest entries

+
Sharing dotfiles
+
github
+
git
+
dotfiles
Publishing in PyPi
github
python
@@ -100,6 +104,19 @@

Entries tagged: github

+
+

Sharing dotfiles

+ 2015-04-10 + github + git + dotfiles +
+
+

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.

+

As part of moving to emacs, I starting using the incredibly useful gh.el. +When you first use it, the extension saves either ...

+
+ Read more...

Publishing in PyPi

2014-09-27 diff --git a/tags.html b/tags.html index 80d0ced..ab3361e 100644 --- a/tags.html +++ b/tags.html @@ -76,6 +76,10 @@ @@ -104,8 +106,9 @@

Tags for balkian.com

  • apache (2)
  • -
  • git (2)
  • -
  • github (2)
  • +
  • dotfiles (1)
  • +
  • git (3)
  • +
  • github (3)
  • gunicorn (1)
  • heroku (1)
  • javascript (2)
  • diff --git a/updating-eurolovemap.html b/updating-eurolovemap.html index fc98592..be6b00a 100644 --- a/updating-eurolovemap.html +++ b/updating-eurolovemap.html @@ -76,6 +76,10 @@ diff --git a/zotero.html b/zotero.html index 7f53297..c710e2e 100644 --- a/zotero.html +++ b/zotero.html @@ -76,6 +76,10 @@ @@ -105,6 +107,7 @@

    Zotero