Skip to content

Instantly share code, notes, and snippets.

View KoenRijpstra's full-sized avatar
💭
Pushing Web3 Development To The Next Level 🚀

Koen Rijpstra KoenRijpstra

💭
Pushing Web3 Development To The Next Level 🚀
View GitHub Profile
@KoenRijpstra
KoenRijpstra / get_token_info.js
Created March 13, 2024 09:54
Helius Get Token Info
const API_KEY = "YOUR_API_KEY";
const getTokenInfo = async (token) => {
const getAssetResponse = await fetch(`https://mainnet.helius-rpc.com/?api-key=${API_KEY}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
jsonrpc: "2.0",
@KoenRijpstra
KoenRijpstra / transaction-types.txt
Last active February 2, 2024 08:12
Helius Webhook Transaction Types
Any
NFT_BID
NFT_GLOBAL_BID
NFT_GLOBAL_BID_CANCELLED
NFT_BID_CANCELLED
NFT_LISTING
NFT_CANCEL_LISTING
NFT_SALE
NFT_MINT
NFT_AUCTION_CREATED
@KoenRijpstra
KoenRijpstra / laravel-forge-ngx-pagespeed.sh
Created January 31, 2018 19:01 — forked from CasperLaiTW/laravel-forge-ngx-pagespeed.sh
Laravel Forge Support NGX_PAGESPEED
PAGESPEED_VERSION=v1.12.34.2-stable
apt-get remove nginx nginx-full -y
apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev -y
sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list.d/nginx-ubuntu-development-xenial.list
apt-get update
apt-get build-dep nginx -y
cd /tmp
apt-get source nginx
@KoenRijpstra
KoenRijpstra / gist:257bbee5fa2f38fe3680
Created June 9, 2015 09:06
Google Results to CSV
var list = document.querySelectorAll('h3.r a');
var output = "";
[].forEach.call(list, function(item) {
output += '"' + item.innerHTML + '","' + item.href + '"\n';
});
console.log(output);
@KoenRijpstra
KoenRijpstra / gist:55b6db2c4922216d7e64
Last active August 29, 2015 14:05
Copy Google results to clipboard
var results = document.querySelectorAll('#res li h3 a');
var results_body = '';
for(i=0;i < results.length;i++) {
results_body += '"' + results[i].innerHTML + '","' + results[i].href + '"\n';
}
copy(results_body);
@KoenRijpstra
KoenRijpstra / functions.php
Last active August 29, 2015 13:56
Disable pods_meta_handler
<?php
function my_pods_meta_handler() {
return false;
}
add_filter( 'pods_meta_handler', 'my_pods_meta_handler' );
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
/**
* Enable unpublished pages in page lists and dropdowns
*
* @param array $args
* @return array $args
*/
function scl_list_pages_args( $args ) {
$args['post_status'] = array( 'publish', 'private' );
return $args;
}
@KoenRijpstra
KoenRijpstra / index.php
Created December 19, 2013 10:24
Added taxonomy filter
<?php
/**
* Plugin Name: Media Library Categories
* Plugin URI: http://wordpress.org/plugins/wp-media-library-categories/
* Description: Adds the ability to use categories in the media library.
* Version: 1.3
* Author: Jeffrey-WP
*/
/** register taxonomy for attachments */
.assistive-text {
left: 0;
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}