Skip to content

Instantly share code, notes, and snippets.

@aelk00
aelk00 / remove-likes.md
Last active March 1, 2024 00:58
Remove all your facebook likes
@cezarypiatek
cezarypiatek / .editorconfig
Last active February 14, 2023 21:48
This snippet set severity level to error for different rules related to the reference nullability
[*.cs]
# CS8603: Possible null reference return.
dotnet_diagnostic.CS8603.severity = error
# CS8604: Possible null reference argument.
dotnet_diagnostic.CS8604.severity = error
# CS8606: Possible null reference assignment to iteration variable
dotnet_diagnostic.CS8606.severity = error
# CS8600: Converting null literal or possible null value to non-nullable type.
dotnet_diagnostic.CS8600.severity = error
# CS8602: Dereference of a possibly null reference.
https://github.com/danielmiessler/SecLists
https://github.com/dustyfresh/dictionaries
https://www.openwall.com/passwords/wordlists/password-2011.lst
https://blog.avast.com/2015/09/07/taking-a-closer-look-at-cracked-ashley-madison-passwords/
https://medium.com/@jcox250/password-storage-d480309ca08f
https://auth0.com/blog/adding-salt-to-hashing-a-better-way-to-store-passwords/
https://bytesoverbombs.io/cracking-everything-with-john-the-ripper-d434f0f6dc1c
dictionaries
https://crackstation.net/crackstation-wordlist-password-cracking-dictionary.htm
@macrozone
macrozone / ARLine
Created December 19, 2017 14:44
drawing a line in react-native-arkit
// @flow
import { ARKit } from 'react-native-arkit'
import React, { Component } from 'react'
import type { Vector3 } from '../../../types'
import { center, diff, distance, add } from '../../../libs/math/vectorUtils'
type Props = {
from: Vector3,
to: Vector3,
@kashimAstro
kashimAstro / force-sshpass.cpp
Last active March 3, 2021 13:28
c++ brute force ssh multithreading with sshpass
/*
Author: Dario Longobardi
Test ssh brute force multithreading
*/
#include <iostream>
#include <unistd.h>
#include <thread>
#include <vector>
@codedokode
codedokode / proxy.php
Created December 23, 2016 22:22
Простой прокси-сервер на PHP для изучения и модификации данных, передаваемых между браузером и сторонним сервером
<?php
/**
* Простой прокси-сервер на PHP для изучения и модификации данных,
* передаваемых между браузером и сторонним сервером.
*
* Запуск:
*
* указать URL сайта в $base
* php -S 127.0.0.1:9001 proxy.php
*
@danharper
danharper / CancellationTokenSource.js
Last active January 7, 2024 17:58
JavaScript "CancellationToken" for cancelling Async/Promise functions
const CANCEL = Symbol();
class CancellationToken {
constructor() {
this.cancelled = false;
}
throwIfCancelled() {
if (this.isCancelled()) {
@ebidel
ebidel / handle_file_upload.php
Created April 18, 2012 03:23
Uploading files using xhr.send(FormData) to PHP server
<?php
$fileName = $_FILES['afile']['name'];
$fileType = $_FILES['afile']['type'];
$fileContent = file_get_contents($_FILES['afile']['tmp_name']);
$dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent);
$json = json_encode(array(
'name' => $fileName,
'type' => $fileType,
'dataUrl' => $dataUrl,
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';