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
@Seminioni
Seminioni / current-date-and-time.applescript
Created August 19, 2021 01:33 — forked from Glutexo/current-date-and-time.applescript
AppleScript to get current date and time (YYYY-MM-DD HH:MM:SS). Usable as a Text Service in Mac OS X.
(*
The zero_pad function taken from:
http://www.nineboxes.net/2009/10/an-applescript-function-to-zero-pad-integers/
*)
on zero_pad(value, string_length)
set string_zeroes to ""
set digits_to_pad to string_length - (length of (value as string))
if digits_to_pad > 0 then
repeat digits_to_pad times
set string_zeroes to string_zeroes & "0" as string
@Seminioni
Seminioni / HOWTODMG.md
Created January 17, 2021 09:20 — forked from jadeatucker/HOWTODMG.md
How to create a "DMG Installer" for Mac OS X

Creating a "DMG installer" for OS X

A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.

##Creating the DMG file #Disk Utility

@Seminioni
Seminioni / gist:7b051c2e80a0e8ed6dd266b289fc7cd8
Last active October 13, 2020 12:08 — forked from stereokai/gist:36dc0095b9d24ce93b045e2ddc60d7a0
CSS rounded corners with gradient border
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: content-box, border-box;
}
@Seminioni
Seminioni / isArrowOrFunctionOrClass.js
Created September 26, 2020 05:51 — forked from wentout/isArrowOrFunctionOrClass.js
The answer to the question is something an Arrow or Class or regular Function
'use strict';
const myArrow = () => {};
const myFn = function () {};
class MyClass {};
const isArrowFunction = (fn) => {
if (typeof fn !== 'function') {
return false;
@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.
@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 / 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 / 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) {
// ==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==