Skip to content

Instantly share code, notes, and snippets.

View hurelhuyag's full-sized avatar
🇲🇳
Keep moving forward

Khurelkhuyag hurelhuyag

🇲🇳
Keep moving forward
View GitHub Profile
@hurelhuyag
hurelhuyag / add_record.http
Created August 13, 2020 03:23
godaddy domain API
PATCH https://api.godaddy.com/v1/domains/{domain}/records
Accept: application/json
Content-Type: application/json
Authorization: sso-key key:secret
[{"data": "{value}", "name": "{subDomain}", "ttl": 600, "type": "TXT"}]
@hurelhuyag
hurelhuyag / routeros_address_list_update.sh
Last active September 7, 2020 03:36
RouterOS address-list updater
#!/bin/bash
#echo -n Password /[email protected]/ :
#read -s password
password="{Enter Your Password Here or Enable above 2 line}"
ip_bits(){
z=$1;
a=$(echo "l($z)/l(2)" | bc -l | awk '{print int($1)}');
@hurelhuyag
hurelhuyag / EnclosedFrameDecoder.java
Created May 25, 2021 08:40
netty enclosed frame decoder
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import java.util.List;
public class EnclosedFrameDecoder extends ByteToMessageDecoder {
@hurelhuyag
hurelhuyag / HttpsUrlConnectionExample.java
Last active April 11, 2022 09:24
Two-Way SSL or Mutual SSL or Mutual Authentication Java Demo
import javax.net.ssl.*;
import java.io.*;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.*;
import java.util.Base64;
public class HttpsUrlConnectionExample {
/**
@hurelhuyag
hurelhuyag / fail2ban_drop_ip_addresses.txt
Created June 20, 2023 01:53
brute force ip addresses
1.0.171.2
1.0.243.9
1.116.135.59
1.116.61.245
1.117.65.89
1.117.88.161
1.12.229.48
1.12.243.193
1.12.60.77
1.13.175.120
@hurelhuyag
hurelhuyag / SIM900_Chatscript
Created March 7, 2024 12:06 — forked from me-no-dev/SIM900_Chatscript
PPP connection settings for Linux and SIM900
#save as /etc/chatscripts/sim900
ABORT "BUSY"
ABORT "VOICE"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
ABORT "DELAYED"
REPORT "CONNECT"
TIMEOUT 6