Skip to content

Instantly share code, notes, and snippets.

View fodil-a's full-sized avatar
🎯
Focusing

Fodil A. fodil-a

🎯
Focusing
View GitHub Profile
@gaetschwartz
gaetschwartz / settings.json
Last active May 9, 2024 07:21
Nest files in Flutter projects on VSCode, inspired from https://github.com/antfu/vscode-file-nesting-config
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml",
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
"*.dart": "$(capture).g.dart, $(capture).freezed.dart",
},
@wilsonowilson
wilsonowilson / index.html
Created July 8, 2021 18:41
Swapping web renderers at runtime
<body>
<script src="js/renderer_switcher.js"></script>
<script>
<!-- Service worker code -->
<!-- This script installs service_worker.js to provide PWA functionality to application. For more information, see: https://developers.google.com/web/fundamentals/primers/service-workers -->
...
@lukepighetti
lukepighetti / Makefile
Last active May 31, 2021 17:29
Basic Flutter Makefile
VERSION = 1.0.0
BUILD = 8
CHANGELOG = Added item counts and a celebration when a list is completed.
.PHONY: clean test build distribute
clean:
flutter clean
flutter pub get
pod repo update
@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active November 12, 2024 19:20
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

Note

If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server.

For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample

@LukeMathWalker
LukeMathWalker / .gitlab-ci.yml
Last active November 3, 2024 05:36
GitLab CI - Rust setup
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- test
@LukeMathWalker
LukeMathWalker / audit.yml
Last active November 11, 2024 17:20
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@phwelo
phwelo / jifi.py
Last active June 15, 2024 09:26
jifi rofi jira menu
#!/usr/bin/python3
from jira import JIRA
from rofi import Rofi
from subprocess import Popen, DEVNULL
r = Rofi()
browser_path = "vivaldi-stable"
jira_uri = 'https://company.atlassian.net'
api_token = 'https://id.atlassian.com/manage/api-tokens' # go here and generate one

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@staltz
staltz / introrx.md
Last active November 17, 2024 01:08
The introduction to Reactive Programming you've been missing