Skip to content

Instantly share code, notes, and snippets.

View jmmedel's full-sized avatar
🕶️
I may be slow to respond.

Kagaya jmmedel

🕶️
I may be slow to respond.
View GitHub Profile
@jmmedel
jmmedel / README.md
Created August 6, 2020 02:52 — forked from Lazza/README.md
VPNGate Python script

vpngate.py

This script allows to use the free VPN service provided by VPNGate in an easy way. The user just needs to provide the desidered output country, and the script automatically chooses the best server.

After this step, OpenVPN is launched with the proper configuration. The VPN can be terminated by pressing Ctrl+C.

Usage

Run the script by providing the desired output country:

@jmmedel
jmmedel / MrBeast
Created August 3, 2020 07:53
MrBeast
Step1:
https://www.youtube.com/watch?v=fZDUxJ-7Y4A
Step2
https://www.youtube.com/watch?v=epDAcSX3mpk
Step3
https://www.youtube.com/watch?v=J1oFKE8Z8wY
@jmmedel
jmmedel / flappycarlbypass.js
Created August 1, 2020 19:27 — forked from Kh4n/flappycarlbypass.js
MrBeast Scripts
function post_sync(url, data) {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, false);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify(data));
return xhr;
}
console.log("Running script, this may take up to 2 minutes");
post_sync("/carl/api/do-event",{
velocity:"0", gravity:"0.25",jump:"-4.6",event:"start",position:"121.324",rotation:"0",score:"0",pipeheight:"200"
(async function () {
let interval = null;
let counter = 0;
const fetch = async function(url) {
try {
return await $.ajax(url, {dataType: "json"});
} catch (error) {
console.log('Error:', error);
}
@jmmedel
jmmedel / index.php
Created March 4, 2020 11:14 — forked from ziadoz/index.php
Simple PHP / jQuery CSRF Protection
<?php
// See: http://blog.ircmaxell.com/2013/02/preventing-csrf-attacks.html
// Start a session (which should use cookies over HTTP only).
session_start();
// Create a new CSRF token.
if (! isset($_SESSION['csrf_token'])) {
$_SESSION['csrf_token'] = base64_encode(openssl_random_pseudo_bytes(32));
}
@jmmedel
jmmedel / myscript.sh
Created February 23, 2020 02:45 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@jmmedel
jmmedel / blogscraping.py
Created January 13, 2020 02:36 — forked from bradtraversy/blogscraping.py
Simple scraping of a blog
import requests
from bs4 import BeautifulSoup
from csv import writer
response = requests.get('http://codedemos.com/sampleblog/')
soup = BeautifulSoup(response.text, 'html.parser')
posts = soup.find_all(class_='post-preview')
@jmmedel
jmmedel / docker-help.md
Created November 6, 2019 11:16 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@jmmedel
jmmedel / js_linked_list.js
Created July 3, 2019 16:54 — forked from bradtraversy/js_linked_list.js
JS Linked List Class
// Construct Single Node
class Node {
constructor(data, next = null) {
this.data = data;
this.next = next;
}
}
// Create/Get/Remove Nodes From Linked List
class LinkedList {
@jmmedel
jmmedel / index.html
Created June 28, 2019 06:36
Scrolling & Looping Gallery - Vanilla HTML/CSS/JS - ES5 - No Touch Events
<div class="container">
<div class="feature">
<figure class="featured-item image-holder r-3-2 transition"></figure>
</div>
<div class="gallery-wrapper">
<div class="gallery">
<div class="item-wrapper">
<figure class="gallery-item image-holder r-3-2 active transition"></figure>