Skip to content

Instantly share code, notes, and snippets.

Avatar
💃

rainb3rry

💃
  • Istanbul
View GitHub Profile
View jsout.js
This file has been truncated, but you can view the full file.
(function (document, window) {
/*
stats.js - http://github.com/mrdoob/stats.js
Copyright (c) 2009-2016 stats.js authors
MIT License
This program uses code provided under the MIT License.
MIT License
@rainb3rry
rainb3rry / amass_purifier.sh
Created Sep 19, 2020
Amass output purifier for just domains
View amass_purifier.sh
while read p; do
echo $p | cut -c19-2000000 | cut -f1 -d" " >> purified.txt
done < output.txt
@rainb3rry
rainb3rry / unzip.vbs
Created Feb 19, 2020
Unzip archive files without dialog box in Visual Basic Script (plain state of https://github.com/jgstew/tools/blob/master/VBS/zipExtract.vbs)
View unzip.vbs
Dim strZipFilePath, objOutputFolder, objFSO, objShell
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject( "Shell.Application" )
strZipFilePath = "C:\Users\x\Desktop\file.zip"
objOutputFolder = "C:\Users\x\Desktop"
objShell.NameSpace( objOutputFolder ).copyHere ( objShell.NameSpace( objFSO.GetAbsolutePathName( strZipFilePath ) ).Items() ), 1044
View sub.js
const request = require('request')
const fs = require('graceful-fs')
fs.readFile('data.txt', 'utf-8', (err, res) => {
var data = res.replace(/<BR>/g, '\n').split('\n').map(val => (val.substr(0, 1) != '.') ? val : val.substr(1, val.length - 1)).slice(0, -1)
function go(count) {
var link = 'http://' + data[count]
request(link, {forever: false, timeout: 15000}, function(err, response, body) {
@rainb3rry
rainb3rry / n11-reg.js
Last active Oct 9, 2018
try registration with post request but site has a token control
View n11-reg.js
const request = require('request');
const cheerio = require('cheerio');
let register = 'https://www.n11.com/uye-ol'
request(register, function (error, response, body) {
const $ = cheerio.load(body);
let token = $('.birthDate').next().next().next().next().val();
console.log(token);
request.post(
@rainb3rry
rainb3rry / iller.js
Created Mar 23, 2018 — forked from Biostate/iller.js
Türkiye iller ve ilçeleri Array
View iller.js
var iller = {
"Ankara": ["Altındağ", "Ayaş", "Bala", "Beypazarı", "Çamlıdere", "Çankaya", "Çubuk", "Etimesgut", "Haymana", "Kalecik", "Keçiören", "Kızılcahamam", "Mamak", "Nallıhan", "Polatlı", "Şereflikoçhisar", "Sincan", "Yenimahalle"],
"İstanbul": ["Adalar", "Bağcılar", "Bahçelievler", "Bakırköy", "Beşiktaş", "Beykoz", "Beyoğlu", "Büyükçekmece", "Çatalca", "Eminönü", "Esenler", "Eyüp", "Fatih", "Gaziosmanpaşa", "Güngören", "Kadıköy", "Kağıthane", "Kartal", "Küçükçekmece", "Maltepe", "Pendik", "Sarıyer", "Silivri", "Şile", "Şişli", "Sultanbeyli", "Tuzla", "Ümraniye", "Üsküdar", "Zeytinburnu"],
"İzmir": ["Aliağa", "Balçova", "Bayındır", "Bergama", "Beydağ", "Bornova", "Buca", "Çeşme", "Dikili", "Foça", "Güzelbahçe", "Karaburun", "Karşıyaka", "Kemalpaşa", "Kınık", "Kiraz", "Konak", "Menderes", "Menemen", "Narlıdere", "Ödemiş", "Seferihisar", "Selçuk", "Tire", "Torbalı", "Urla"],
"Adana": ["Aladağ", "Ceyhan", "Feke", "Karaisalı", "Kozan", "Pozantı", "Saimbeyli", "Seyhan", "Yumurtalı", "Yüreğir"
@rainb3rry
rainb3rry / class.envato-api-basic.php
Created Mar 21, 2018 — forked from dtbaker/class.envato-api-basic.php
Simple PHP class for interacting with the Envato API within a WordPress plugin
View class.envato-api-basic.php
<?php
/**
* Exception handling class.
*/
class EnvatoException extends Exception {
}
@rainb3rry
rainb3rry / youtube_id_regex.php
Created Mar 19, 2018 — forked from ghalusa/youtube_id_regex.php
Extract the YouTube Video ID from a URL in PHP
View youtube_id_regex.php
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ
View jquery-expand-collapse-all.js
/*
* jquery.expandCollapseAll.js
* Arietis Software
* www.arietis-software.com
* 2009
* version: 1.2
* ----------------------------
* distributed under the GNU General Public License Version 2
* http://www.arietis-software.com/license/gnu/license.txt
*