Skip to content

Instantly share code, notes, and snippets.

View nicokosi's full-sized avatar

Nicolas Kosinski nicokosi

View GitHub Profile
@nicokosi
nicokosi / git-cheat-sheet.sh
Last active February 19, 2024 06:11
My own git cheat sheet
### BRANCHES
git checkout -b <branch name> # Create a branch
git branch -r # List remote branches
git checkout <branch name> # Switch to branch (deprecated)
git switch <branch name> # Switch to branch
git checkout <commit ID> # Locally retrieve an old revision
git fetch # retrieve remote changes (commits) without changing local repo ; can be used to fix sync issue
git branch -D branchName # delete local branch
git branch -m <newname> # rename current local branch
git push origin --delete <branchName> # delete remote branch
@nicokosi
nicokosi / learn-how-to-learn.md
Last active January 8, 2024 02:26
Notes about online course "Lean How to Learn" (https://www.coursera.org/learn/learning-how-to-learn)
@nicokosi
nicokosi / activities.csv
Last active September 6, 2023 06:34
Exploring Strava activities via nushell
Activity ID Activity Date Activity Name Activity Type Activity Description Elapsed Time Distance Max Heart Rate Relative Effort Commute Activity Private Note Activity Gear Filename Athlete Weight Bike Weight Elapsed Time Moving Time Distance Max Speed Average Speed Elevation Gain Elevation Loss Elevation Low Elevation High Max Grade Average Grade Average Positive Grade Average Negative Grade Max Cadence Average Cadence Max Heart Rate Average Heart Rate Max Watts Average Watts Calories Max Temperature Average Temperature Relative Effort Total Work Number of Runs Uphill Time Downhill Time Other Time Perceived Exertion <span class="translation_missing" title="translation missing: en-US.lib.export.portability_exporter.activities.horton_values.type">Type</span> <span class="translation_missing" title="translation missing: en-US.lib.export.portability_exporter.activities.horton_values.start_time">Start Time</span> Weighted Average Power Power Count Prefer Perceived Exertion Perceived Relative Effort Com
@nicokosi
nicokosi / data_manipulation.nu
Last active September 6, 2023 02:45
Manipulating data with nushell commands (see https://www.nushell.sh / https://www.nushell.sh/cookbook)
# Download a JSON file from a URL and visualize it:
fetch https://jsonplaceholder.typicode.com/posts
# Visualize a JSON file:
open ./work/tldr/package.json
# Fetch the first 2 JSON array items:
fetch https://jsonplaceholder.typicode.com/posts | first 2
# Fetch raw JSON :
@nicokosi
nicokosi / timeless-software-books.md
Last active August 28, 2023 07:25
Timeless sofware books listed on 2023-02-28 during the Software Crafters Paris meetup (https://www.meetup.com/paris-software-craftsmanship/events/291421743)

Timeless software books

Timeless sofware books listed on 2023-02-28 during the Software Crafters Paris meetup, see the picture on Twitter or Mastodon.

  • The Software Craftsman: Professionalism, Pragmatism, Pride - Sandro Mancuso
  • The Joy of Clojure: Thinking the Clojure Way - Michael Fogus, Chris Houser
  • Effective Java - Joshua Bloch
  • Clean Code: A Handbook of Agile Software Craftsmanship - Robert Martin
  • Systems Performance: Enterprise and the Cloud - Brendan Gregg
@nicokosi
nicokosi / dev-versions.md
Last active July 26, 2023 07:29
development versions in mainstream ecosystems

development versions in mainstream ecosystems 🚧

or: Java Maven SNAPSHOT and friends

Java Maven SNAPSHOT versions

The SNAPSHOT value refers to the 'latest' code along a development branch, and provides no guarantee the code is stable or unchanging. Conversely, the code in a 'release' version (any version value without the suffix SNAPSHOT) is unchanging.

In other words, a SNAPSHOT version is the 'development' version before the final 'release' version. The SNAPSHOT is "older" than its release.

https://maven.apache.org/guides/getting-started/index.html#what-is-a-snapshot-version

@nicokosi
nicokosi / nicokosi-no-cv.md
Last active April 24, 2023 11:48
Mon "non CV" (ou "no-cv")
@nicokosi
nicokosi / slides-créer-son-extension-GitHub-CLI.md
Last active June 15, 2022 04:23
Les slides de ma présentation "créer son extension GitHub CLI", à visualiser avec https://github.com/maaslalani/slides (cf. la version statique Google Slides : https://docs.google.com/presentation/d/1MvoZixlwMvA9bbDoA1d6Gf-sLpX7xkiwnmi5_WBY-vU/edit?usp=sharing)
author
nicokosi

Créer son extension GitHub CLI... 🧑‍💻

...pour joindre l’utile ⚙️ à l’agréable ❤️ ?


Bonjour 👋

query {
repository(owner: "softwarevidal", name: "arthur") {
pullRequests(states: [OPEN]) {
totalCount
}
}
}