Skip to content

Instantly share code, notes, and snippets.

View jalbertbowden's full-sized avatar

albert jalbertbowden

View GitHub Profile
@jalbertbowden
jalbertbowden / in-your-console.js
Created July 18, 2020 05:33 — forked from parkr/in-your-console.js
delete your tweets and un-retweet tweets
// go to https://twitter.com/your-username, and enter the following into the developer console:
for(var i = 1; i < 500; i++){ // just do it a bunch
// Un retweet
document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click();
document.getElementsByClassName("js-close")[0].click();
// Delete tweets
document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click();
document.getElementsByClassName("delete-action")[0].click()
}
@jalbertbowden
jalbertbowden / delete-likes-from-twitter.md
Created July 18, 2020 05:29 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@jalbertbowden
jalbertbowden / red_velvet_cake.md
Created May 7, 2020 04:11 — forked from jeremyjbowers/red_velvet_cake.md
Georgia Red Velvet Cake

Red Velvet Cake

Red Velvet cake recipe Red Velvet cake finished

Cake

Ingredients

From original recipe

@jalbertbowden
jalbertbowden / va_covid_data.R
Created April 22, 2020 23:42 — forked from aejolene/va_covid_data.R
A rough script to pull geospatial data on COVID-19 cases by county from a Virginia Department of Health ArcGIS feature Service with R.
#################
#This is a very rough script to pull COVID-19 geospatial data from the VDH feature service.
# 2020-04-22
#################
library(dplyr)
library(esri2sf)
library(sf)
library(geojsonsf)
library(lubridate)
@jalbertbowden
jalbertbowden / terminal.md
Created April 20, 2020 18:18 — forked from ryansechrest/terminal.md
Shortcuts for Mac terminal.

Shortcuts

Command Description
Ctrl + A Jump to beginning of line
Ctrl + E Jump to end of line
Ctrl + U Delete text before cursor
Ctrl + K Delete text after cursor
Ctrl + W Delete word before cursor
Ctrl + T Swap last two characters before cursor
@jalbertbowden
jalbertbowden / html-style-guide.md
Created April 20, 2020 18:18 — forked from ryansechrest/html-style-guide.md
HTML style guide with coding standards and best practices.

HTML Style Guide

All rules and guidelines in this document apply to HTML files.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Icon Legend:

· Space, Tab, Enter/Return

@jalbertbowden
jalbertbowden / webkit-pseudo-elements.md
Created August 23, 2019 21:59 — forked from leostratus/webkit-pseudo-elements.md
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@jalbertbowden
jalbertbowden / php.ini
Created August 18, 2019 01:29 — forked from adrienne/php.ini
PHP .ini file
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@jalbertbowden
jalbertbowden / REST_PHP_get_entry_list_example.php
Created August 10, 2019 16:21 — forked from sugarknowledge/REST_PHP_get_entry_list_example.php
PHP Example using cURL with the v4 SOAP API to retrieve a list of records with get_entry_list
<?php
$url = "http://{site_url}/service/v4/rest.php";
$username = "admin";
$password = "password";
//function to make cURL request
function call($method, $parameters, $url)
{
ob_start();
@jalbertbowden
jalbertbowden / TSQL2JSON
Created August 10, 2019 16:05
Use PHP to connect to MS SQL Server and convert results to JSON
<?php
/*
* Script to connect to MS SQL Server using
* SQL Server Authentication not Win Domain Auth.
* Return tabular results and convert to JSON.
* Colin A. White - October 2014
*/
/* Setup Connection Credentials */