Skip to content

Instantly share code, notes, and snippets.

View thisiskeanyvy's full-sized avatar
:atom:
working

Keany Vy KHUN thisiskeanyvy

:atom:
working
View GitHub Profile
@thisiskeanyvy
thisiskeanyvy / getBitcoinPrice.js
Created August 2, 2022 20:57
API Bitcoin Price (coindesk)
function getBitcoinPrice() {
//make a request to the api
$.ajax({
url: "https://api.coindesk.com/v1/bpi/currentprice.json",
success: function(data) {
//parse the data
var bitcoinPrice = data.bpi.USD.rate;
//display the data
$("#bitcoin-price").html(bitcoinPrice);
}
@thisiskeanyvy
thisiskeanyvy / rockPaperScissors.js
Created August 2, 2022 20:53
Rock Paper Scissors (2 players)
function rockPaperScissors() {
var player1 = prompt("Player 1, choose rock, paper, or scissors");
var player2 = prompt("Player 2, choose rock, paper, or scissors");
if (player1 === player2) {
alert("It's a tie!");
} else if (player1 === "rock") {
if (player2 === "scissors") {
alert("Player 1 wins!");
} else {
alert("Player 2 wins!");
@thisiskeanyvy
thisiskeanyvy / poc-ZeroAPI.py
Created January 20, 2022 16:14
A zero day to retrieve all users' data from the Open ENT API.
import requests, json, csv
from requests.packages.urllib3.exceptions import InsecureRequestWarning
# remove ssl certificate
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# ent login
username="yourusername"
password="yourpassword"
open_ent="url"
@thisiskeanyvy
thisiskeanyvy / warp+.py
Created December 7, 2021 18:09
Warp+ for free
import urllib.request
import json
import datetime
import random
import string
import time
import os
import sys
script_version = '4.0.0'
window_title = f"WARP-PLUS-CLOUDFLARE By ALIILAPRO (version {script_version})"
@thisiskeanyvy
thisiskeanyvy / autoview.py
Created December 7, 2021 17:39
Instagram auto viewer
"""
Watch user likers stories!
This script could be very useful to attract someone's
audience to your account.
If you will not specify the user_id, the script will use
your likers as targets.
Dependencies:
pip install -U instabot
@-webkit-keyframes hideThenRecreate {
from {
visibility: hidden;
}
to {
visibility: visible;
}
}
@keyframes hideThenRecreate {
@thisiskeanyvy
thisiskeanyvy / dl.py
Created October 5, 2021 15:24
Download Books
import json, requests, os
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
if not os.path.exists("livre"):
os.makedirs("livre")
with open("pages.json") as file:
tab = json.loads(file.read())
@thisiskeanyvy
thisiskeanyvy / autopost.py
Created October 5, 2021 15:21
Instagram autopost
import config
import urllib.request
from datetime import date
from instabot import Bot
#variables
today = date.today();
bot = Bot()
bot.login(username = "yourusername", password = "yourpassword");
@thisiskeanyvy
thisiskeanyvy / randlike.py
Created October 5, 2021 15:18
Github autolike
"""
Code by: Keany Vy KHUN
Description: Call github api to GET random repo
"""
#pip3 install selenium
#pip3 install requests
#pip3 install json
"""
@thisiskeanyvy
thisiskeanyvy / ent_auth.py
Last active July 31, 2022 20:15
Un script pour se connecter à l'ent via une requête POST
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
# remove ssl certificate
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# ent login
username=""
password=""