Skip to content

Instantly share code, notes, and snippets.

@idr-solutions
idr-solutions / color-inversion.md
Created June 2, 2025 09:53
invert colors | color inversion | Invert image colors

Image Color Inversion in Java

You can use JDeli to achieve image color inversion in Java. JDeli is an enterprise-level Java image library that makes it easy to read, write, convert, manipulate and process HEIC and other image file formats in Java.

This class uses the provided image and returns an inverted image containing negative argb values image. This makes the image appear inverted.

Example in Java to invert colors of an image

ImageProcessingOperations operations = new ImageProcessingOperations();

// You can chain several operations here such as scale, blur, etc
@schoolParo8500
schoolParo8500 / gist:39ff6a9207af050124e8b8927817284f
Created June 2, 2025 09:53
Babcock University,Ilishan-Remo (2025=2026) { APPLICATION} Form is Out. โ˜Ž +2348169598464) or 08169598464 Call The School's Admin. Officer (DR MRS FAITH A. A) for more Information and admission Assistance. Forms into other programmes are also now available. Contact the school admin - ๐Ÿ“ž08169598464 for more inquiries. The School Authority requires โ€ฆ
Babcock University,Ilishan-Remo (2025=2026) { APPLICATION} Form is Out. โ˜Ž +2348169598464) or 08169598464 Call The School's Admin. Officer (DR MRS FAITH A. A) for more Information and admission Assistance. Forms into other programmes are also now available. Contact the school admin - ๐Ÿ“ž08169598464 for more inquiries. The School Authority requires all candidates applying for admission into any of its courses to passes Five (5) Oโ€™ Level Credit Level Passes at not more than two (2) sittings to include English Language and Mathematics and three (3) other subjects relevant to course.
@jbuijgers
jbuijgers / DEPSteps.md
Created June 2, 2025 09:53 — forked from kkroxc/DEPSteps.md
Remove MDM & DEP from an Apple Sillicon Mac (Sonoma)

How to make an MDM Mac shine like it's brand new ?

Works, as of 14/04/2024, on macOS 14.4.1 and lower (prob higher but idk)

This was made for Apple Sillicon Macs.

Restore Process

You need another Mac for this.

If you don't have one and have recovery locked, it's not possible.

@thoughtgeek
thoughtgeek / gist:6c5df87003380f50d40c11bc91584dd8
Created June 2, 2025 09:52
Weather API calling and storing to Google Sheets
import requests
import json
from google.oauth2.service_account import Credentials
from googleapiclient.discovery import build
from datetime import datetime
class APIToSheetsWriter:
def __init__(self, credentials_file, spreadsheet_id):
"""
Initialize the Google Sheets API client
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created June 2, 2025 09:52
Rimworld output log published using HugsLib
Log uploaded on Monday, June 2, 2025, 12:52:40 PM
Loaded mods:
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)
Combat Extended(CETeam.CombatExtended): CombatExtended(0.0.0)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:25.3.21), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,fv:1.1.9), VWEMakeshift(1.0.0)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created June 2, 2025 09:52
Rimworld output log published using HugsLib
Log uploaded on Monday, June 2, 2025, 12:52:12 PM
Loaded mods:
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)
Combat Extended(CETeam.CombatExtended): CombatExtended(0.0.0)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:25.3.21), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,fv:1.1.9), VWEMakeshift(1.0.0)
@schoolParo8500
schoolParo8500 / gist:6fc8164ea51231bfc623d73c657dc41a
Created June 2, 2025 09:51
Augustine University (2025=2026) { APPLICATION} Form is Out. โ˜Ž +2348169598464) or 08169598464 Call The School's Admin. Officer (DR MRS FAITH A. A) for more Information and admission Assistance. Forms into other programmes are also now available. Contact the school admin - ๐Ÿ“ž08169598464 for more inquiries. The School Authority requires all candidaโ€ฆ
Augustine University (2025=2026) { APPLICATION} Form is Out. โ˜Ž +2348169598464) or 08169598464 Call The School's Admin. Officer (DR MRS FAITH A. A) for more Information and admission Assistance. Forms into other programmes are also now available. Contact the school admin - ๐Ÿ“ž08169598464 for more inquiries. The School Authority requires all candidates applying for admission into any of its courses to passes Five (5) Oโ€™ Level Credit Level Passes at not more than two (2) sittings to include English Language and Mathematics and three (3) other subjects relevant to course.
@cod3nym
cod3nym / hashes.txt
Created June 2, 2025 09:50
SHA256 for all Minecraft Rat samples I found on VT
6a201fc8696dc8ceff68c9829984b16e9994bc7c0a774bdd1859efec60f4d69b
44623c837caf40341d187b5b5e1486eaec2528d0af715310ddf6c1c4b7b9ccee
2ce1a9558cf1c45f19832af0fa9587bc29076009bfd2195aa64db4e2eef472eb
c3141c72e98fd48da3546217ada5e31b6786041bd0b24373ae91c9e36ee7a67d
12c9cca4b13fb5fa772ef2991afe06c25a3f7dca89dc2faf15b0bf6a22c15c92
9b60635bf858d1f432e726a029c7386ec6d17b2cc2e77845dc647200c7802312
d582c6bc50fa4f6c5a3f1e07ea33f61d4bd5276f76a66e65c68f5a57c3c1f511
000eed382ebec21a1f27a860cc52613cdd98fc36dd12d37bad15caeb36846d7f
8ca78f2eb59302102de3b8e471cd307513e655cfd0f872f27d2640eed0e3b4eb
f98916ba5138dd6f233023a3b9fe5e969a50bee3d7cfffb69900f4d1d39e02b6
@schoolParo8500
schoolParo8500 / gist:ac1413d5190ce34ae30a3e096cee432b
Created June 2, 2025 09:49
American University of Nigeria, Yola (2025=2026) { APPLICATION} Form is Out. โ˜Ž +2348169598464) or 08169598464 Call The School's Admin. Officer (DR MRS FAITH A. A) for more Information and admission Assistance. Forms into other programmes are also now available. Contact the school admin - ๐Ÿ“ž08169598464 for more inquiries. The School Authority requโ€ฆ
American University of Nigeria, Yola (2025=2026) { APPLICATION} Form is Out. โ˜Ž +2348169598464) or 08169598464 Call The School's Admin. Officer (DR MRS FAITH A. A) for more Information and admission Assistance. Forms into other programmes are also now available. Contact the school admin - ๐Ÿ“ž08169598464 for more inquiries. The School Authority requires all candidates applying for admission into any of its courses to passes Five (5) Oโ€™ Level Credit Level Passes at not more than two (2) sittings to include English Language and Mathematics and three (3) other subjects relevant to course.

To restart a network service in Windows using PowerShell, you can use the Restart-Service cmdlet. To specifically restart the "Network Service", you would use the command Restart-Service -Name "Network Service".

Here's a more detailed breakdown:

  • Restart-Service: This PowerShell cmdlet is used to restart a service.
  • -Name "Network Service": This parameter specifies the name of the service to be restarted. The service name is case-insensitive.
  • Example: Restart-Service -Name "Network Service".