Skip to content

Instantly share code, notes, and snippets.

View RedsAnDev's full-sized avatar
✌️
Here or on @STB1019

Andrea Rossi RedsAnDev

✌️
Here or on @STB1019
View GitHub Profile
@RedsAnDev
RedsAnDev / Santech p37 - Ubuntu 20.04 Keyboard
Last active March 28, 2022 21:24
This is a memo. Thank you ConfigureLaptop.eu!
----
## Disclaimer
This set of instructions are available at this link https://configurelaptop.eu/clevo-keyboard-backlight-control-for-linux/
----
Set instructions one-by-one in a terminal
@RedsAnDev
RedsAnDev / Stream_int_array.dart
Created January 6, 2022 23:10
Play with stream
Stream<List<int>> bgFunction(int size)async*{
int counter=size>10?size:10;
List<int> buffer=[];
while(counter>=0){
buffer=[];
yield buffer;
for(int i=size;i>counter;i--)
buffer.add(i);
buffer.add(counter);
counter--;
@RedsAnDev
RedsAnDev / callback.py
Created April 22, 2021 22:07
How to play with callback?
def mind_blowing(params_a,params_b,callback,*args,**kwargs):
print("This is a={a} b={b}".format(a=a,b=b))
if len(args)>0:
print(f"${args}")
else:
print("No Args")
if len(kwargs.keys())>0:
print(f"${kwargs}")
else:
print("No Kwargs")
@RedsAnDev
RedsAnDev / jwtRS256.sh
Created April 21, 2020 22:40 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@RedsAnDev
RedsAnDev / kerberos_attacks_cheatsheet.md
Created August 29, 2019 05:39 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@RedsAnDev
RedsAnDev / tasks.py
Created January 16, 2019 10:36
Status Worker Celery in Django
from __future__ import absolute_import, unicode_literals
from celery import shared_task
from celery.utils.log import get_task_logger
from celery.app import _state as state
from celery.task.control import inspect as monitor
from datasource import views as ds
logger=get_task_logger(__name__)
@RedsAnDev
RedsAnDev / simpletree.js
Created December 28, 2018 09:07
Recursive ul list with JQuery
function simpletree(data,content){
$.each(data,function(index,elem){
if(typeof(elem)=="object"){
list=index.trim().toLowerCase().replace(" ","_")
content=$(content).append("<li><b>"+index+"</b><ul data='"+list+"'></ul></li>")
simpletree(elem,content.find('[data="'+list+'"]'))
}else{
$(content).append("<li><b>"+index+"</b>&nbsp;"+elem+"</li>")
}

Keybase proof

I hereby claim:

  • I am redsandev on github.
  • I am redsandev (https://keybase.io/redsandev) on keybase.
  • I have a public key ASBshYL1Yat7YSi2h7giDcLh58EPlDiXL_0GF3IUEOhNswo

To claim this, I am signing this object:

//
// main.c
// SKProject
//
// Created by Luca Orizio on 31/07/18.
// Copyright © 2018 Luca Orizio. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>