Skip to content

Instantly share code, notes, and snippets.

View MaxySpark's full-sized avatar
🐧
JS in Front JS in Back

BHARGAB MaxySpark

🐧
JS in Front JS in Back
View GitHub Profile
// ==UserScript==
// @name Astu Btech Syllabus
// @namespace http://maxyspark.com/
// @version 0.1
// @description try to take over the world!
// @author MaxySpark
// @match http://www.astu.org.in/*
// @grant none
// ==/UserScript==
@MaxySpark
MaxySpark / wordpress custom_mail.php
Last active June 3, 2016 15:03
Its a bit of odd isn’t? Do you have any email address created as [email protected]? or Is this email [email protected] really exists? Well, we can change up these names and email address easily using the following snippet. Simply add this code on your themes functions.php Don’t forget to change the name and email address in this …
add_filter( 'wp_mail_from', 'wp4_new_mail_from' );
function wp4_new_mail_from( $old ) {
return '[email protected]'; // Edit it with your official email address
}
add_filter('wp_mail_from_name', 'wp4_new_mail_from_name');
function wp4_new_mail_from_name( $old ) {
return 'Webmaster'; // Edit it with your official name
}
@MaxySpark
MaxySpark / torrent-old-to-new.user.js
Last active July 3, 2016 23:34
This UserScript redirect the kickasstorrents and extratorrent old and block domains to new and proxy domains! You have to install Tempermonkey or Greasemonkey extension/addon in your browser! and you must Allow pop up for extratorrent.cc
// ==UserScript==
// @name Access Torrent Directly From Old Domain
// @namespace http://maxyspark.com/
// @version 0.1
// @description try to take over the world!
// @author MaxySpark
// @match http://kat.cr/*
// @match http://extratorrent.cc/torrent/*
// @match http://torrentunblock.com/*
// @grant none
@MaxySpark
MaxySpark / fibo.c
Last active September 3, 2016 22:18
fibonacci function
int fibo(int n){
if(n==0 || n==1){
return 1;
} else {
return fibo(n-1)+fibo(n-2);
}
}
@MaxySpark
MaxySpark / palindrome.c
Last active September 3, 2016 22:52
palindrome number function
int palindrome(int n) {
int a,rev=0;
a = n;
while(n!=0) {
rev = (rev*10) + (n%10);
n = n/10;
}
if(rev==a) {
return 1;
} else {
@MaxySpark
MaxySpark / nodejs-file-download.js
Created November 4, 2016 17:32
Download File Using Nodejs
var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.jpg");
var request = http.get("http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg", function(response) {
response.pipe(file);
});
@MaxySpark
MaxySpark / maxyspark-title.js
Created November 8, 2016 20:28
MaxySpark + COLOR
const colors = require('colors');
console.log(" ******************************************".rainbow.bold);
console.log(" ** **".rainbow.bold);
console.log("****".rainbow.bold + ("THIS SCRIPT IS CREATED BY: ").red.bold + "MAXYSPARK****".rainbow.bold);
console.log(" ** **".rainbow.bold);
console.log(" ******************************************".rainbow.bold);
@MaxySpark
MaxySpark / keycode.js
Last active November 23, 2016 21:09
Keyboard's Key Code For Javascript
//LETTERS
var keyA = 65;
var keyB = 66;
var keyC = 67;
var keyD = 68;
var keyE = 69;
var keyF = 70;
var keyG = 71;
var keyH = 72;
var keyI = 73;
@MaxySpark
MaxySpark / fmovies-9anime.user.js
Last active March 29, 2024 12:48
User Script to Get Direct Download Link of Movie Series and Anime from http://fmovies.to and http://9anime.to . First install "TAMPERMONKEY" OR "GREASEMONKEY" extention/plugin in your browser
// ==UserScript==
// @name Direct Download From fmovies
// @namespace http://maxyspark.com/
// @version 0.1
// @description Direct Download From fmovies
// @author MaxySpark
// @match http://fmovies.to/*
// @match https://fmovies.to/*
// @match http://9anime.to/*
// @grant none
@MaxySpark
MaxySpark / node-child-process.js
Created November 27, 2016 20:23
run a script from under script
var childProcess = require('child_process');
function runScript(scriptPath, callback) {
// keep track of whether callback has been invoked to prevent multiple invocations
var invoked = false;
var process = childProcess.fork(scriptPath);
// listen for errors as they may prevent the exit event from firing