Skip to content

Instantly share code, notes, and snippets.

View stursby's full-sized avatar

Charlie Hield stursby

  • Minneapolis, MN
View GitHub Profile
@stursby
stursby / info.md
Created May 7, 2024 23:53
Cloudflare URL Params

URL Decoded

https://dash.cloudflare.com/profile/api-tokens?permissionGroupKeys=[{"key":"d1","type":"edit"},{"key":"workers_r2","type":"edit"},{"key":"workers_kv_storage","type":"edit"},{"key":"page","type":"edit"},{"key":"billing","type":"read"},{"key":"account_logs","type":"edit"},{"key":"account_analytics","type":"read"},{"key":"account_settings","type":"read"}]&name=NuxtHub Team Charlie Hield
@stursby
stursby / instructions.md
Last active June 22, 2023 18:56
The Trade Desk + Google Web Designer clickTAG Instructions
  1. Drag a new Tap Area component into the scene and make sure it’s on the top layer.
  2. Resize the layer to match the banner dimentions and rename it tradeDeskClickTag. (After setup is done, you can hide and lock this layer)
  3. Right click the Tap Area and select Add Event. Next, under the Tap Area dropdown, select Touch/Click.
  4. In the Action section, under the Custom dropdown, select the Add custom action.
  5. Name the function clickEvent and the paste the following JavaScript code in the textarea:
window.open(window.clickTAG)
@stursby
stursby / test.js
Created July 30, 2019 16:42
Bottleneck example
const axios = require('axios')
const Bottleneck = require('bottleneck')
const limiter = new Bottleneck({
maxConcurrent: 1,
minTime: 5000
})
const urls = [
'https://jsonplaceholder.typicode.com/users',
@stursby
stursby / README.md
Last active July 10, 2019 15:59
Craft 3.2 Headless Preview
  1. This assumes you’ve got Craft 3.2 running and the CraftQL plugin installed 🙌🏻

  2. Create a Section named Home and then attach a field named Copy to your field layout.

  3. Add a Preview Taget (in the Home section settings) with the label Local pointing to the URL http://localhost:3000

image

  1. Go into the Home entry and click Preview button, then switch to Local target.
@stursby
stursby / README.md
Last active September 8, 2024 11:22
Vue + Firebase + Auth Demo

Vue + Firebase + Auth Demo

A simple App using Vue.js & Firebase with Auth.

See the DEMO.

@stursby
stursby / fonts.css
Created July 12, 2016 14:24
System font stack
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
@stursby
stursby / one-liner.md
Last active May 19, 2016 15:56
linux web permissions

Apache

sudo chown -R www-data:www-data /var/www/html/

nginx

sudo chown -R www-data:www-data /usr/share/nginx/html/
@stursby
stursby / tip.md
Last active May 12, 2016 15:07
Dynamic shebang
#!/usr/bin/env <language>

Example

#!/usr/bin/env python
@stursby
stursby / info.md
Last active December 22, 2015 20:09
Raspberry Pi boot SMS IP address script

Raspberry Pi boot SMS IP address script

Set environment variables

Open .bashrc

sudo nano ~/.bashrc
@stursby
stursby / LOC.md
Created December 4, 2015 16:39
Count number LOC (line of code)
find . -name "*.js" | xargs cat | wc -l

(via Slideshare).