Skip to content

Instantly share code, notes, and snippets.

@deepanshumehtaa
deepanshumehtaa / python socket server - post api.py
Created May 13, 2025 13:15
python socket server - post api.py
import json
import socket
def parse_http_request(request):
headers, _, body = request.partition("\r\n\r\n")
request_line = headers.splitlines()[0]
method, path, _ = request_line.split()
return method, path, headers, body
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
USE [new]
GO
/****** Объект: Table [dbo].[TeacherNameTable] Дата скрипта: 13.05.2025 15:50:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created May 13, 2025 13:14
Rimworld output log published using HugsLib
Log uploaded on Tuesday, May 13, 2025, 9:14:30 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.5]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.5)
imports
HttpModule
BullModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => {
const connection = configService.get('redisconnection');
return {
connection: connection,
}
},
@neerajkanhere
neerajkanhere / LICENSE.txt
Created May 13, 2025 13:14 — forked from tlrobinson/LICENSE.txt
Simple JavaScript REPL for the browser.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Tom Robinson <http://tlrobinson.net/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created May 13, 2025 13:14
Rimworld output log published using HugsLib
Log uploaded on Tuesday, May 13, 2025, 10:17:26 PM
Loaded mods:
Core(Ludeon.RimWorld): (no assemblies)
Allow Tool(UnlimitedHugs.AllowTool): (no assemblies)
Common Sense(avilmask.CommonSense): (no assemblies)
Defensive Positions(UnlimitedHugs.DefensivePositions): 0MultiplayerAPI(av:0.5.0,fv:0.5.0)
Pick Up And Haul(Mehni.PickUpAndHaul): IHoldMultipleThings(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.5]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.5)
QualityBuilder(hatti.qualitybuilder): 0Harmony(av:2.3.3,fv:1.2.0.1), QualityBuilder(av:1.0.18,fv:1.0.18)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created May 13, 2025 13:14
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Tuesday, May 13, 2025, 3:13:56 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
@historical-lady
historical-lady / reddit_nsfw_disable.user.js
Created May 13, 2025 13:13
TamperMonkey script to forcibly disable NSFW Reddit
// ==UserScript==
// @name Reddit NSFW Disabler
// @namespace http://tampermonkey.net/
// @version 0.1
// @description WIP NSFW disabler
// @author You
// @match https://www.reddit.com/*
// @icon https://www.redditstatic.com/shreddit/assets/favicon/192x192.png
// @grant none
// ==/UserScript==
import { create } from "zustand"
const authStore = create((set) => {
})
// create takes a function iside which you declare variables
<!DOCTYPE html>
<html>
<head>
<title>Tachyons Example</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/tachyons/4.11.1/tachyons.css"
/>
<!-- font family popins -->
<link