{"id":18950411,"url":"https://github.com/pptrrns/testing","last_synced_at":"2026-01-26T18:51:14.452Z","repository":{"id":257166818,"uuid":"856982568","full_name":"pptrrns/testing","owner":"pptrrns","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-29T20:50:52.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T02:13:35.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pptrrns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-13T15:20:17.000Z","updated_at":"2024-10-29T20:50:56.000Z","dependencies_parsed_at":"2024-09-15T05:23:20.095Z","dependency_job_id":"e1a04942-0b0f-4d87-8f9d-c491efb1bb9d","html_url":"https://github.com/pptrrns/testing","commit_stats":null,"previous_names":["pptrrns/testing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pptrrns%2Ftesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pptrrns%2Ftesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pptrrns%2Ftesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pptrrns%2Ftesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pptrrns","download_url":"https://codeload.github.com/pptrrns/testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239947934,"owners_count":19723190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T13:22:52.865Z","updated_at":"2026-01-26T18:51:14.408Z","avatar_url":"https://github.com/pptrrns.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# testing\n\n### Bash\n\n### let`s Git Started\n\n```sh\n# Change directory\ncd ~/path/to/repo       \n\n# List files in the directory\nls                                    \n\n# Display the status of the repository\ngit status\n\n# Stage all changed files for the next commit\ngit add .\n\n# Take a snapshot and store it in the log with a comment\ngit commit -m 'Comment'  \n\n# List the repository aliases on your machine and on GitHub (default are master and origin)\ngit remote -v\n\n# Pull changes from origin (alias of the repo on GitHub) to master (alias of the repo on your machine)\ngit pull origin master \n\n# Push changes from master (alias of the repo on your machine) to origin (alias of the repo on GitHub)\ngit push origin master\n\n# List local branches (Check the current branch)\ngit branch\n\n# List all remote branches\ngit branch -r\n\n# List both local and remote branches\ngit branch -a\n\n# Switch to a different branch\ngit checkout branch/name\n  \n# Checkout a specific commit by its identifier\ngit checkout num-del-commit\n\n# Return to the most recent commit on the master branch\ngit checkout master\n\n# List commits in a shortened format\ngit log --pretty=oneline --abbrev-commit\n\n# Undo all commits after [commit], preserving changes locally\ngit reset [commit]\n\n# Discard all history and changes back to the specified commit\ngit reset --hard [commit]\ngit reset --hard\n\n# Force a push (useful when a local commit is deleted)\n### Refer to: https://7sabores.com/blog/como-revertir-un-push-git\ngit push origin +master\ngit push --force\n\n# Remove a file (e.g., rm data.tmp)\nrm [file]   \n\n# Remove a file with confirmation\nrm -i [file]\n\n# Open the directory in Finder\nopen .\n\n# Clear the terminal\ncommand+K\n```\n\n### bib-tidy\n\n```sh\n# Install bibtex-tidy globally using npm\nnpm install -g bibtex-tidy\n\n# To format a .bib file\nbibtex-tidy references.bib\n\n# To remove the url parametrer\nbibtex-tidy --omit=url references.bib\n\n# Enclose all property values in braces\nbibtex-tidy --curly references.bib\n\n# Strip quotes and braces from numeric/month values\nbibtex-tidy --numeric references.bib\n\n# Convert all months to three letter abbreviations\nbibtex-tidy --months references.bib\n\n# Indent all fields with the specified number of spaces\nbibtex-tidy --space=4 references.bib\n\n# Indent all fields with a tab\nbibtex-tidy --tab references.bib\n\n# Insert whitespace between fields and values so that values are visually aligned\nbibtex-tidy --align=14 references.bib\n\n# Sort entries by the specified field names\nbibtex-tidy --sort references.bib\n--sort (sort by citation key)\n--sort=-year,name (sort year descending then name ascending)\n--sort=name,year\n\n# Where values are all caps, make them title case\nbibtex-tidy --drop-all-caps references.bib\n\n# Where an entire value is enclosed in double braces, remove the extra braces\nbibtex-tidy --strip-enclosing-braces references.bib\n\n# Use\nbibtex-tidy --curly --numeric --months --space=4 --tab --strip-enclosing-braces --sort --drop-all-caps file.bib\n\nbibtex-tidy --curly --numeric --months --space=4 --tab --strip-enclosing-braces --sort --drop-all-caps file.bib\n\nbibtex-tidy --curly --numeric --months --modify --space=4 --tab --strip-enclosing-braces --sort=key --duplicates=doi --omit=abstract,keywords --drop-all-caps --sort-fields=author,title,year --remove-empty-fields --escape --encode-urls file.bib\n```\n\n### pre-commit\n\n```sh\n# Install the pre-commit package using pip\npip install pre-commit\n\n# Display the installed version of pre-commit\npre-commit --version\n\n# Run all pre-commit hooks on all files in the repository\npre-commit run --all-files\n\n# Perform a full integrity check on the Git repository\ngit fsck --full`\n\n# Format and indent the LaTeX file, overwriting the original file\nlatexindent.pl r-packages.tex -o r-packages.tex\n```\n\n## LaTex\n\n### thesis template commands\n\n````Tex\n% Section formatting\n\n\\part{Your Part Title}\n\\chapter{Your Chapter Title}\n\\section{Your Section Title}\n\\subsection{Your Subsection Title}\n\\subsubsection{Your Subsubsection Title}\n\\paragraph{Your Paragraph Title}\n\\subparagraph{Your Subparagraph Title}\n\n% Text size\n\n\\Huge\n\\huge\n\\LARGE\n\\Large\n\\large\n\\normalsize\n\\small\n\\footnotesize\n\\scriptsize\n\\tiny\n\n% Font shapes\n\n\\emph{} % This is Italic Shape\n\\scshape{} % This is Small Caps Shape\n\n% New thought block\n\n\\newthought{Your new thought here} \n\n% Analytical Index entries\n\n\\analyticentry{Your Index Term 1}\n\\analytics{Your Index Term 1}\n\n% Label and References\n\n\\hyperref[tab:figura1]{Figura \\ref{fig:figura1}}\n\n\\label{tab:tabla1} % Table reference\n\\label{apendiceA} % Appendices references\n\\label{introduction} % Chapter reference\n\n% Center environment\n\n\\begin{center}\n  Your centered content goes here\n\\end{center}\n\n% Itemize and enumerate environments\n\n\\begin{itemize}\n  \\item Your item 1\n  \\item Your item 2\n\\end{itemize}\n\n\\begin{enumerate}\n  \\item Your item 1\n  \\item Your item 2\n\\end{enumerate}\n\n% Quote Environment\n\n\\begin{quote}\n  \\lipsum[2]\n\\end{quote}\n\n% Savequote environment\n\n\\begin{savequote}[85mm]\n  \\small{Your quote here.}\n  \\qauthor{Your Author}\n\\end{savequote}\n\n% Equation Environment\n\n\\begin{equation}\nx = 1\n\\end{equation}\n\n% Figure Environment\n\n\\begin{figure}[H]\n    \\centering \n        \\includegraphics[width = \\textwidth]{figures/fig#}\n        \\caption[Lorem Ipsum]{Proin at eros...\n    \\label{fig:figura#}}\n\\end{figure}\n\n% Full page figure Environment\n\n\\newpage\n\\thispagestyle{empty}\n\\begin{landscape}\n\\thispagestyle{empty}\n  \\begin{figure}[p]\n    \\centering\n    \\includegraphics[width = \\linewidth, keepaspectratio]{figures/fig#.png}\n    \\caption[Lorem Ipsum]{Proin at eros...}\n    \\label{fig:figura#}\n  \\end{figure}\n\\end{landscape}\n\n% Code Listing Environment\n\n\\begin{lstlisting}[language = R, caption = Lorem Ipsum]\n    Lorem Ipsum\n\\end{lstlisting}\n\n% Footnotes\n\n\\footnote{Lorem ipsum.}\\textsuperscript{,}\\footnote{Lorem ipsum.}\n\n\\footnote{\\lipsum[8]}\n\n% References\n\n% The references.bib file contains the references. By default, the references are cited in the APSA style. \n% Use the command \\citep{} to manage the references.\n\n\\citep{BibTeX key, BibTeX key}\n\n\\citep[pg.~32]{BibTeX key}\n\n\\citep{BibTeX key}\n\n\\citep[\\emph{véase}][pg.~5]{BibTeX key}\n\n\\citep[Chap.~5]{BibTeX key}\n\n% Page settings\n\n\\blankpage % Add a blank page\n\\newpage % Add a new page\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpptrrns%2Ftesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpptrrns%2Ftesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpptrrns%2Ftesting/lists"}