投稿時間:2023-01-02 08:06:37 RSSフィード2023-01-02 08:00 分まとめ(9件)
カテゴリー等 | サイト名等 | 記事タイトル・トレンドワード等 | リンクURL | 頻出ワード・要約等/検索ボリューム | 登録日 |
---|---|---|---|---|---|
python | Pythonタグが付けられた新着投稿 - Qiita | 【データ可視化/Python】移動平均折れ線グラフと日別平均点グラフを同じグラフで可視化をする | https://qiita.com/Ayumu-y/items/a2f3f716706a6f34028b | alestimeseriesforecasting | 2023-01-02 07:48:55 |
海外TECH | MakeUseOf | How to Delete the Mail App on a Mac | https://www.makeuseof.com/how-to-delete-mail-app-mac/ | apple | 2023-01-01 22:15:15 |
海外TECH | DEV Community | Slimming Down Repo-1 | https://dev.to/subbramanil/slimming-down-repo-1-3kcd | Slimming Down Repo Most of the repository providers Github Bitbucket have a size limitation on the repository size and mechanisms to store large files using LFS options In most cases a repository may not reach these typical max size limits enforced However it can happen over a long period unless certain measures are taken to reduce the file size Disclaimer There are a lot of articles on what to commit to a repository and what to ignore The assumption is that you have followed the guidelines not to store any runtime build temporary files yet reach the size limit There are a few commands that can permanently delete the data The suggested approach to a clean up is to create a new clone of the repo execute the clean up procedure and verify the results If you are happy with what you have arrived at then push the changes to your remote Since the process involves re writing history you will need to force push the changes to remote So make sure to perform these commands with the approval of the team and only when it s required i e The Git repo storage limit is reached These are a few commands to identify the biggest files that could be potential files to remove You can remove these files and commit but this will not remove the pack files associated with the original commits One way to remove the large files and the pack files associated with them is by using the git filter branch along with the git reflog amp git gc command Before beginning Here are a few commands that we use to identify and remove bigger files To identify the size of the repo du scHTo identify the count of files amp other info git count objects vHIdentify the top big files ls ld DOL Identify the commits with the largest n blobs Sort ascending and list the last n items git verify pack v git objects pack lt pack name gt idx sort k n tail n List the files in a commit git rev list objects all grep lt commit id gt Remove the file and re write the history git filter branch index filter git rm cached ignore unmatch lt File to be removed gt tag name filter cat allTo prune older reflog entries git reflog expire expire now allTo perform clean up unnecessary files and optimize the local repository git gc prune nowHere s a sequence of actions I performed in one of my repositories to reduce the storage I didn t reach the storage limit I performed these steps to demo the idea IdentifyIdentify the biggest file in the repo du scH M M total git verify pack v git objects pack pack cdebdaebdceec idx sort k n tail n fedfceeeebecfdeacff blob deebbacabdaeeffe blob git rev list objects all grep fedfceeeebecfdeacfffedfceeeebecfdeacff Side Projects MemoryTiles google play screenshots v todoriliev com sketch Data Removal git filter branch index filter git rm cached ignore unmatch Side Projects MemoryTiles google play screenshots v todoriliev com sketch tag name filter cat allWARNING git filter branch has a glut of gotchas generating mangled history rewrites Hit Ctrl C before proceeding to abort then use an alternative filtering tool such as git filter repo instead See the filter branch manual page for more details to squelch this warning set FILTER BRANCH SQUELCH WARNING Proceeding with filter branch Ref refs heads main was rewrittenRef refs remotes origin ESI Archive was rewrittenRef refs remotes origin main was rewrittenWARNING Ref refs remotes origin main is unchangedRef refs stash was rewritten Clean upThe git filter branch command will create backup refs in git refs original These refs must be deleted in order to remove references to these objects Also it s good to perform a garbage collection to do some clean up git for each ref format refname refs original while read ref do git update ref d ref done git reflog expire expire now all git gc prune nowEnumerating objects done Counting objects done Delta compression using up to threadsCompressing objects done Writing objects done Total delta reused delta pack reused git verify pack v git objects pack pack dccdadfcceaedeec idx sort k n tail n cacdecfabedeacabcd blob bbfbcddbebdcbfdca blob git pushTo github com subbramanil my dev notes git rejected main gt main fetch first error failed to push some refs to github com subbramanil my dev notes git hint Updates were rejected because the remote contains work that you dohint not have locally This is usually caused by another repository pushinghint to the same ref You may want to first integrate the remote changeshint e g git pull before pushing again hint See the Note about fast forwards in git push help for details Documents personal my dev notes main hm ⍉ git push fEnumerating objects done Counting objects done Delta compression using up to threadsCompressing objects done Writing objects MiB MiB s done Total delta reused delta pack reused remote Resolving deltas done To github com subbramanil my dev notes git ee bdbb main gt main forced update du scHM M totalReducing a repo size from MB to MB MB may not look like a big saving however the approach can be applied repeatedly to remove the bigger files to reduce the size of the repo I found out there there are two alternatives to achieve similar results I will write a follow up blog on these two git filter repo As noticed in the command line logs of git filter branch BFG References Post Post StackOverFlow Post | 2023-01-01 22:23:00 |
海外TECH | Engadget | NASA’s Artemis 1 Orion spacecraft returns to Kennedy Space Center | https://www.engadget.com/nasa-artemis-1-orion-spacecraft-returns-kennedy-space-center-220905600.html?src=rss | NASA s Artemis Orion spacecraft returns to Kennedy Space CenterAfter completing its million mile trip to the Moon and back at the start of last month NASA s Artemis Orion spacecraft has returned to the Kennedy Space Center The homecoming occurred on December th Artemis splashed down in the Pacific Ocean on December th After the USS Portland recovered the unmanned crew vehicle and brought it to Naval Base San Diego on December th the capsule embarked on an overland trek to Florida the next day Artemis s record breaking journey began on November th with a memorable nighttime launch atop NASA s next generation Space Launch System heavy lift rocket The Artemis I NASA Orion spacecraft has returned to NASAKennedy Thank you to the NASAGroundSys team for bringing us home safely pic twitter com ANqThXLーHoward Hu HowardHuNASA December Now that Orion is back at Kennedy Space Center NASA will remove the spacecraft s heat shield so that it can conduct an “extensive analysis of the component and determine exactly how it fared during atmospheric reentry The agency will also remove Moonikin Campos the test dummy NASA sent aboard Orion to collect data on how travel to the Moon might affect humans “Artemis I was a major step forward as part of NASA s lunar exploration efforts and sets the stage for the next mission of the Space Launch System rocket and Orion to fly crew around the Moon on Artemis II NASA said While Artemis II won t launch until at the earliest there s still a lot to look forward to between now and next year NASA promised to announce the mission s four person crew sometime in “early Artemis II will set the stage for the first human lunar landing since the end of the Apollo program in and eventually a permanent NASA presence on the Moon | 2023-01-01 22:09:05 |
海外科学 | NYT > Science | A New Puzzle Turns Earth Into a Rubik’s Cube, but More Complex | https://www.nytimes.com/2023/01/01/science/puzzles-math-segerman.html | mathematics | 2023-01-01 22:37:18 |
海外科学 | NYT > Science | A Toxic Stew on Cape Cod: Human Waste and Warming Water | https://www.nytimes.com/2023/01/01/climate/cape-cod-algae-septic.html | A Toxic Stew on Cape Cod Human Waste and Warming WaterClimate change is contributing to electric green algae blooms Massachusetts wants a cleanup of the antiquated septic systems feeding the mess but it could cost billions | 2023-01-01 22:20:38 |
ニュース | BBC News - Home | World Darts Championship: Gerwyn Price knocked out by Gabriel Clemens | https://www.bbc.co.uk/sport/darts/64140220?at_medium=RSS&at_campaign=KARANGA | World Darts Championship Gerwyn Price knocked out by Gabriel ClemensGerwyn Price is knocked out as Michael van Gerwen Michael Smith Gabriel Clemens and Dimitri van den Bergh reach the World Darts Championship semi finals | 2023-01-01 22:23:32 |
ビジネス | 東洋経済オンライン | 20代を犠牲にしてわかった怪しいビジネスの裏側 なぜ真面目で仕事のできる人が闇落ちするのか | リーダーシップ・教養・資格・スキル | 東洋経済オンライン | https://toyokeizai.net/articles/-/639961?utm_source=rss&utm_medium=http&utm_campaign=link_back | 東洋経済オンライン | 2023-01-02 07:30:00 |
仮想通貨 | BITPRESS(ビットプレス) | bitFlyer Blockchain、web3の概念・サービス事例を網羅した「web3リサーチ2023」を公開 | https://bitpress.jp/count2/3_9_13514 | bitflyerblockchain | 2023-01-02 07:53:05 |
コメント
コメントを投稿