diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..2e80650d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,10 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: automation +assignees: DavidKRK, Claude, Codex + +--- + +[![Weekly Backup & Archive](https://github.com/DavidKRK/DavidKRK.github.io/actions/workflows/backup.yml/badge.svg)](https://github.com/DavidKRK/DavidKRK.github.io/actions/workflows/backup.yml) diff --git a/.github/workflows/backup.yml b/.github/workflows/backup.yml index 5a58e780..2b61ba79 100644 --- a/.github/workflows/backup.yml +++ b/.github/workflows/backup.yml @@ -2,7 +2,6 @@ name: Weekly Backup & Archive on: schedule: - # Sauvegarde automatique chaque dimanche à 00:00 (UTC) - cron: '0 0 * * 0' workflow_dispatch: @@ -13,6 +12,7 @@ jobs: create-backup: name: Create Weekly Backup runs-on: ubuntu-latest + steps: - name: Checkout gh-pages uses: actions/checkout@v4 @@ -20,60 +20,34 @@ jobs: ref: gh-pages fetch-depth: 0 - - name: Create backup branch if not exists - run: | - git fetch origin backups || git branch backups - git checkout -B backups - git push -f origin backups - - name: Generate backup run: | DATE=$(date +%Y-%m-%d_%H-%M-%S) BACKUP_DIR="backup-$DATE" mkdir -p "$BACKUP_DIR" - - # Copy all files except .git and backups + + # Copie du site en excluant .git et anciens backups rsync -av --exclude='.git' --exclude='backup-*' ./ "$BACKUP_DIR/" - - # Create archive + + # Archive compressée tar -czf "$BACKUP_DIR.tar.gz" "$BACKUP_DIR" - + echo "Backup created: $BACKUP_DIR.tar.gz" ls -lh "$BACKUP_DIR.tar.gz" - - name: Commit backup to backups branch - run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - - DATE=$(date +%Y-%m-%d_%H-%M-%S) - - # Keep only the archive, not the folder - rm -rf backup-*/ - - git add *.tar.gz - git commit -m "backup: weekly archive $DATE" || echo "No changes to commit" - git push origin backups - - - name: Cleanup old backups (keep last 8 weeks) - run: | - # Keep only the 8 most recent backup files - ls -t backup-*.tar.gz | tail -n +9 | xargs -r rm - git add -A - git commit -m "chore: cleanup old backups" || echo "No old backups to remove" - git push origin backups || true + # ⚠️ Plus de commit/push des .tar.gz dans 'backups' - name: Create GitHub Release with backup uses: softprops/action-gh-release@v1 with: tag_name: backup-${{ github.run_number }} - name: Weekly Backup - $(date +%Y-%m-%d) + name: Weekly Backup - ${{ github.run_number }} body: | - 🗄️ **Automatic Weekly Backup** - - Created: $(date) + 🗄️ Automatic Weekly Backup + + Created: ${{ github.run_id }} Trigger: Scheduled (every Sunday) - + This backup contains a complete snapshot of the website. files: backup-*.tar.gz draft: false diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..7f1bd6de --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,103 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL Advanced" + +on: + push: + branches: [ "gh-pages" ] + pull_request: + branches: [ "gh-pages" ] + schedule: + - cron: '44 17 * * 1' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners (GitHub.com only) + # Consider using larger runners or machines with greater resources for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: javascript-typescript + build-mode: none + - language: ruby + build-mode: none + # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Add any setup steps before running the `github/codeql-action/init` action. + # This includes steps like installing compilers or runtimes (`actions/setup-node` + # or others). This is typically only required for manual builds. + # - name: Setup runtime (example) + # uses: actions/setup-example@v1 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - name: Run manual build steps + if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/social-media-post.yml b/.github/workflows/social-media-post.yml index 21ca8264..52656be0 100644 --- a/.github/workflows/social-media-post.yml +++ b/.github/workflows/social-media-post.yml @@ -1,5 +1,8 @@ name: social-media-post +permissions: + contents: read + on: # Pour l’instant: uniquement déclenché à la main depuis l’onglet Actions workflow_dispatch: diff --git a/Gemfile.lock b/Gemfile.lock index ade2bc3c..d73b9cc9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -77,7 +77,7 @@ GEM sass-embedded (~> 1.75) jekyll-watch (2.2.1) listen (~> 3.0) - json (2.15.1) + json (2.15.2.1) kramdown (2.5.1) rexml (>= 3.3.9) kramdown-parser-gfm (1.1.0) diff --git a/README.md b/README.md index 57385bff..0e7fe9f3 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,9 @@ git push origin gh-pages All rights reserved © 2026 David KRK +" MAY THE TECHNO BE WITH YOU " +David KRK + --- **© 2026 David KRK** | Spinning since September 1999 🎧 diff --git a/assets/js/dj-app.js b/assets/js/dj-app.js new file mode 100644 index 00000000..5a95d35e --- /dev/null +++ b/assets/js/dj-app.js @@ -0,0 +1,190 @@ +// DJ App V1 (2 decks + crossfader + EQ 3 bandes + pitch) +// IMPORTANT : le son ne sortira que si tu charges de vrais fichiers audio (mp3/ogg/wav) dans assets/music/ + +const playlist = [ + { name: 'Track 1 (test)', src: 'assets/music/track1.mp3' }, + { name: 'Track 2 (test)', src: 'assets/music/track2.mp3' }, + { name: 'Track 3 (test)', src: 'assets/music/track3.mp3' } +]; + +const els = { + audioA: document.getElementById('audio-a'), + audioB: document.getElementById('audio-b'), + + trackA: document.getElementById('track-a'), + trackB: document.getElementById('track-b'), + + playA: document.getElementById('play-a'), + pauseA: document.getElementById('pause-a'), + pitchA: document.getElementById('pitch-a'), + eqLowA: document.getElementById('eq-low-a'), + eqMidA: document.getElementById('eq-mid-a'), + eqHighA: document.getElementById('eq-high-a'), + + playB: document.getElementById('play-b'), + pauseB: document.getElementById('pause-b'), + pitchB: document.getElementById('pitch-b'), + eqLowB: document.getElementById('eq-low-b'), + eqMidB: document.getElementById('eq-mid-b'), + eqHighB: document.getElementById('eq-high-b'), + + crossfader: document.getElementById('crossfader'), + playlist: document.getElementById('playlist') +}; + +let audioCtx = null; +let deckA = null; +let deckB = null; + +function ensureAudioContext() { + if (audioCtx) return; + + audioCtx = new (window.AudioContext || window.webkitAudioContext)(); + + deckA = createDeck(els.audioA); + deckB = createDeck(els.audioB); + + // Crossfader au centre au départ + applyCrossfader(parseFloat(els.crossfader.value)); +} + +function createDeck(audioEl) { + const source = audioCtx.createMediaElementSource(audioEl); + + const low = audioCtx.createBiquadFilter(); + low.type = 'lowshelf'; + low.frequency.value = 200; + + const mid = audioCtx.createBiquadFilter(); + mid.type = 'peaking'; + mid.frequency.value = 1000; + mid.Q.value = 1; + + const high = audioCtx.createBiquadFilter(); + high.type = 'highshelf'; + high.frequency.value = 3000; + + const gain = audioCtx.createGain(); + gain.gain.value = 0.5; + + source.connect(low); + low.connect(mid); + mid.connect(high); + high.connect(gain); + gain.connect(audioCtx.destination); + + return { audioEl, source, low, mid, high, gain }; +} + +function setEQ(deck, lowVal, midVal, highVal) { + // sliders 0..2 (1 = neutre) + // on mappe sur un gain dB raisonnable (-12dB .. +12dB) + const toDb = (v) => (v - 1) * 12; + + deck.low.gain.value = toDb(lowVal); + deck.mid.gain.value = toDb(midVal); + deck.high.gain.value = toDb(highVal); +} + +function applyCrossfader(x) { + // x: 0 => deckA full, deckB 0 ; 1 => deckB full, deckA 0 + // courbe simple (linéaire) pour V1 + if (!deckA || !deckB) return; + + deckA.gain.gain.value = 1 - x; + deckB.gain.gain.value = x; +} + +function loadTrack(deck, track) { + deck.audioEl.src = track.src; + deck.audioEl.load(); +} + +function renderPlaylist() { + els.playlist.innerHTML = ''; + + playlist.forEach((t) => { + const wrap = document.createElement('div'); + wrap.style.cssText = 'display:flex; gap:8px; align-items:center; background:#1b1b1b; padding:8px 10px; border-radius:8px;'; + + const title = document.createElement('div'); + title.textContent = t.name; + title.style.cssText = 'min-width:180px;'; + + const btnA = document.createElement('button'); + btnA.textContent = 'Charger A'; + btnA.style.cssText = 'background:#4CAF50;color:#fff;border:none;padding:8px 10px;border-radius:6px;cursor:pointer;'; + btnA.onclick = () => { + ensureAudioContext(); + loadTrack(deckA, t); + els.trackA.textContent = t.name; + }; + + const btnB = document.createElement('button'); + btnB.textContent = 'Charger B'; + btnB.style.cssText = 'background:#4CAF50;color:#fff;border:none;padding:8px 10px;border-radius:6px;cursor:pointer;'; + btnB.onclick = () => { + ensureAudioContext(); + loadTrack(deckB, t); + els.trackB.textContent = t.name; + }; + + wrap.appendChild(title); + wrap.appendChild(btnA); + wrap.appendChild(btnB); + els.playlist.appendChild(wrap); + }); +} + +function wireUI() { + els.playA.onclick = async () => { + ensureAudioContext(); + await audioCtx.resume(); + els.audioA.play(); + }; + els.pauseA.onclick = () => els.audioA.pause(); + els.pitchA.oninput = (e) => (els.audioA.playbackRate = parseFloat(e.target.value)); + + els.playB.onclick = async () => { + ensureAudioContext(); + await audioCtx.resume(); + els.audioB.play(); + }; + els.pauseB.onclick = () => els.audioB.pause(); + els.pitchB.oninput = (e) => (els.audioB.playbackRate = parseFloat(e.target.value)); + + const updateEQA = () => { + if (!deckA) return; + setEQ(deckA, + parseFloat(els.eqLowA.value), + parseFloat(els.eqMidA.value), + parseFloat(els.eqHighA.value) + ); + }; + const updateEQB = () => { + if (!deckB) return; + setEQ(deckB, + parseFloat(els.eqLowB.value), + parseFloat(els.eqMidB.value), + parseFloat(els.eqHighB.value) + ); + }; + + els.eqLowA.oninput = updateEQA; + els.eqMidA.oninput = updateEQA; + els.eqHighA.oninput = updateEQA; + + els.eqLowB.oninput = updateEQB; + els.eqMidB.oninput = updateEQB; + els.eqHighB.oninput = updateEQB; + + els.crossfader.oninput = (e) => applyCrossfader(parseFloat(e.target.value)); +} + +window.addEventListener('DOMContentLoaded', () => { + // Si la section DJ n'est pas présente sur la page, on ne fait rien. + if (!els.audioA || !els.audioB || !els.playlist) return; + + renderPlaylist(); + wireUI(); +}); diff --git a/bio.html b/bio.html index f577289b..ddad6690 100644 --- a/bio.html +++ b/bio.html @@ -4,7 +4,7 @@ - David KRK · Bio · DJ Techno & Producteur + David KRK · BIO · DJ TECHNO & PRODUCER @@ -52,14 +52,10 @@ -
-

David KRK

- -
-

Bio

-
-
+
+

David KRK

+

Bio

+
@@ -77,16 +73,16 @@

Bio

David KRK, né en août 1982, est un DJ qui se produit en Espagne, en France et sur la Côte Basque depuis 2000.

-

Son style de base, Trance / Tech Trance, se diversifie aujourd’hui avec des sonorités plus Techno.

+

Son style de base, Trance / Tech Trance, se diversifie aujourd'hui avec des sonorités plus Techno.

Il est apprécié autant dans les clubs espagnols que dans les complexes français.

Il a partagé des scènes avec des artistes tels que PG-2 (ex résident Txitxarro – Nexo),

Diego ATB (ex résident Txitxarro), The Fluid (ex résident Inox – Zul), Montxo (ex résident Nyx – Zul),

-

ainsi qu’avec le collectif espagnol North Trance Collective (DJ Sergi, DJ Gordon et Unai ATH).

-

Il a mixé dans plusieurs radios et webradios, notamment dans l’émission Line Up sur Espiral FM à Pampelune (99.7), ainsi que sur Hesat Radio.

-

Très vite, David ressent le besoin d’exprimer ses sentiments à travers ses propres mixes.

-

Ses sets viennent du fond du cœur et le style qu’il joue touche le public grâce à cette sensibilité et à ces émotions qui se ressentent.

+

ainsi qu'avec le collectif espagnol North Trance Collective (DJ Sergi, DJ Gordon et Unai ATH).

+

Il a mixé dans plusieurs radios et webradios, notamment dans l'émission Line Up sur Espiral FM à Pampelune (99.7), ainsi que sur Hesat Radio.

+

Très vite, David ressent le besoin d'exprimer ses sentiments à travers ses propres mixes.

+

Ses sets viennent du fond du cœur et le style qu'il joue touche le public grâce à cette sensibilité et à ces émotions qui se ressentent.

Son toucher particulier fait de ce DJ un musicien hors pair : dix minutes lui suffisent pour vous transporter dans son univers.

-

Il choisit ses disques méticuleusement pour qu’ils correspondent à l’instant présent et pour partager cet enthousiasme avec son public.

+

Il choisit ses disques méticuleusement pour qu'ils correspondent à l'instant présent et pour partager cet enthousiasme avec son public.

Son prochain projet sera de produire un son Techno qui deviendra sa référence, et que nous attendons avec impatience.

"May The Techno Be With You"

@@ -222,11 +218,11 @@

Bio

-

© David KRK. All Rights Reserved

-

"May The Techno Be With You"

- -
+

© 2026 David KRK. All Rights Reserved

+

"May The Techno Be With You"

+ + - + \ No newline at end of file diff --git a/contact.html b/contact.html index 826565ef..19ad26a2 100644 --- a/contact.html +++ b/contact.html @@ -138,30 +138,6 @@

Contact

- -
-
-

Ou contactez-moi directement :

-
-
-

Or contact me directly:

-
-
-

O contáctame directamente:

-
-
-

Edo nirekin harremanetan jarri zuzenean:

-
-
-

أو تواصل معي مباشرة:

-
-
-

Або зв'яжіться зі мною безпосередньо:

-
-

- davidkrkofficial@gmail.com -

-