Skip to content

Instantly share code, notes, and snippets.

@AnoRebel
AnoRebel / fetch-api-examples.md
Created September 25, 2018 17:39 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@AnoRebel
AnoRebel / main.py
Created September 27, 2018 06:44 — forked from stewartadam/main.py
Simple Python proxy server based on Flask and Requests with support for GET and POST requests.
"""
A simple proxy server, based on original by gear11:
https://gist.github.com/gear11/8006132
Modified from original to support both GET and POST, status code passthrough, header and form data passthrough.
Usage: http://hostname:port/p/(URL to be proxied, minus protocol)
For example: http://localhost:5000/p/www.google.com
"""
import re
@AnoRebel
AnoRebel / install_aircrack-ng.py
Created October 5, 2018 16:30
A simple python 3 script i made for ubuntu variant users(Mint/Elementary) to install the latest Aircrack-ng to the system
#!/usr/bin/python3
# Needed imports
import sys, time
from requests import get
from wget import download
from os import system, chdir, getcwd
# Opening and Closing configs
wid = 20
.intro-2 {
background: url("http://mdbootstrap.com/img/Photos/Others/img%20(42).jpg")no-repeat center center;
background-size: cover;
}
.navbar:not(.top-nav-collapse) {
background: transparent !important;
}
.hm-gradient .full-bg-img .intro-2 {
@AnoRebel
AnoRebel / element.html
Created May 16, 2019 10:43 — forked from agusmakmun/element.html
spfjs progress bar: https://github.com/youtube/spfjs (JS framework for fast navigation)
<html>
<head>
<link rel="stylesheet" href="/css/progress-bar.css">
</head>
<body>
<h1>Your element goes here...</h1>
<!-- Link disabled: static link, SPF ins disabled -->
<a href="/destination">Go!</a>
@AnoRebel
AnoRebel / file_downloader.py
Created May 16, 2019 11:23 — forked from nikhilkumarsingh/file_downloader.py
A file downloader with progress bar for terminal
from tqdm import tqdm
import requests
chunk_size = 1024
url = "http://www.nervenet.org/pdf/python3handson.pdf"
r = requests.get(url, stream = True)
total_size = int(r.headers['content-length'])
@AnoRebel
AnoRebel / install_opencv_raspberry_pi_3b.sh
Created May 20, 2019 21:50 — forked from gaborvecsei/install_opencv_raspberry_pi_3b.sh
Install OpenCV easily on your Raspberry Pi 3 B
mkdir opecv
cd opencv
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install build-essential cmake pkg-config -y
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install libgtk2.0-dev libgtk-3-dev -y
sudo apt-get install libatlas-base-dev gfortran -y
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
#!/bin/bash
set -ex
cd /tmp
#pacman -S --needed --noconfirm base-devel
#git clone https://aur.archlinux.org/nosudo
#cd nosudo
#makepkg -o
#cp nosudo /bin/sudo
@AnoRebel
AnoRebel / App.js
Created January 14, 2020 10:39
A simple react native page with a table and an onClick Modal popup with passed propfrom parent purely in React Fucntional Components
import React, { Component } from 'react';
import { StyleSheet, Dimensions, Platform, Text, SafeAreaView, View, TextInput, Image, Button, FlatList, Alert } from 'react-native';
import { Icon } from 'react-native-elements';
import Modal from "react-native-modal";
const HEIGHT = Dimensions.get('window').height;
const WIDTH = Dimensions.get('window').width;
export default function App() {