Skip to content

Instantly share code, notes, and snippets.

View Seminioni's full-sized avatar
🖖
Sup world

Mike Syomin Seminioni

🖖
Sup world
View GitHub Profile
const number = '+7(222)444-55-66'
const arr = Array.from(number)
.filter(el => {
return /\d/.test(el)
})
.reduce((num, acc) => {
return +num + +acc;
}, 0)
console.log(arr)
@Seminioni
Seminioni / cloudSettings
Last active April 28, 2020 16:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-28T16:32:02.979Z","extensionVersion":"v3.4.3"}
@Seminioni
Seminioni / git-clearHistory
Created March 26, 2018 01:13 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
// ==UserScript==
// @name Tinder liker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://tinder.com/app/recs
// @grant none
// ==/UserScript==
@Seminioni
Seminioni / badCommitFinder
Created June 8, 2018 12:55
semrush test function
function badCommitFinder(list, item) {
let low = 0;
let high = list.length - 1;
while (low <= high) {
const mid = (low + high) / 2 | 0;
const guess = list[mid];
if (guess === item) {
@Seminioni
Seminioni / git-change-commit-messages.md
Created July 3, 2018 15:12 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@Seminioni
Seminioni / api-service.js
Created July 20, 2018 10:26 — forked from kitze/api-service.js
lightweight wrapper around axios with a cache layer
//external libs
import Q from 'q';
import axios from 'axios';
import _ from 'lodash';
//modules
import CONSTANTS from '../helpers/constants';
import Notifications from '../helpers/notifications-service';
import ApiCache from '../helpers/cache';
import {setLocation} from '../helpers/location-changer';
@Seminioni
Seminioni / remote_pkg_installer.txt
Created November 10, 2018 20:10 — forked from flatz/remote_pkg_installer.txt
Instructions for Remote Package Installer
Remote Package Installer
Package link: https://mega.nz/#!GVMmgaqY!0jtBc1BWaPD2_5MoYszzxdMjcCKMq8zvM6s6Mwzl8yw
Requirements:
Any exploit on 4.5x+
HEN 1.8 (you could get it from zecoxao's page) or any other kernel payload (it just need to have fPKG stuff and /data mount patches for ShellCore that I've posted recently)
Here is the first version of remote package installer that I made a few days ago, it have no GUI yet (it just displays a splash screen), but all the job could already be done via Web API that you could access remotely from your PC using any of available tools that you prefer: a custom web server or an application, NodeJS scripts, etc. No more need to use USB flash drives or external hard drives for your packages, everything could be done remotely.