Skip to content

Instantly share code, notes, and snippets.

@timelf123
timelf123 / hubspot-meetings-conversion-tracking.js
Created October 26, 2018 14:37 — forked from thmsobrmlr/hubspot-meetings-conversion-tracking.js
Track conversions of Hubspot Meetings (iframe)
function isHubspotUrl(url) {
var hubspotUrls = [
'https://local.hubspot.com',
'https://app.hubspotqa.com',
'https://app.hubspot.com',
'https://meetings.hubspot.com'
];
return hubspotUrls.indexOf(url) > -1
}
// identifier(s) should be in the following format:
// {
// resultName: 'name of key that will be used in the returned object',
// identifier: 'identifier that will be searched for in the format'
// }
function breakDown(string, format, identifiers){
for(let i = 0; i < identifiers.length; i++){
const identifier = identifiers[i];
identifier.index = format.indexOf(identifier.identifier);
}
@timelf123
timelf123 / proxy-install.sh
Created October 4, 2018 19:59 — forked from samjmck/proxy-install.sh
Squid auto-install + configure to anonymous proxy
#!/bin/bash
squiddir='/etc/squid/'
lib='/usr/lib/squid/'
conf="${squiddir}squid.conf"
clients=()
authusers=()
passwd=()
sudo apt-get -y install apache2-utils
sudo apt-get -y install squid
sudo /etc/init.d/squid stop
@timelf123
timelf123 / adidas-size-code-calculator.js
Created October 4, 2018 19:59 — forked from samjmck/adidas-size-code-calculator.js
Calculate the an adidas size code by using real life sizes from different regions
function calculateSizeCode(size, type){
switch(type){
case 'USM':
return size * 20 + 530 - 80;
break;
case 'USF':
return size * 20 + 530 - 100;
break;
case 'UK':
return size * 20 + 530 - 70;
@timelf123
timelf123 / supreme-captcha-harvester.js
Created October 4, 2018 19:56 — forked from samjmck/supreme-captcha-harvester.js
Captcha harvesting for Supreme example
'use strict';
const {Harvester} = require('captcha-manager');
const request = require('request-promise-native');
const harvester = new Harvester();
const availableCaptchaResponseTokens = [];
const siteKey = '6LeWwRkUAAAAAOBsau7KpuC9AV-6J8mhw4AjC3Xz';
@timelf123
timelf123 / portainer.txt
Created June 18, 2018 17:12 — forked from SeanSobey/portainer.md
Portainer Setup on Windows 10
Setup
=====
Enable docker without TLS
-------------------------
Docker settings -> General -> Expose docker daemon on tcp://...
Create Looback Address
----------------------
@timelf123
timelf123 / gist:6d1a1f4c6b15c555e5f5c3186ea1a8b3
Created May 14, 2018 05:23 — forked from JacobLett/gist:45561dec14ee018f02b1c3144125a634
HubSpot form embed with div target ID - without this the form can sometimes appear out of alignment
<div id="footerHSForm"></div>
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script type="text/javascript">
hbspt.forms.create({
css: '',
// Add portalId
portalId: '',
@timelf123
timelf123 / main.py
Created March 15, 2018 19:26 — forked from Kylmakalle/main.py
How to delete all your messages from chat in telegram? Easy, just use this program
from telethon import TelegramClient
from telethon.errors import SessionPasswordNeededError
from telethon.tl.functions.messages import GetHistoryRequest
from telethon.tl.functions.channels import DeleteMessagesRequest
from telethon.tl.types.channel import Channel
import shelve
from os import listdir
from time import sleep
# Просто утилиты
@timelf123
timelf123 / infra-secret-management-overview.md
Created March 4, 2018 22:27 — forked from maxvt/infra-secret-management-overview.md
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@timelf123
timelf123 / bcrypt-example
Created February 16, 2018 08:19 — forked from roycewilliams/bcrypt-example
bcrypt-example
$ cat ~/bcrypt.hash
$2a$05$LhayLxezLhK1LhWvKxCyLOj0j1u.Kj0jZ0pEmm134uzrQlFvQJLF6
$ cat ~/bcrypt.dict
$ ./hashcat64.bin -a 0 -m 3200 ~/bcrypt.hash ~/bcrypt.dict
hashcat (v3.10-143-g7f59a82) starting...
OpenCL Platform #1: NVIDIA Corporation
======================================
- Device #1: GeForce GTX 970, 1023/4095 MB allocatable, 13MCU