Skip to content

Instantly share code, notes, and snippets.

These steps have to be performed on both nodes.

set net.bridge.bridge-nf-call-iptables to 1:

cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
br_netfilter
EOF
@Muaad-Akmal
Muaad-Akmal / lib.ts
Last active October 21, 2024 06:36
Expo supabase Client
import "react-native-url-polyfill/auto";
import * as SecureStore from "expo-secure-store";
import { createClient } from "@supabase/supabase-js";
const ExpoSecureStoreAdapter = {
getItem: (key: string) => {
return SecureStore.getItemAsync(key);
},
setItem: (key: string, value: string) => {
SecureStore.setItemAsync(key, value);
@Muaad-Akmal
Muaad-Akmal / profile
Last active July 5, 2024 02:04
[vscode-webdev-profile ]
{"name":"webdev","settings":"{\"settings\":\" {\\r\\n \\\"code-runner.runInTerminal\\\": true,\\r\\n \\\"editor.fontLigatures\\\": true,\\r\\n \\\"workbench.editorAssociations\\\": {\\r\\n \\\"*.ipynb\\\": \\\"jupyter-notebook\\\"\\r\\n },\\r\\n \\\"[dart]\\\": {\\r\\n \\\"editor.formatOnSave\\\": false,\\r\\n \\\"editor.formatOnType\\\": true,\\r\\n \\\"editor.rulers\\\": [\\r\\n 80\\r\\n ],\\r\\n \\\"editor.selectionHighlight\\\": false,\\r\\n \\\"editor.suggest.snippetsPreventQuickSuggestions\\\": false,\\r\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\r\\n \\\"editor.tabCompletion\\\": \\\"onlySnippets\\\",\\r\\n \\\"editor.wordBasedSuggestions\\\": \\\"off\\\",\\r\\n },\\r\\n \\\"notebook.cellToolbarLocation\\\": {\\r\\n \\\"default\\\": \\\"right\\\",\\r\\n \\\"jupyter-notebook\\\": \\\"left\\\"\\r\\n },\\r\\n \\\"tabnine.experimentalAutoImports\\\": true,\\r\\n \\\"C_Cpp.up
@Muaad-Akmal
Muaad-Akmal / emmet
Last active December 9, 2023 04:44
Emmets
https://docs.emmet.io/cheat-sheet/
@Muaad-Akmal
Muaad-Akmal / .clang-format
Last active April 28, 2025 03:36
C/C++ debug launch file , contains both gdb and windows cl debugger
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
BreakBeforeBraces: Attach
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakBeforeMultilineStrings: true
ColumnLimit: 0