{"id":40234,"date":"2018-09-07T08:07:34","date_gmt":"2018-09-07T08:07:34","guid":{"rendered":"https:\/\/www.flubu.com\/blog\/?p=40234"},"modified":"2018-09-07T08:07:34","modified_gmt":"2018-09-07T08:07:34","slug":"sphincter-clenching-moment","status":"publish","type":"post","link":"https:\/\/www.flubu.com\/blog\/2018\/09\/07\/sphincter-clenching-moment\/","title":{"rendered":"Sphincter-clenching moment"},"content":{"rendered":"<p>I&#8217;ve been on a course for the last week. Hours are brutal, 8:30am to 7pm. Been taking lots of notes on disk, in jupiter notebook files. This is something that I don&#8217;t want to lose. The course has a git repo, which I&#8217;ve forked on github. This is what happened today:<\/p>\n<p>&#8211; pull class repo to get latest files.<br \/>\n&#8211; try to push to my github repo. Sadly, this fails, as one of the data files is 102MB and is bigger than github&#8217;s file size limit.<br \/>\n&#8211; try and git rm the file from my source tree<br \/>\n&#8211; try to push to github, that&#8217;s a fail.<br \/>\n&#8211; look on StackOverflow for magic git incantation to remove file from git history. This is not something that you normally want to do.<br \/>\n&#8211; run magic incantation<br \/>\n&#8211; REVERT FUCKING GIT HISTORY TO A POINT WHERE THE COURSE STARTED, THUS LOSING 4 DAYS OF WORK AND NOTES!!!!!<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"40235\" data-permalink=\"https:\/\/www.flubu.com\/blog\/2018\/09\/07\/sphincter-clenching-moment\/sphincter-clench\/\" data-orig-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench.jpg\" data-orig-size=\"1024,765\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"sphincter-clench\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench-600x448.jpg\" src=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench-400x299.jpg\" alt=\"\" width=\"400\" height=\"299\" class=\"alignNONE size-medium wp-image-40235\" srcset=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench-400x299.jpg 400w, https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench-768x574.jpg 768w, https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench-600x448.jpg 600w, https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/sphincter-clench.jpg 1024w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><br \/>\n&#8211; Quickly run through 5 stages of grief.<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"40236\" data-permalink=\"https:\/\/www.flubu.com\/blog\/2018\/09\/07\/sphincter-clenching-moment\/5-stages-grief\/\" data-orig-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/5-stages-grief.gif\" data-orig-size=\"426,240\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"5-stages-grief\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/5-stages-grief.gif\" src=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/5-stages-grief.gif\" alt=\"\" width=\"400\" height=\"225\" class=\"alignnone size-full wp-image-40236\" \/><br \/>\n&#8211; Realize that Jupiter notebook is smart\/stupid at the same time, and that the versions I have in memory are different than the ones on disk.<br \/>\n&#8211; Preciously save MULTIPLE COPIES\/EXPORTS of all the important files.<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"40237\" data-permalink=\"https:\/\/www.flubu.com\/blog\/2018\/09\/07\/sphincter-clenching-moment\/typing\/\" data-orig-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/typing.gif\" data-orig-size=\"500,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"typing\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/typing.gif\" src=\"https:\/\/www.flubu.com\/blog\/wp-content\/uploads\/2018\/09\/typing.gif\" alt=\"\" width=\"400\" height=\"240\" class=\"alignnone size-full wp-image-40237\" \/><br \/>\n&#8211; Unclench<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been on a course for the last week. Hours are brutal, 8:30am to 7pm. Been taking lots of notes on disk, in jupiter notebook files. This is something that I don&#8217;t want to lose. The course has a git repo, which I&#8217;ve forked on github. This is what happened today: &#8211; pull class repo&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.flubu.com\/blog\/2018\/09\/07\/sphincter-clenching-moment\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Sphincter-clenching moment&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[24],"class_list":["post-40234","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-computers-are-evil"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3u9vK-asW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/40234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/comments?post=40234"}],"version-history":[{"count":4,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/40234\/revisions"}],"predecessor-version":[{"id":40241,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/40234\/revisions\/40241"}],"wp:attachment":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/media?parent=40234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/categories?post=40234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/tags?post=40234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}