Skip to content

Instantly share code, notes, and snippets.

@zhnlk
zhnlk / gdfsi-2015.txt
Created October 31, 2017 11:05
Google Dorks For SQL Injection
inurl:trainers.php?id=
inurl:buy.php?category=
inurl:article.php?ID=
inurl:play_old.php?id=
inurl:declaration_more.php?decl_id=
inurl:pageid=
inurl:games.php?id=
inurl:page.php?file=
inurl:newsDetail.php?id=
inurl:gallery.php?id=
@TABASCOatw
TABASCOatw / solana_repositories.json
Created May 5, 2023 19:10
Indexed Solana Repositories April 2023 (expect 2% false positives)
{
"chainify": "https://github.com/liquality/chainify",
"solana-chat-app": "https://github.com/jsoneaday/solana-chat-app",
"wallet-adapter": "https://github.com/solana-labs/wallet-adapter",
"audius-protocol": "https://github.com/AudiusProject/audius-protocol",
"raydium-ui": "https://github.com/raydium-io/raydium-ui",
"espresso-cash-public": "https://github.com/espresso-cash/espresso-cash-public",
"backpack": "https://github.com/coral-xyz/backpack",
"projects": "https://github.com/solidproof/projects",
"protocol-v1": "https://github.com/drift-labs/protocol-v1",
@dcommander
dcommander / Makefile
Last active March 29, 2024 04:52
Simple program to demonstrate OpenGL rendering without an X server
all: egltest
egltest: egltest.c
cc -O3 -Wall -Werror -I. -o $@ $^ -lOpenGL -lEGL
clean:
rm -f *.o egltest
@trongthaonh
trongthaonh / rails-validates.md
Created November 7, 2016 03:44 — forked from nashirox/rails-validates.rb
Rails のバリデーション用正規表現集

数字

# 全て数値(全角)
/^[0-9]+$/

# 全て数値(半角)
/^[0-9]+$/

# 全て数値(全角,半角)
@ajumalp
ajumalp / Install Mosquitto MQTT on Synology NAS Server.txt
Last active March 29, 2024 04:36
Install Mosquitto MQTT on Synology NAS Server
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources.
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab.
Then from the community, you can see Mosquitto. Install it.
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes.
Enable Admin login for Synology
Enable SSH in NAS
Download putty and connect to NAS Server
Login using admin
Change to root user [sudo -i, {use admin password}]
Find mosquitto.conf file [find / -name mosquitto.conf]
@KlassenKonstantin
KlassenKonstantin / Pull2Refresh.kt
Created March 26, 2024 11:23
Fitbit style Pull 2 Refresh
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
super.onCreate(savedInstanceState)
setContent {
P2RTheme {
// A surface container using the 'background' color from the theme
Surface(modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background) {
CompositionLocalProvider(
LocalOverscrollConfiguration provides null // Disable overscroll otherwise it consumes the drag before we get the chance
@benui-dev
benui-dev / PackagePlugin.bat
Last active March 29, 2024 04:30
Unreal Engine Package Plugin batch script. Confirm that your plugin packages under each Unreal Engine version.
@echo off
SETLOCAL
rem Set your plugin name, should match the .uplugin filename
set PLUGIN_NAME=BYGYouTrackFiller
rem Always add trailing space please
rem Don't put trailing slashes
set UNREAL_PATHS=E:\UE_4.25 ^
E:\UE_4.26 ^
@brennanMKE
brennanMKE / IDETemplateMacros.plist
Last active March 29, 2024 04:27
Xcode File Header Templates
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string>
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___.
// All Rights Reserved.
</string>
<key>ORGANIZATIONNAME</key>
@OrionReed
OrionReed / DOM3D.js
Last active March 29, 2024 04:26
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@orangecms
orangecms / NBD8016R-PL-V2.md
Created July 19, 2020 19:06
NBD8016R-PL-V2 NVR (Network Video Recorder) firmware

HiSilicon-based NVR (Network Video Recorder)

Acronyms

AHD - Analog High Definition NVR - Network Video Recorder DVR - Digital Video Recorder IPC - IP Camera

Research