Skip to content

Instantly share code, notes, and snippets.

View adamongithub's full-sized avatar

Adam Taylor adamongithub

  • Southampton, UK
View GitHub Profile
@adamongithub
adamongithub / gist:54dd30de176539760c970c60de70ccf5
Last active May 12, 2025 10:06
Optimizely cms content migrate
using EPiServer;
using EPiServer.Core;
using EPiServer.PlugIn;
using EPiServer.ServiceLocation;
using System;
using System.Linq;
[ScheduledPlugIn(DisplayName = "Migrate OldArticlePage to NewArticlePage")]
public class MigrateContentJob : ScheduledJobBase
{
@adamongithub
adamongithub / btctelegrampricebt.py
Last active May 12, 2021 18:18
Telegram BTC price bot
from telethon import TelegramClient, events, sync
from telethon.tl.functions.messages import ImportChatInviteRequest
from telethon.sessions import StringSession
import re
import json
import requests
def Main(event, context):
api_id = 1010101 #update
@adamongithub
adamongithub / load-jQuery.js
Created February 2, 2021 10:35 — forked from takkyuuplayer/load-jQuery.js
use jQuery in Chrome javascript console.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
@adamongithub
adamongithub / facebook-page-invite.js
Created January 14, 2018 13:43 — forked from guiliredu/facebook-page-invite.js
Facebook - Script to auto invite people who liked a page post do like the page
var buttons;
buttons = document.getElementsByClassName('_42ft');
for (var i = 0; i < buttons.length; i++) {
if(buttons[i].getAttribute('ajaxify') != null){
if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){
buttons[i].click();
}
}
}
@adamongithub
adamongithub / 0_reuse_code.js
Created October 13, 2016 13:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console