Skip to content

Instantly share code, notes, and snippets.

View ashsaraga's full-sized avatar
🌈
Building tools only I'll wind up using.

Ash Saraga ashsaraga

🌈
Building tools only I'll wind up using.
View GitHub Profile
<?php
function enable_page_excerpt() {
add_post_type_support('page', array('excerpt'));
}
add_action('init', 'enable_page_excerpt');
@ashsaraga
ashsaraga / tunejack.sh
Created November 13, 2019 17:53 — forked from xndc/tunejack.sh
Instant radio streaming script using the TuneIn API
#!/bin/bash
# tunejack.sh uses the TuneIn public API (at opml.radiotime.com) to search for
# a radio station, print out its details and try to play it somehow.
if [ "$#" -eq 0 ]; then
echo "$0: search for a radio station using the TuneIn API"
echo "Usage: $0 PATTERN"
exit 1
fi
@ashsaraga
ashsaraga / log_onClick.js
Created February 14, 2022 17:16
Quick script to `console.log()` any element clicked on.
window.onclick = e => {
console.log(e.target);
}