Certbot Docker install SSL



docker exec -it certbot certbot certonly --webroot \
  -w /var/www/certbot \
  -d jcadima.dev -d www.jcadima.dev -d laracms.jcadima.dev -d www.laracms.jcadima.dev \
  --noninteractive --agree-tos --email your-email@example.com

  

After running that command, check if the certificate files exist
docker run --rm -v certs-data:/etc/letsencrypt alpine ls -l /etc/letsencrypt/live/jcadima.dev


docker restart main-nginx


curl -I http://jcadima.dev/.well-known/acme-challenge/test.txt

Submit Score

Submit Score
 public void SubmitScore()
    {
        Debug.Log("Submit Score...");
        if (userName == "")
        {
            Debug.Log("No User Name Found");
        }
        else
        {
            if ((int)elapsedTime > 0)
            {
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(API_URL);
                request.Method = "POST";

                Leaderboard leaderboard = new Leaderboard
                {
                    Id = Guid.Empty,
    

Get Scores - API

Get Scores - API
public void getScores()
    {
        Debug.Log("Get Scores...");
        try
        {
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(API_URL);
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string jsonResponse = reader.ReadToEnd();
            dynamic items = (JArray)JsonConvert.DeserializeObject(jsonResponse);
            scores = item

3169. Count Days Without Meetings

You are given a positive integer days representing the total number of days an employee is available for work (starting from day 1). You are also given a 2D array meetings of size n where, meetings[i] = [start_i, end_i] represents the starting and ending days of meeting i (inclusive). Return the count of days when the employee is available for work but no meetings are scheduled. Note: The meetings may overlap.
/**
 * Function to calculate the number of days an employee is free from meetings.
 * 
 * @param {number} days - Total number of days the employee is available for work.
 * @param {number[][]} meetings - Array of meeting intervals where each meeting is [start, end].
 * @returns {number} - The count of days when the employee is free from meetings.
 */
var countDays = function(days, meetings) {
    // Sort meetings by their start day to process them in chronological order
    meetings.sort((a, b) 

Force Full inventory when Configuration Manager shows multiple operating systems

After an operating system upgrade, Configuration Manager may have multiple Win32_OperatingSystem items even though the actual computer only has 1 listed. Forcing a full inventory is the resolution and should be done immediately after the upgrade. This script is a workaround for the same.
[CmdletBinding()]
param()

begin {
    $BeginLocation = Get-Location
    $CMSite = (Get-PSDrive -PSProvider 'CMSite').Name
    Set-Location -Path "$($CMSite):"
    $ScriptGuid = '44B128A0-EC98-45CB-89F6-2A7C473FE532' # Full Hardware Inventory - Not forced

    function Get-CMDeviceDuplicateOperatingSystem {
        [CmdletBinding()]
        param(
            [Parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
           

Check To See If Defender Updates Scheduled Task Exists

schtasks.exe /Query /TN "CatchAllDefenderUpdates"

Jasper DESOSP - imprimir via sistema

select A.NUMPROTOCOLO, A.CODRELATORIO, A.TIPOEXECUCAO,B.EMAILDESTINATARIO, B.EMAILDESTCOPIA from relatorio_log_execucao  a, relatorio_log b
where a.numprotocolo = b.numprotocolo
AND upper(EMAILDESTINATARIO)  NOT LIKE '%ALLSEG%'
AND UPPER(EMAILDESTCOPIA) NOT LIKE '%ALLSEG%'
and  a.codrelatorio = '31_APOLICE' ----- NOME DO DOCUMENTO JASPER
order by numprotocolo desc


SELECT a.rowid, a.* 
FROM RELATORIO_LOG a 
WHERE ORIGEM = 'EMISSAO' 
ORDER BY numprotocolo;

SELECT a.rowid, a.* 
FRO

Vue advanced

/*
onScopeDispose - Podobně jako onWatcherCleanup, ale obecnější. 
Zavolá se, když je aktuální reaktivní efektový scope (effect scope) ukončen. 
Je to užitečné pro čištění zdrojů v jakémkoliv reaktivním kontextu:
*/

// 1
import { onScopeDispose, effectScope } from 'vue'

// Vytvoření izolovaného scope
const scope = effectScope()

scope.run(() => {
  // Kód uvnitř scope
  
  onScopeDispose(() => {
    // Tento kód se zavolá při scope.stop()
  })
})

// Později můžete ukončit scope
scope.stop()

Watch - advanced

// 1) cleanup when watch is ended
import { watch, onWatcherCleanup } from 'vue'

watch(id, (newId) => {
  const { response, cancel } = doAsyncWork(newId)
  // `cancel` is called if `id` changes or the component unmounts
  onWatcherCleanup(cancel)
})



// 2) better watch with desctruct
const { pause, resume, stop } = watch(source, (newVal, oldVal) => {
  // Watch logic
});

// Pause watching
pause();

// Resume watching
resume();




// 3 watch logic, not only true/false

scroll-timelineで背景の縦方向パララックス

<div class="container">
  <img src="assets/images/1.jpg" class="scrub" alt="" />
</div>

🐦 Retrieve SSL Certificates on Cloud SQL

# Retrieving SSL Certificates for Cloud SQL MySQL Databases
When connecting to a MySQL database hosted on Google Cloud SQL, using SSL certificates 
helps ensure that your data transfers securely between your client and the database server. 

Let's explore:
- ***why* these certificates matter**, 
- ***how* to obtain them using different methods**.

## 🧠 Understanding SSL Certificates in Cloud SQL
Before we dive into the retrieval process, let's understand what these certificates do. 

AlpineJS

<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>

<script>
    document.addEventListener('alpine:init', () => {
        Alpine.data('payment', () => ({
            paymentMethod: '',
        }));
    });
</script>

<select id="payment_method" x-model="paymentMethod">

<template x-if="['bkash', 'nagad', 'rocket'].includes(paymentMethod)">
    <input type="number" name="mfs_number" x-bind:required="['bkash', 'nagad', 'rocket'].includes(paymentM

🐦 Authentication in Colab Enterprise

# Google Secret Manager Authentication in Colab Enterprise
☝️ **Google Colab Enterprise notebooks operate differently from local environments, which affects how authentication works**.

## How Colab Enterprise Changes Authentication
Colab Enterprise **already runs within Google Cloud**, which:
- **simplifies authentication in some ways**
- while **introducing different considerations**:

### Key Differences
1. **You're Already in the Cloud**: Colab Enterprise notebooks run in Google Clo

claude artifacts

1. https://claude.site/artifacts/cd4083fe-8e3d-4ac1-9cfa-44a0825fa7a4
2. https://claude.site/artifacts/7476bd34-d035-4bea-82e5-9d99934dd31a
3. https://claude.site/artifacts/fbc8e46d-4e2f-4e66-829b-e01c12bebc87
4. https://claude.site/artifacts/487436dc-70f5-495e-9525-68708a65886b
5. https://claude.site/artifacts/19f33855-c94b-4427-a6a4-f880d96794e5
6. https://claude.site/artifacts/8dc664b0-68ff-4024-92e7-a3095063f436
7. https://claude.site/artifacts/416d2cf7-5490-4f7e-bea7-33ca878678dd
8. https:/

Add new user for Linux server


adduser yourusername

usermod -aG sudo yourusername

groups yourusername

su - yourusername

sudo whoami

alternative:
sudo visudo

# add your user below root
yourusername ALL=(ALL:ALL) ALL










NerdFonts for powerlevel10k



Download Nerfonts from 
https://www.nerdfonts.com/font-downloads