Skip to content

Instantly share code, notes, and snippets.

@vyusufcan
vyusufcan / WSManCredSSP.ps1
Last active March 26, 2025 10:54
Enable-WSManCredSSP
Enable-WSManCredSSP -Role "Server" -Force
Enable-WSManCredSSP -Role client -DelegateComputer * -Force
Set-Item -Path "wsman:\localhost\service\auth\credSSP" -Value $True -Force
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation -Name AllowFreshCredentialsWhenNTLMOnly -Force
void spawn_foods(CCpr *env) {
// After each step, check existing foods and spawns new food in the
// neighborhood Iterates over food_list for efficiency instead of the entire
// grid.
FoodList *foods = env->foods;
int original_size = foods->size;
for (int i = 0; i < original_size; i++) {
int idx = foods->indexes[i];
int offset = idx - env->width - 1; // Food spawn in 1 radius
int r = offset / env->width;
@athrsb
athrsb / DataFromEsp.json
Last active March 26, 2025 10:56
Read ESP8266
{
"usuarios": [
{
"nome": "João Silva",
"idade": 30,
"email": "joao.silva@email.com"
},
{
"nome": "Maria Oliveira",
"idade": 25,
@gwpl
gwpl / TITLE_TODO - Gleam Beam (Elixir Erl) Rust JS Harmony.md
Created March 26, 2025 10:53
Gleam Beam (Elixir Erl) Rust JS Harmony

https://chatgpt.com/canvas/shared/67e3d76797548191918408d1c1b61148

<>

Imagine, for a moment, sailing across an endless ocean—not unlike navigating a web application under active users, live data, and shifting UI states, or a globally distributed backend system balancing load spikes, distributed consensus, failovers, and traffic-shaping. Your vessel must withstand unpredictable waves—vast data flows, ever-changing states, networks of tangled dependencies shifting beneath your feet like cascading component updates, form interactions, async fetches, scroll-linked animations, background job queues, or replicated state machines. And yet, many still rely on hastily built rafts, frantically patching leaks as storms of complexity intensify, be it in the UI thread or inside clustered network runtimes.

Could it be we've overlooked lessons patiently crafted by giants who came before—those who dealt with state, fault tolerance, and concurrency long before these became fashionable in modern distributed systems?

Cons

@appgawd
appgawd / agent loop
Created March 26, 2025 10:53 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
당신은 지금부터 아래와 같은 형식의 작업 계획서를 작성하고 / 다루어야 합니다.

ai-todolist.md

# 작업 계획
{당신이 하고자 하는 작업에 대해 이해한대로 최대한 상세히, 제공받은 모든 정보를 이해한대로 다시 적는다고 생각하고 적으세요}

# detailed todo list
- [ ] 큰 단위의 작업
@jessie-2023
jessie-2023 / README.md
Created March 26, 2025 10:52
Global Gender Gap Report
import 'dart:io';
void main() async {
ProcessResult result = await Process.run('ls', ['-l']);
print(result.stdout);
if (result.stderr.isNotEmpty) {
print('Error: ${result.stderr}');
}
https://docs.google.com/forms/d/e/1FAIpQLSeBp1gQ4reqb_ltiNBSfCZ_MdTt-FFc--VEs2LqXRv8zFcgow/viewform?usp=pp_url&entry.2103551509=C%C3%B3&entry.314274498=Th%C6%B0%E1%BB%9Dng%20xuy%C3%AAn%20(1-2%20l%E1%BA%A7n%2Ftu%E1%BA%A7n)&entry.1054226380=4&entry.1679823417=4&entry.1950054193=1&entry.647060139=1&entry.959895874=1&entry.1111674885=1&entry.56593387=1&entry.1977407240=1&entry.588564048=1&entry.1868693184=2&entry.1261273099=2&entry.237073100=2&entry.1212588819=3&entry.1376688767=1&entry.452942669=4&entry.253043146=4&entry.1384477932=3&entry.1967622523=2&entry.2099641508=1&entry.1645822700=1&entry.1374545489=2&entry.2074885957=1&entry.1327045265=3&entry.1785585938=3&entry.1764658334=3&entry.932857369=4&entry.1443452545=3&entry.954207040=3&entry.1668612075=4&entry.110211982=2&entry.1445290611=2&entry.65048257=2&entry.1730496683=2&entry.1099085278=1&entry.2036013209=2&entry.490930069=2&entry.1713655206=3&entry.83535635=3&entry.2036373851=3&entry.1155349157=3&entry.1590136185=3&entry.1813719552=3&entry.1200817932=3&e
@GenericMage
GenericMage / Contracts...MFP-ListingTemplate_flattened.sol
Created March 26, 2025 10:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=true&runs=200&gist=
// File: Contracts/imports/IERC20.sol
pragma solidity ^0.8.1;
interface IERC20 {
function decimals() external view returns (uint8);
function transfer(address to, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);