Skip to content

Instantly share code, notes, and snippets.

@mohsenkhanpour
mohsenkhanpour / readme.md
Last active May 18, 2024 14:44
WSL Installation

Installing the distro:

Make Windows ready:

Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Restart your computer when prompted.

Install distro:

@gizmaa
gizmaa / Plot_Examples.md
Last active May 18, 2024 14:45
Various Julia plotting examples using PyPlot
@gwpantazes
gwpantazes / How to Install JDK MacOS Homebrew.md
Last active May 18, 2024 14:43
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

Table of Contents

@tobek
tobek / get-image-urls.js
Last active May 18, 2024 14:43
Save images from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/
@bskjon
bskjon / payload.json
Last active May 18, 2024 14:42
Payload for starting Smartthings Samsung oven in Pizza mode
[
{"component": "main", "capability":"samsungce.ovenMode", "command":"setOvenMode", "arguments": [ "BottomHeatPluseConvection" ]},
{"component": "main", "capability":"ovenSetpoint", "command":"setOvenSetpoint", "arguments": [ 225 ]},
{"component": "main", "capability":"samsungce.ovenOperatingState", "command":"setOperationTime", "arguments": [ "00:30:00" ]},
{"component": "main", "capability":"samsungce.ovenOperatingState", "command":"start", "arguments": null },
{"component": "main", "capability":"ovenOperatingState", "command":"start", "arguments": ["Conventional"] }
]

Полезные инстументы.

Стеганография

  • XnView - удобный просмотрщик фотографий.
  • stego-toolkit - коллекция утилит для анализа картинок в одном докер контейнере. "check_png.sh picture.png" или "check_jpg.sh picture.jpg" для проверки картинки.
  • PCRT3 - мой скрипт для анализа и починки png изображений и их заголовков.
  • pngcheck (apt install pngcheck) - утилита для проверки png изображений.
  • stegsnow (apt install stegsnow) - утилита для whitespace кодирования.
  • DeepSound - скрытие текста в аудио форматах.
  • steghide - сокрытие информации jpg, bmp, wav.
@Cynosphere
Cynosphere / gameslist.json
Created March 6, 2019 01:48
Discord Verified Games List
This file has been truncated, but you can view the full file.
[
{
"id": "259392830932254721",
"name": "SpeedRunners",
"icon": "cb48279ea90e86fb4f71c709d3236395",
"splash": "94e91cac9509fee1eb80a69b9503878a",
"overlay": false,
"overlayWarn": false,
"overlayCompatibilityHook": false,
@jdhitsolutions
jdhitsolutions / ADChangeReport.ps1
Created January 27, 2021 18:23
A PowerShell script to create an HTML report on recent changes in Active Directory.
#requires -version 5.1
#requires -module ActiveDirectory,DNSClient
# https://jdhitsolutions.com/blog/powershell/8087/an-active-directory-change-report-from-powershell/
#Reporting on deleted items requires the Active Directory Recycle Bin feature
[cmdletbinding()]
Param(
[Parameter(Position = 0,HelpMessage = "Enter a last modified datetime for AD objects. The default is the last 4 hours.")]
[ValidateNotNullOrEmpty()]
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active May 18, 2024 14:41
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
"""
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
To use, simply put this script in your activity/analytics/ folder of your Discord data dump and run it.
You may need to install matplotlib first:
pip install -U matplotlib
thrown together by rebane2001
@VictorTaelin
VictorTaelin / gpt4_abbreviations.md
Last active May 18, 2024 14:35
Notes on the GPT-4 abbreviations tweet

Notes on this tweet.

  • The screenshots were taken on different sessions.

  • The entire sessions are included on the screenshots.

  • I lost the original prompts, so I had to reconstruct them, and still managed to reproduce.

  • The "compressed" version is actually longer! Emojis and abbreviations use more tokens than common words.