Skip to content

Instantly share code, notes, and snippets.

View zouhir's full-sized avatar
🪀
Yoyo

Zouhir ⚡️ zouhir

🪀
Yoyo
View GitHub Profile
I'd be happy to help you create a simple fish shell configuration. Let's break this down into manageable pieces to address your requirements.
## 1. Simple Two-Line Prompt with SSH Awareness
For a two-line prompt that indicates when you're SSH'd into your dev server, we can create a simple config file. Here's what we'll do:
1. First, let's create or edit your fish configuration file
2. Add a simple two-line prompt configuration
3. Make sure it shows when you're SSH'd into a server
package location
type LocationType string
const (
Governorate LocationType = "governorate"
District LocationType = "district"
Subdistrict LocationType = "subdistrict"
Community LocationType = "community"
)
{
"location": {
"id": "SY01",
"type": "governorate",
"names": {
"en": "Damascus",
"ar": "دمشق"
},
"coordinates": {
"lat": 33.471206,
{
"location": {
"id": "SY02",
"type": "governorate",
"names": {
"en": "Aleppo",
"ar": "حلب"
},
"coordinates": {
"lat": 36.258315,
private async getGitHubToken(scopes: readonly string[]): Promise<[string, string]> {
return window.withProgress<[string, string]>({
location: ProgressLocation.Notification,
title: "Signing in to GitHub...",
cancellable: true
}, async (_, token) => {
const state = uuid();
const scopeString = scopes.join(' ');
const authUrl = `${GITHUB_AUTH_URL}` +
`?client_id=${config.githubClientId}` +
@zouhir
zouhir / V2
Last active January 14, 2025 04:04
package report
import (
"time"
"github.com/google/uuid"
"github.com/zouhir/syria-open-data/internal/domain"
)
// Constants for validation and business logic
const (
const fs = require('fs');
const papa = require('papaparse');
// Helper function to properly escape Arabic text
const escapeArabic = (text) => {
return text.replace(/"/g, '\\"');
};
// Read and parse the CSV file
const processCSV = (filePath) => {
<!doctype HTML>
<!--
This test creates a flex box with 10,000 non-trivial items. It locks the
container and adjusts its width continuously. If content-visibility is properly
optimized, then the width adjustments are very quick (< one frame). Otherwise,
the layout recalculation leaks into the children element and the width
adjustments are slow.
-->
<!doctype HTML>
<!--
This test creates a flex box with 10,000 non-trivial items. It locks the
container and adjusts its width continuously. If content-visibility is properly
optimized, then the width adjustments are very quick (< one frame). Otherwise,
the layout recalculation leaks into the children element and the width
adjustments are slow.
-->
#!/bin/bash
set -e # -e: exit on error
#######################################
# macOS Command Line Tools
#######################################
if pkgutil --pkgs=com.apple.pkg.CLTools_Executables >/dev/null; then
echo CommandLineTools: $(pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | awk '/version:/ {print $2}')