Skip to content

Instantly share code, notes, and snippets.

View Sarverott's full-sized avatar
💭
I may be slow to respond.

Sett Sarverott Sarverott

💭
I may be slow to respond.
View GitHub Profile
#include <iostream>
using namespace std;
void blankCard(char team, char sign){
//void blankCard(){
cout
<<(char)218
<<(char)196
<<(char)196
<<(char)191
<<"\n"
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
#include <iostream>
using namespace std;
int main()
{
//for(int i=0;i<2550;i++)
for(int i=0;i<255;i++)
cout <<i<<" : "<< (char)i <<endl;
//cout <<(char)i;
return 0;
}
#include <iostream>
using namespace std;
template <typename customType> class MatrixCell{
public:
MatrixCell* NEXT=NULL;
customType* value=NULL;
MatrixCell(){
this->value=new customType;
@Sarverott
Sarverott / #php-random-names-generator.php
Created November 15, 2021 02:43
PHP script to including for randomization of html ids and classes, css selectors, js variables or else. Usefull against automated man-in-the-browser activities like bruteforce attacks
<?php
/*
** ###### Names Of Odin v1.0.0 ###### (previously published as repository)
** by Sett Sarverott @ 2018
** MIT Licence
*/
class namesGenotype{
private $nameslength;
private $nameseed=[];
public $namesspace=array();
@Sarverott
Sarverott / #youtube-get-list-of-videos-from-playing-playlist-easy.js
Last active January 19, 2022 00:27
paste code into browser devtools js console (F12 in most of internet browsers, search for "CONSOLE") and press enter to get playlist videos, list of tracks should be printed below. 3 variants of code: EASY, EXTRA and SHORTEST
/* Sett Sarverott @ 2021 */
var d="YT-playlist.";
var pl="";
var z=window.location.href.split("?")[1].split("&");
for(var i in z)
if(
z[i].split("=")[0]=="list"
)
pl=z[i].split("=")[1];
d+=pl+".txt\n\n~~~~~~\n";
@Sarverott
Sarverott / #youtube-extracting-song-s-titles-from-mixtape-videos.js
Last active November 14, 2021 22:47
paste code into browser devtools js console (F12 in most of internet browsers, search for "CONSOLE") and press enter to get chapters list, list of tracks shuld be printed below.
/* Sett Sarverott @ 2021 */
var d="YT-mixtape.";
var z=window.location.href.split("?")[1].split("&");
for(var i in z)
if(
z[i].split("=")[0]=="v"
)
d+=z[i].split("=")[1]+".";
d+="txt\n\n~~~~~~\n";
var y=document.getElementsByTagName("yt-formatted-string");
/* Sett Sarverott @ 2021 */
function camelCaser(name, spliter="-"){//camelCaser("namespace-helpers")=="namespaceHelpers"
name=name.split(spliter);
for(var i in name){
if(i!=0){
name[i]=name[i].charAt(0).toUpperCase()+name[i].slice(1).toLowerCase();
}
}
return name.join("");
}
const express=require('express');
const johnnyFive=require("johnny-five");
const app=express();
const port=3000;
const board=new johnnyFive.Board({port:"COM8"});
class AnubisLightsControll{
constructor(name,pin){
this.pin=pin;
this.name=name;
@Sarverott
Sarverott / ipac-maco.js
Last active June 15, 2020 00:53
solution to easy compression of MAC and IPv4 adresses
/*
ipac-maco.js
Sett Sarverott
2020
*/
function ipacCoding(ipAddress){
//console.log(ipAddress);
var cryptoip=[];
ipAddress.split(".").forEach(function(data){