Skip to content

Instantly share code, notes, and snippets.

View claudioquaglia's full-sized avatar
🔮
forward thinking

Claudio claudioquaglia

🔮
forward thinking
View GitHub Profile
@claudioquaglia
claudioquaglia / git-ssh-error-fix.sh
Created March 30, 2020 17:03 — forked from Tamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T [email protected]
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@claudioquaglia
claudioquaglia / Spinner.js
Created February 2, 2020 12:30 — forked from knowbody/Spinner.js
Spinner - using styled-components
import React from 'react';
import styled from 'styled-components';
const Spinner = () => (
<StyledSpinner viewBox="0 0 50 50">
<circle
className="path"
cx="25"
cy="25"
r="20"
// Gist for https://medium.com/@ebakhtarov/bidirectional-websockets-with-redux-saga
import { eventChannel } from "redux-saga";
import { all, call, put, take, select, race } from "redux-saga/effects";
import { actionTypes } from "./constants";
function watchMessages(socket) {
return eventChannel(emit => {
/* eslint-disable no-param-reassign */
@claudioquaglia
claudioquaglia / debug-window-open.js
Created September 28, 2018 08:42 — forked from jamesreggio/debug-window-open.js
Script to help diagnose popup blocker issues
// This script will help to diagnose popup blocker issues.
// Copy-paste it into your console, or include it in your development build.
//
// When you make a call to window.open(), this script will check whether the
// most recent user input event happened on the same tick. (If not, a
// breakpoint is triggered and an explanation is written to the console.)
//
// You can manually call window.debugOpen() at any time to determine the
// whether it's safe to insert a call to window.open() in the current code.
//
#!/bin/bash
#A script to enumerate local information from a Linux host
v="version 0.8"
#@rebootuser
#help function
usage ()
{
echo -e "\n\e[00;31m#########################################################\e[00m"
echo -e "\e[00;31m#\e[00m" "\e[00;33mLocal Linux Enumeration & Privilege Escalation Script\e[00m" "\e[00;31m#\e[00m"
@claudioquaglia
claudioquaglia / linuxprivchecker.py
Created April 24, 2018 10:38
Linux Privilege Escalation Check Script
#!/usr/env python
###############################################################################################################
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
##-------------------------------------------------------------------------------------------------------------
## [Details]:
## This script is intended to be executed locally on a Linux box to enumerate basic system info and
## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text
## passwords and applicable exploits.
@claudioquaglia
claudioquaglia / bitcolor.js
Created June 3, 2017 09:37 — forked from lrvick/bitcolor.js
Javascript functions for doing fast binary/hex/RGB color conversions using bitwise operations.
// convert 0..255 R,G,B values to binary string
RGBToBin = function(r,g,b){
var bin = r << 16 | g << 8 | b;
return (function(h){
return new Array(25-h.length).join("0")+h
})(bin.toString(2))
}
// convert 0..255 R,G,B values to a hexidecimal color string
RGBToHex = function(r,g,b){