Skip to content

Instantly share code, notes, and snippets.

View akbaryahya's full-sized avatar

Akbar Yahya akbaryahya

View GitHub Profile
@catvinyl
catvinyl / characterai.js
Last active November 29, 2023 00:00
characterai.js
// License: CC0 1.0 Universal (CC0 1.0) / Public domain (PD)
// Name: Ask CharacterAI
const WebSocket = require('ws');
let crypto;
try {
crypto = require('node:crypto');
} catch (err) {
console.error('crypto support is disabled!');
}
@zouppen
zouppen / README.md
Last active April 17, 2024 21:52
Block incoming traffic from Tor exit nodes on Linux + ipset

Block Tor exit nodes with Linux and ipset

This gist blocks incoming traffic from Tor exit nodes. You can also use it to MARK or redirect the incoming traffic, depending of your needs.

This guide is for IPv4 only, feel free to contribute IPv6 support if you have it.

Installing

@suggoitanoshi
suggoitanoshi / docker-compose.yml
Last active April 22, 2022 04:38
A bundled docker-compose for docker-gc (https://hub.docker.com/r/siakbary/dockergc)
version: '3'
services:
mongodb:
image: mongo
ports:
- "27017:27017"
grasscutter:
image: siakbary/dockergc:dev-1.7
command: -d 'mongodb://mongodb:27017' -b 'localhost' # EDIT: database now uses URI
@nucther
nucther / bridge.js
Last active July 13, 2023 03:33
Enable Bridge
function displayTableHtml(){for(var e="",t="",n=0;n<all_wan_info.wan.length;n++){var i=n+1,a=all_wan_info.wan[n],l=a.wan_index+"_"+a.wan_session_index+"_"+a.iporppp+"_"+a.Name;t+='<tr id="outtable_'+n+'" style="cursor: pointer;" onclick="Showthisinfo(this.id)">',t+='<td align="center">'+i+"</td>",t+='<td align="center">'+a.Name+"</td>",t+='<td align="center">'+a.p8021+"/"+a.vlanid+"</td>","1"==a.IPMode?e="IPv4":"2"==a.IPMode?e="IPv6":"3"==a.IPMode&&(e="IPv4&IPv6"),t+='<td align="center">'+e+"</td>",t+='<td align="center"><input type="checkbox" class="delselwan" value="'+l+'"></td>',t+="</tr>"}$("#internet_list").html(t)}function setBridge(){setTimeout(()=>{$("#WanConnectMode_select").append('<option value="bridge">Bridge</option>')},1e3)}displayTableHtml(),$("td").click(()=>{setBridge()});
@pratyakshm
pratyakshm / Sideloading_apps_in_WSA.md
Last active April 15, 2024 20:43
Sideloading apps on Windows Subsystem for Android in Windows 11

Sideloading APKs in to Windows Subsystem for Android

Update (9th July, 2022): An app is available that does just this.

Check out WSATools by Simone Franco: https://www.microsoft.com/store/apps/9N4P75DXL6FG


Setting up ADB to work with WSA

  • Launch Windows Subsystem for Android.
1. Download latest apktool version.
2. Download the batch file and aapt.exe.
3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder.
4. Open command prompt.
5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe.
6. Now, you need to install the file using the " IF " command.
7. Type the following command.
apktool if name-of-the-app.apk
@amingholami
amingholami / make-chr.sh
Last active April 24, 2024 18:13 — forked from stroebs/make-chr.sh
Install Mikrotik CHR on a DigitalOcean Droplet (2021)
Install Mikrotik CHR on Digital Ocean Ubuntu 18.04 LTS Droplet. Tested 11/2021
1. Turn Off Droplet after creation and go to Recovery and set it to Boot from Recovery ISO.
2. Trun on Droplet and open Console
3. Press 6 and go to shell
4. Paste below code to install CHR on HDD
@jclosure
jclosure / play_spotify_via_winamp.md
Last active April 13, 2024 18:39
How to play your Spotify music in Winamp and get Visualizatons

Spotiamp features a builtin Shoutcast® server, so you can easily stream the music to any device supporting Shoutcast, such as Sonos.

Download and install Winamp

I've installed version 5.8

https://www.winamp.com/

@aiexz
aiexz / api.txt
Last active April 17, 2024 21:11
Shodan API keys
OefcMxcunkm72Po71vVtX8zUN57vQtAC
PSKINdQe1GyxGgecYz2191H2JoS9qvgD
pHHlgpFt8Ka3Stb5UlTxcaEwciOeF2QM
61TvA2dNwxNxmWziZxKzR5aO9tFD00Nj
xTbXXOSBr0R65OcClImSwzadExoXU4tc
EJV3A4Mka2wPs7P8VBCO6xcpRe27iNJu
mEuInz8UH1ixLGJq4oQhEiJORERVG5xc
lkY0ng0XMo29zEhzyw3ibQfeEBxghwPF
syeCnFndQ8TE4qAGvhm9nZLBZOBgoLKd
7TeyFZ8oyLulHwYUOcSPzZ5w3cLYib61
@ebababi
ebababi / ipv6-pppoe.rsc
Created March 28, 2020 19:52
MikroTik RouterOS Script: Configure DHCPv6-PD on the PPPoE interface.
# Configure DHCPv6-PD on the PPPoE interface.
#
# Prior script execution, enable IPv6 package:
# /system
# package enable ipv6
# reboot
#
# Resources:
# https://kb.pentanet.com.au/faq/how-to-configure-a-mikrotik-routerboard-router-to-accept-ipv6
# https://www.netdaily.org/tag/mikrotik-ipv6/