Skip to content

Instantly share code, notes, and snippets.

@Bratzer
Bratzer / hello.c
Last active April 10, 2025 12:55
mon hello word
int main ()
{ printf ("hello word"); return 0;}
@vurentjie
vurentjie / async.lua
Last active April 10, 2025 12:54
mini async/await in lua
---@vararg function
---@return any
local function await(...)
local ok, main = coroutine.running()
if not ok or main then
error('Error: await() cannot be called here.')
end
local args = {...}
@ezracb
ezracb / Generic Volume License Key.txt
Created June 18, 2019 05:20 — forked from CHEF-KOCH/Generic Volume License Key.txt
Microsoft Office 2019 RTM RETAIL Direct Links for Download
https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
=================================================================
Office Professional Plus 2019 NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Office Standard 2019 6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK
Project Professional 2019 B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B
Project Standard 2019 C4F7P-NCP8C-6CQPT-MQHV9-JXD2M
Visio Professional 2019 9BGNQ-K37YR-RQHF2-38RQ3-7VCBB
Visio Standard 2019 7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2
Access 2019 9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT
Excel 2019 TMJWT-YYNMB-3BKTF-644FC-RVXBD
General Development Policies:
Responsiveness
Every web application, including admin panels, must be fully responsive across all devices (mobile, tablet, desktop)
Authentication and Authorization
All APIs must implement proper authentication using tokens. Authorization must be enforced on all API routes to ensure security.
Pagination
Every data-fetching API that returns a list of results must implement pagination. Avoid loading large datasets in one request.
Global Design Architecture
No hardcoding of fonts, colours, or text. Use a global configuration (e.g., a theme or style guide) to maintain consistency across the app.
Code Version Control
@tjsudarsan
tjsudarsan / Change CRLF to LF to all Files.md
Last active April 10, 2025 12:52
Change End of Line Sequence from CRLF to LF to all files in the project for supporting ESLint

Converting the End of Line Sequence from CRLF to LF in any of your project files

Execute the following commands in your root of your project folder

NOTE: Do not do the following steps without commiting your data. As it clears all the git cache and it will clear all your changes in your project.

  1. First disable the autoCRLF in the git config by running the following command in your terminal git config core.autocrlf false

  2. Then remove the cached files in the git. Run the following command:

Writing Style Prompt

  • Focus on clarity: Make your message really easy to understand.
    • Example: "Please send the file by Monday."
  • Be direct and concise: Get to the point; remove unnecessary words.
    • Example: "We should meet tomorrow."
  • Use simple language: Write plainly with short sentences.
    • Example: "I need help with this issue."
  • Stay away from fluff: Avoid unnecessary adjectives and adverbs.
  • Example: "We finished the task."
@janasco
janasco / AnyDesk-Reset.cmd
Created August 3, 2023 09:46
AnyDesk Reset
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@danielhe4rt
danielhe4rt / super-gist-starter.md
Created March 24, 2025 16:40
GitHub Profile Model - by github.com/danielhe4rt

👋 Olá, visitante!

😉 Não sei exatamente como você chegou aqui, mas vou compartilhar um pouco sobre mim.

🌟 Informações Públicas

Meu nome é [Seu Nome Aqui] (também conhecido(a) como [Seu Nickname]). Atualmente, moro em [Cidade, País] e meu objetivo é ajudar outros desenvolvedores a alcançar seus sonhos e metas. 🚀

No meu tempo livre, gosto de participar de comunidades de programação, onde aprendo e compartilho conhecimento sobre diversos tópicos. Desde [Ano] venho me envolvendo em projetos e iniciativas que impulsionam o crescimento da comunidade tecnológica. 🤝

@jbfriedrich
jbfriedrich / nsmb.conf
Last active April 10, 2025 12:48
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
@Tan12d
Tan12d / Leetcode 2999 | Count the Number of Powerful Integers.java
Created April 10, 2025 12:40
Leetcode 2999 | Count the Number of Powerful Integers
class Solution {
private static final int MAX_DIGITS = 17;
private long[][] dp;
public long numberOfPowerfulInt(long start, long finish, int limit, String suffix)
{
long suffixVal = Long.parseLong(suffix);
String finishStr = Long.toString(finish);
String startStr = Long.toString(start-1);