diff options
Diffstat (limited to '')
8 files changed, 311 insertions, 0 deletions
diff --git a/locale/fr/LC_MESSAGES/_tils/2020-08-12-simple-filename-timestamp.po b/locale/fr/LC_MESSAGES/_tils/2020-08-12-simple-filename-timestamp.po index 32d3caa..b31dc6a 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-08-12-simple-filename-timestamp.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-08-12-simple-filename-timestamp.po @@ -44,6 +44,18 @@ msgstr "" msgid "updated_at:" msgstr "" +msgid "" +"./my-program.sh > my-program.$(date -I).log\n" +"cp post-template.md _posts/$(date -I)-post-slug.md\n" +msgstr "" + +msgid "" +"# inside my-program.sh\n" +"echo \"Program started at $(date -Is)\"\n" +"# output is:\n" +"# Program started at 2020-08-12T09:04:58-03:00\n" +msgstr "" + #~ msgid "" #~ "title: Simple filename timestamp\n" #~ "date: 2020-08-12\n" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po b/locale/fr/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po index e5902b5..a11e17c 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po @@ -102,3 +102,86 @@ msgstr "" msgid "Happy writing :)" msgstr "" + +msgid "" +"Jekyll::Hooks.register :documents, :post_render do |doc|\n" +" if doc.output_ext == \".html\"\n" +" doc.output =\n" +" doc.output.gsub(\n" +" /<h([1-6])(.*?)id=\"([\\w-]+)\"(.*?)>(.*?)<\\/h[1-6]>/,\n" +" '<a href=\"#\\3\"><h\\1\\2id=\"\\3\"\\4>\\5</h\\1></a>'\n" +" )\n" +" end\n" +"end\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<h2 id=\"my-header\">\n" +" My header\n" +"</h2>\n" +"...more unmodified text...\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<a href=\"#my-header\">\n" +" <h2 id=\"my-header\">\n" +" My header\n" +" </h2>\n" +"</a>\n" +"...more unmodified text...\n" +msgstr "" + +msgid "" +"PREFIX = '<pre class=\"lineno\">'\n" +"POSTFIX = '</pre>'\n" +"Jekyll::Hooks.register :documents, :post_render do |doc|\n" +" if doc.output_ext == \".html\"\n" +" code_block_counter = 1\n" +" doc.output = doc.output.gsub(/<pre class=\"lineno\">[\\n0-9]+<\\/pre>/) do |match|\n" +" line_numbers = match\n" +" .gsub(/<pre class=\"lineno\">([\\n0-9]+)<\\/pre>/, '\\1')\n" +" .split(\"\\n\")\n" +"\n" +" anchored_line_numbers_array = line_numbers.map do |n|\n" +" id = \"B#{code_block_counter}-L#{n}\"\n" +" \"<a id=\\\"#{id}\\\" href=\\\"##{id}\\\">#{n}</a>\"\n" +" end\n" +" code_block_counter += 1\n" +"\n" +" PREFIX + anchored_line_numbers_array.join(\"\\n\") + POSTFIX\n" +" end\n" +" end\n" +"end\n" +msgstr "" + +msgid "" +"kramdown:\n" +" syntax_highlighter_opts:\n" +" span:\n" +" line_numbers: false\n" +" block:\n" +" line_numbers: true\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<pre class=\"lineno\">1\n" +"2\n" +"3\n" +"4\n" +"5\n" +"</pre>\n" +"...more unmodified text...\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<pre class=\"lineno\"><a id=\"B1-L1\" href=\"#B1-L1\">1</a>\n" +"<a id=\"B1-L2\" href=\"#B1-L2\">2</a>\n" +"<a id=\"B1-L3\" href=\"#B1-L3\">3</a>\n" +"<a id=\"B1-L4\" href=\"#B1-L4\">4</a>\n" +"<a id=\"B1-L5\" href=\"#B1-L5\">5</a></pre>\n" +"...more unmodified text...\n" +msgstr "" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.po b/locale/fr/LC_MESSAGES/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.po index 5afa66e..da7b3ee 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.po @@ -64,3 +64,35 @@ msgid "" "[GIT: Checkout to a specific folder](https://stackoverflow.com/a/16493707) " "(StackOverflow)" msgstr "" + +msgid "" +"git log\n" +"# search for a the commit I'm looking for\n" +"git show <my-commit>\n" +"# see the diff for the commit\n" +msgstr "" + +msgid "" +"git clone <original-repo> /tmp/tmp-repo-clone\n" +"cd /tmp-repo-clone\n" +"git checkout <my-commit>\n" +msgstr "" + +msgid "" +"--work-tree=<path>\n" +" Set the path to the working tree. It can be an absolute path or a path relative to the current working\n" +" directory. This can also be controlled by setting the GIT_WORK_TREE environment variable and the\n" +" core.worktree configuration variable (see core.worktree in git-config(1) for a more detailed\n" +" discussion).\n" +msgstr "" + +msgid "" +"mkdir copy\n" +"git --work-tree=copy/ checkout .\n" +msgstr "" + +msgid "git --work-tree=<dir> checkout <my-commit> -- .\n" +msgstr "" + +msgid "git --work-tree=<dir> checkout <my-commit> -- src/\n" +msgstr "" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-08-16-search-in-git.po b/locale/fr/LC_MESSAGES/_tils/2020-08-16-search-in-git.po index ded01f2..5668d46 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-08-16-search-in-git.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-08-16-search-in-git.po @@ -50,3 +50,22 @@ msgid "" "[0]: {% link _tils/2020-08-14-browse-a-git-repository-at-a-specific-" "commit.md %}" msgstr "" + +msgid "" +"git show\n" +"# shows the latest commit\n" +"git show <commit>\n" +"# shows an specific <commit>\n" +"git show v1.2\n" +"# shows commit tagged with v1.2\n" +msgstr "" + +msgid "git log --grep='refactor'\n" +msgstr "" + +msgid "" +"git grep 'TODO'\n" +"# search the repository for the \"TODO\" string\n" +"git grep 'TODO' $(git rev-list --all)\n" +"# search the whole history for \"TODO\" string\n" +msgstr "" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-08-28-grep-online-repositories.po b/locale/fr/LC_MESSAGES/_tils/2020-08-28-grep-online-repositories.po index 04c099f..483fc9a 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-08-28-grep-online-repositories.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-08-28-grep-online-repositories.po @@ -86,3 +86,81 @@ msgstr "" msgid "When no argument is provided, it prints the usage text:" msgstr "" + +msgid "" +"#!/usr/bin/env bash\n" +"set -eu\n" +"\n" +"end=\"\\033[0m\"\n" +"red=\"\\033[0;31m\"\n" +"red() { echo -e \"${red}${1}${end}\"; }\n" +"\n" +"usage() {\n" +" red \"Missing argument $1.\\n\"\n" +" cat <<EOF\n" +"Usage:\n" +" $0 <REGEX_PATTERN> <REPOSITORY_URL>\n" +"\n" +" Arguments:\n" +" REGEX_PATTERN Regular expression that \"git grep\" can search\n" +" REPOSITORY_URL URL address that \"git clone\" can download the repository from\n" +"\n" +"Examples:\n" +" Searching \"make get-git\" in cgit repository:\n" +" git search 'make get-git' https://git.zx2c4.com/cgit/\n" +" git search 'make get-git' https://git.zx2c4.com/cgit/ -- \\$(git rev-list --all)\n" +"EOF\n" +" exit 2\n" +"}\n" +"\n" +"\n" +"REGEX_PATTERN=\"${1:-}\"\n" +"REPOSITORY_URL=\"${2:-}\"\n" +"[[ -z \"${REGEX_PATTERN}\" ]] && usage 'REGEX_PATTERN'\n" +"[[ -z \"${REPOSITORY_URL}\" ]] && usage 'REPOSITORY_URL'\n" +"\n" +"mkdir -p /tmp/git-search\n" +"DIRNAME=\"$(echo \"${REPOSITORY_URL%/}\" | rev | cut -d/ -f1 | rev)\"\n" +"if [[ ! -d \"/tmp/git-search/${DIRNAME}\" ]]; then\n" +" git clone \"${REPOSITORY_URL}\" \"/tmp/git-search/${DIRNAME}\"\n" +"fi\n" +"pushd \"/tmp/git-search/${DIRNAME}\"\n" +"\n" +"shift 3 || shift 2 # when \"--\" is missing\n" +"git grep \"${REGEX_PATTERN}\" \"${@}\"\n" +msgstr "" + +msgid "" +"$ git search 'make get-git' https://git.zx2c4.com/cgit/\n" +"Clonage dans '/tmp/git-search/cgit'...\n" +"remote: Enumerating objects: 542, done.\n" +"remote: Counting objects: 100% (542/542), done.\n" +"remote: Compressing objects: 100% (101/101), done.\n" +"warning: object 51dd1eff1edc663674df9ab85d2786a40f7ae3a5: gitmodulesParse: could not parse gitmodules blob\n" +"remote: Total 7063 (delta 496), reused 446 (delta 441), pack-reused 6521\n" +"Réception d'objets: 100% (7063/7063), 8.69 Mio | 5.39 Mio/s, fait.\n" +"Résolution des deltas: 100% (5047/5047), fait.\n" +"/tmp/git-search/cgit ~/dev/libre/songbooks/docs\n" +"README: $ make get-git\n" +"\n" +"$ git search 'make get-git' https://git.zx2c4.com/cgit/\n" +"/tmp/git-search/cgit ~/dev/libre/songbooks/docs\n" +"README: $ make get-git\n" +msgstr "" + +msgid "" +"$ git search\n" +"Missing argument REGEX_PATTERN.\n" +"\n" +"Usage:\n" +" /home/andreh/dev/libre/dotfiles/scripts/ad-hoc/git-search <REGEX_PATTERN> <REPOSITORY_URL>\n" +"\n" +" Arguments:\n" +" REGEX_PATTERN Regular expression that \"git grep\" can search\n" +" REPOSITORY_URL URL address that \"git clone\" can download the repository from\n" +"\n" +"Examples:\n" +" Searching \"make get-git\" in cgit repository:\n" +" git search 'make get-git' https://git.zx2c4.com/cgit/\n" +" git search 'make get-git' https://git.zx2c4.com/cgit/ -- $(git rev-list --all)\n" +msgstr "" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-09-04-send-emails-using-the-command-line-for-fun-and-profit.po b/locale/fr/LC_MESSAGES/_tils/2020-09-04-send-emails-using-the-command-line-for-fun-and-profit.po index 7164578..1409e61 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-09-04-send-emails-using-the-command-line-for-fun-and-profit.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-09-04-send-emails-using-the-command-line-for-fun-and-profit.po @@ -54,3 +54,45 @@ msgstr "" msgid "Send yourself some emails to see it working!" msgstr "" + +msgid "" +"# file /etc/ssmtp/ssmtp.conf\n" +"FromLineOverride=YES\n" +"MailHub=smtp.gmail.com:587\n" +"UseSTARTTLS=YES\n" +"UseTLS=YES\n" +"rewriteDomain=gmail.com\n" +"root=username@gmail.com\n" +"AuthUser=username\n" +"AuthPass=password\n" +msgstr "" + +msgid "echo body | mail -aFrom:email@example.com email@example.com -s subject\n" +msgstr "" + +msgid "" +"# report a backup cronjob, attaching logs\n" +"set -e\n" +"\n" +"finish() {\n" +" status=$?\n" +" if [[ $status = 0 ]]; then\n" +" STATUS=\"SUCCESS (status $status)\"\n" +" else\n" +" STATUS=\"FAILURE (status $status)\"\n" +" fi\n" +"\n" +" mail user@example.com \\\n" +" -s \"Backup job report on $(hostname): ${STATUS}\" \\\n" +" --content-type 'text/plain; charset=utf-8' \\\n" +" -A\"$LOG_FILE\" <<< 'The log report is in the attachment.'\n" +"}\n" +"trap finish EXIT\n" +"\n" +"do-long-backup-cmd-here\n" +msgstr "" + +msgid "" +"# share the output of a cmd with someone\n" +"some-program | mail someone@example.com -s \"The weird logs that I was talking about\"\n" +msgstr "" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-09-05-pull-requests-with-git-the-old-school-way.po b/locale/fr/LC_MESSAGES/_tils/2020-09-05-pull-requests-with-git-the-old-school-way.po index 9ffff93..2156000 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-09-05-pull-requests-with-git-the-old-school-way.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-09-05-pull-requests-with-git-the-old-school-way.po @@ -105,3 +105,42 @@ msgstr "" msgid "Check `git help request-pull` for more info." msgstr "" + +msgid "" +"$ git request-pull HEAD public-origin\n" +"The following changes since commit 302c9f2f035c0360acd4e13142428c100a10d43f:\n" +"\n" +" db post: Add link to email exchange (2020-09-03 21:23:55 -0300)\n" +"\n" +"are available in the Git repository at:\n" +"\n" +" https://git.euandreh.xyz/website/\n" +"\n" +"for you to fetch changes up to 524c646cdac4153e54f2163e280176adbc4873fa:\n" +"\n" +" db post: better pinpoint sqlite unsuitability (2020-09-03 22:08:56 -0300)\n" +"\n" +"----------------------------------------------------------------\n" +"EuAndreh (1):\n" +" db post: better pinpoint sqlite unsuitability\n" +"\n" +" _posts/2020-08-31-the-database-i-wish-i-had.md | 12 ++++++------\n" +" 1 file changed, 6 insertions(+), 6 deletions(-)\n" +msgstr "" + +msgid "$ git remote add public-origin https://example.com/user/repo\n" +msgstr "" + +msgid "" +"# send a PR with your last commit to the author's email\n" +"git request-pull HEAD public-origin | mail author@example.com -s \"PR: Add thing to repo\"\n" +"\n" +"# send a PR with your last 5 commits to the project's mailing\n" +"# list, including the patch\n" +"git request-pull HEAD~5 public-origin -p | \\\n" +" mail list@example.com -s \"PR: Add another thing to repo\"\n" +"\n" +"# send every commit that is new in \"other-branch\"\n" +"git request-pull master public-origin other-branch | \\\n" +" mail list@example.com -s 'PR: All commits from my \"other-brach\"'\n" +msgstr "" diff --git a/locale/fr/LC_MESSAGES/_tils/2020-10-11-search-changes-to-a-filename-pattern-in-git-history.po b/locale/fr/LC_MESSAGES/_tils/2020-10-11-search-changes-to-a-filename-pattern-in-git-history.po index 5aed337..93a61e6 100644 --- a/locale/fr/LC_MESSAGES/_tils/2020-10-11-search-changes-to-a-filename-pattern-in-git-history.po +++ b/locale/fr/LC_MESSAGES/_tils/2020-10-11-search-changes-to-a-filename-pattern-in-git-history.po @@ -37,3 +37,9 @@ msgid "" "commit.md %} [git-til-2]: {% link _tils/2020-08-16-search-in-git.md %} [git-" "til-3]: {% link _tils/2020-08-28-grep-online-repositories.md %}" msgstr "" + +msgid "git log -- *pattern*\n" +msgstr "" + +msgid "git log -p -- **/*pattern*\n" +msgstr "" |