Skip to content

Instantly share code, notes, and snippets.

View R3M4G's full-sized avatar
Caffeine Addict

Astitva Nikose R3M4G

Caffeine Addict
View GitHub Profile
@R3M4G
R3M4G / sort_array_javascript.md
Created December 4, 2023 06:48
Sort Arrays in Javascript
const numberSortFn = (a, b) => (a < b) ? -1 : (a > b) ? 1 : 0;
const arrayName = [7,9,10,2,1];
console.log(arrayName.sort(numberSortFn));
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@R3M4G
R3M4G / pgp.txt
Created October 9, 2022 08:21
My Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGNCggcBEACxOsMkQHSjZLvwccbQMBUp46cz5uYQ/KO9xx2k0XNkgYSMHdB6
Sz+HR3AFpLguNdyjACue//pQiO/rVi6wl3IXoR4rMdFDnNE5MSfeKTG02IxX1+UW
YPxLyi1KG3+qQ2AdJRt2MEERJL0LSUMhbLxuwcfXL+cr2GMHmwjhedi3nJSTdlxS
Hq/d8vpaEhKpHVDNy2I8ydIdH1SQbyr/QkFWkoeXMf3Ccdi4SJOpkoAmEnsMpADX
ZU8Jc+3nP3PbnipTIyKcV+oRN6yZ8pOPJGvuVW1rUXWsr3785FQVess5YKWc7GS2
tAVl+8yGJ7lVH4stN5tsfYKiDS1eMh3JILYMdpCvZzxF297e1bXI0C5DM6/XAHaI
fvqL0K7Hs4MSpCAK/J50lJ9+mjo9IN7/lK1rSdIMKgm06W55zKvMHniihoN2USeP
SWUm2+HjRJSQ/dZZC3FylfmlD0txyBxhyG7d7eZPTPkFoUUCVVuvFaPu2IaI8g/r
@R3M4G
R3M4G / backup.sh
Created November 15, 2021 17:51
template for my tar backup script
#!/bin/bash
############################
#
# Backup Script
#
############################
# Source
source_files="/dir"
@R3M4G
R3M4G / port_scan.sh
Created June 14, 2020 04:35
Netcat Port Scanner written in bash
#!/usr/bin/env bash
echo ""
echo ""
echo "(╯°□ °)╯ ┻━┻"
echo ""
echo "Port Scanning Is Not A Crime"
echo ""
echo "Enter Target IP:"
read TargetIP
nc -v -n -z -w1 $TargetIP 7-8080
@R3M4G
R3M4G / wreddit.py
Created June 2, 2020 14:52
Reddit Scrapper for downloadable wallpaper links
#! /usr/bin/env python3
import json
import requests
url = 'https://reddit.com/r/wallpapers.json'
headers = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0'}
r = requests.get(url, headers=headers)
for post in r.json()['data']['children']:
print('')
@R3M4G
R3M4G / bluedit.py
Created May 24, 2020 07:22
A reddit scrapper that prints hot post titles from a subrredit
#! /usr/bin/env python3
import json
import requests
subr = input('Enter the subreddit:')
url = 'https://reddit.com/r/{}.json'.format(subr)
headers = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0'}
r = requests.get(url, headers=headers)
for post in r.json()['data']['children']:

Keybase proof

I hereby claim:

  • I am r3m4g on github.
  • I am z3k31024 (https://keybase.io/z3k31024) on keybase.
  • I have a public key whose fingerprint is 87BC D47C 0291 DA57 1B84 8820 83F0 4140 AFB7 506E

To claim this, I am signing this object:

@R3M4G
R3M4G / CyberSoc_CTF_Sol.txt
Last active November 6, 2022 04:31
CyberSoc | Cyber Detective CTF Solutions
# Life Online
* voteforme
James tweets about Barack Obama who belongs to the "Democratic Party".
FLAG=Democratic Party
* growingup
James tweets about what3words and on his twitter bio he wrote his Birthplace and city using what3words
"///push.asking.barn" which is in "Yorkshire" according to Google Maps.
FLAG=Yorkshire
@R3M4G
R3M4G / Instagram.css
Created October 10, 2019 08:37
Gradient Animation inspired by Instagram
background: linear-gradient(270deg, #833ab4, #fd1d1d, #fcb045);
background-size: 600% 600%;
-webkit-animation: Instagram 30s ease infinite;
-moz-animation: Instagram 30s ease infinite;
-o-animation: Instagram 30s ease infinite;
animation: Instagram 30s ease infinite;
@-webkit-keyframes Instagram {
0%{background-position:0% 50%}