Skip to content

Instantly share code, notes, and snippets.

@timwco
timwco / delete.md
Last active July 20, 2023 15:59
LinkedIn: Delete Messages (June 2022)

What

LinkedIn is a valuable resource, but sometimes it sucks. One of those times is when you want to delete messages. You have to select each message one by one. It takes about 4 "clicks" to successfully delete a message.

This script should help. Since LI requires you to perform multiple steps, I decided to automate it for you. Once you initiate the script, it will run every second. If a message has the ability to be deleted, it will be. If not, it will be archived. Some "InMail" messages cannot be deleted on the web app. This script should work as long as LI doesn't change their page layout or element names, which happens often.

Last tested & verified working on: June, 10, 2022

Special Thanks to @noncent for the updated script.

@timwco
timwco / gist:57a3dba5a9e18c2b50fe596b22bf6ab4
Created May 19, 2023 16:52 — 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: '',
@timwco
timwco / notes.md
Created January 8, 2018 14:29
React Native - Debug in RELEASE MODE

In AppDelegate.m

#import <React/RCTLog.h>

Then in the didFinishLaunchingWithOptions function add:

RCTSetLogThreshold(RCTLogLevelInfo - 1);


@timwco
timwco / instructions.md
Last active September 29, 2018 00:23
How to use Bourbon, Neat, Bitters and Refills in a Yeoman app with Bower.

Your bower_components folder should be outside of your /app folder. Otherwise you'll need to modify the paths below.

  • Scaffold your Yeoman App
  • Install Bourbon, Neat & Bitters
    • bower install bourbon
    • bower install neat
    • bower install bitters
  • In your app/stylesheets/main.scss include the assets in this order
@import '../../bower_components/bourbon/dist/bourbon';
@timwco
timwco / rollout.sh
Last active March 30, 2018 15:37 — forked from mason-stewart/rollout.sh
Roll out.
#!/bin/bash
open -a Google\ Chrome "https://www.youtube.com/watch?v=JSvdW1zs1No"
sleep 16
say "roll out"
sleep 0.8
say "roll out"
sleep 0.8
say "roll out"
sleep 0.8
@timwco
timwco / directions.md
Last active August 16, 2017 17:51
Deploy Yeoman App on Heroku

Deploy a Yeoman Web App on Heroku

Prerequisites - Heroku Toolbelt

1: Navigate to any Yeoman App

2: You'll need Express and Gzippo so run the following

  • npm install gzippo --save
  • npm install express --save
@timwco
timwco / yeoman-githubpages.md
Last active August 16, 2017 17:48
Yeoman & Github Pages

By default Yeoman puts your final work in a folder called dist which by default is ignored by git.

Also, since the site is not powered from the root of your project, Github Pages will show a Page Not Found.

You need to both tell git to NOT ignore the dist folder as well as set up a subtree for your gh-pages branch.

Here are the steps.

Step 1

@timwco
timwco / ex1.html
Created June 13, 2017 13:54
Exercise 1
<body>
<div class="my class name">
<div>
@timwco
timwco / index.html
Created June 8, 2017 19:50
Form Builder
<!DOCTYPE html>
<html>
<head>
<title>Form Builder</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="wrapper">
<form>