Skip to content

Instantly share code, notes, and snippets.

@its-a-feature
its-a-feature / Domain Enumeration Commands
Created January 7, 2018 21:03
Common Domain Enumeration commands in Windows, Mac, and LDAP
Domain: TEST.local
User Enumeration:
Windows:
net user
net user /domain
net user [username]
net user [username] /domain
wmic useraccount
Mac:
dscl . ls /Users
@LokieVikky
LokieVikky / image_editor_api.dart
Last active May 23, 2024 12:34
Image Editor API
import 'dart:io';
import 'dart:math';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:image_editor/image_editor_v2.dart';
class ImageEditor {
double imageHeight = 0.0;
double imageWidth = 0.0;
@deaglebullet
deaglebullet / XHCI-IMOD-Interval.ps1
Created May 20, 2024 22:12
Configure the IMOD Interval for XHCI controllers with RWEverything
param(
[switch]$verbose
)
# The variables starting with $GLOBAL store values that should be applied to all XHCI controllers by default.
# To override this default value on a per-controller basis, specify the DEV_XXXX hardware ID value for the XHCI controller along with its data
# See the example below.
#
# $globalInterval = 0x0
# $globalHCSPARAMSOffset = 0x4
@arceryz
arceryz / tesseract.gd
Last active May 23, 2024 12:32
Godot Dancing Tesseract (100 Lines) (MIT)
extends RigidBody3D
@export var line_radius = 0.5
@export var point_radius = 0.1
@export var speed = 2
var vertices: Array[Vector4]
var points: Array[MeshInstance3D]
var lines: Array[MeshInstance3D]
var pointShapes: Array[CollisionShape3D]
console.cloud.google.com
This is already done:
- VPC Network -> VPC Networks
- Firewall
Need to set up this again:
Compute Engine -> VM Instances
@nptit
nptit / timer.md
Last active May 23, 2024 12:30
Таймер обратного отсчета на JavaScript https://git.io/timerjs

Таймер обратного отсчета в 18 строк кода JavaScript.

Бывает, что вам для чего-то нужен таймер обратного отсчета, в интернете есть много решений, однако они либо очень громоздкие, либо имеют зависимости от других библиотек. Сегодня мы рассмотрим, как сделать таймер обратного отсчета на JavaScript в 18 строк кода.

План

  • Установить правильную дату окончания
  • Высчитать оставшееся время
  • Привести дату к удобному формату
  • Вывести данные таймера, как многоразовый объект
@thejohnny
thejohnny / Makefile
Created January 13, 2009 22:48
Build shared libraries for lua 5.1.4
--- lua-5.1.4/Makefile 2008-08-12 00:40:48.000000000 +0000
+++ lua-5.1.4-shared-lib/Makefile 2009-01-13 22:01:33.000000000 +0000
@@ -43,7 +43,7 @@
# What to install.
TO_BIN= lua luac
TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
-TO_LIB= liblua.a
+TO_LIB= liblua.a liblua.so
TO_MAN= lua.1 luac.1
@oofnikj
oofnikj / answerfile
Last active May 23, 2024 12:26
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@rphlmr
rphlmr / clear-db.ts
Last active May 23, 2024 12:22
Drizzle snippets
// Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406
import { sql } from "drizzle-orm";
const clearDb = async (): Promise<void> => {
const query = sql<string>`SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_type = 'BASE TABLE';
`;
@tjsudarsan
tjsudarsan / Change CRLF to LF to all Files.md
Last active May 23, 2024 12:23
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: