Skip to content

Instantly share code, notes, and snippets.

View dreygur's full-sized avatar
⚠️
Cannot read property 'status' of undefined

Rakibul Yeasin dreygur

⚠️
Cannot read property 'status' of undefined
View GitHub Profile
/**
* I am Lazy
* Too much Lazy! :D
* Good day!
*
* ==========================================
* Modified from Default SaveAsPdf
*
*/
@dreygur
dreygur / Config vscode for me.py
Last active September 6, 2019 11:35
As I'm Lazy, I needed an automation system that will configure vscode on anyones computer for me.
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
###
# File: Config vscode for me.py
# Created: Saturday, 3rd August 2019 2:38:42 pm
# Author: Rakibul Yeasin (ryeasin03@gmail.com)
# -----
# Last Modified: Saturday, 3rd August 2019 2:39:57 pm
# Modified By: Rakibul Yeasin (ryeasin03@gmail.com)
# -----
@dreygur
dreygur / eboardresults.com.js
Last active July 17, 2019 07:45
They do the most in client-side. Here are some clue. Good Luck! ;)
/*
* Here is a short method :D
* Pass Current Date-Time: Date.now()
* var base_url = 'https://eboardresults.com'
* var now = Date.now()
* var captcha_url = base_url + '/cdn/svc/captcha_static/captcha.php?t=' + now
* var captcha = ''
* var result_url = base_url + '/app/stud/getres.php?exam=' + exam + '&year=' + year +'&board=' + board + '&result_type=1&roll=' + roll + '&reg=&eiin=&dcode=&ccode=&captcha=' + captcha
* Get Captcha: https://eboardresults.com/cdn/svc/captcha_static/captcha.php?t=1563349061369
* Result URL: https://eboardresults.com/app/stud/getres.php?exam=hsc&year=2019&board=rajshahi&result_type=1&roll=111178&reg=&eiin=&dcode=&ccode=&captcha=lekehell
#!/bin/bash
# This Script somehow can configure my xfce4-de
# as I love to see.
# This is a part of my `iAmLazy` project
# Please push some bug-fix and help me to be lazy as always :)
# Copyrighted under MIT License
# 2019 "Rakibul Yeasin" (@dreygur)
#
# Supports:
@dreygur
dreygur / Popcorn-Time.sh
Last active June 19, 2019 12:18
The famous torrent streaming app 'Popcorn Time' installer for linux
#!/bin/bash
# Bash Script to Install Popcorn-Time
# For Mamun(Shanto)
echo "Updating..."
sudo apt update
echo "Configuring..."
sudo apt install -y libcanberra-gtk-module libgconf-2-4
function changePrivacy() {
for(i = 0; i <= 1000; i++) {
var privacy = document.querySelectorAll('[aria-label="Shared with Public"]');
for (i = 0; i < privacy.length; i++) {
privacy[i].click();
var more = document.getElementsByClassName('_54nc _54nu');
if (more !== undefined || more !== null) {
more[0].click();
}
var onlyMe = document.getElementsByClassName('_54nh _4chm _48u0');
/*
* SMS Sender Using api
* Author: Rakibul Yeasin
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
<!DOCTYPE html>
<html lang="en">
<!--
* Cricinfo Live Result Grabber
* Author: Rakibul Yeasin
-->
<head>
<link rel="icon" type="image/x-icon" href="https://i.ibb.co/CBdJNpP/cricket.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
$(function() {
$.ajax({
url: "https://cors-anywhere.herokuapp.com/http://static.cricinfo.com/rss/livescores.xml",
type: "GET",
dataType: "xml",
success: onSuccess,
error: onError
});
function onSuccess(xml) {
function getUrl() {
var regex = /https:\/\/.{0,3}\.+([\w.,@?^=%&:/~+#-]*)?/g;
var html = document.body;
var url = regex.exec(html.toString);
return url;
}
function getUrl();