Skip to content

Instantly share code, notes, and snippets.

View ihranova's full-sized avatar
:electron:
Always improving

Ina Hranova ihranova

:electron:
Always improving
  • Pernik, Bulgaria
View GitHub Profile
@ivandoric
ivandoric / wl-api.php
Last active April 19, 2025 11:02
WordPress Rest API Custom Endpoints Video Tutorials Notes - Check out the videos: https://www.youtube.com/watch?v=C2twS9ArdCI and https://www.youtube.com/watch?v=76sJL9fd12Y
<?php
/**
* Plugin Name: Custom API
* Plugin URI: http://chrushingit.com
* Description: Crushing it!
* Version: 1.0
* Author: Art Vandelay
* Author URI: http://watch-learn.com
*/
@litzinger
litzinger / index.js
Last active December 21, 2021 17:01
Simple Puppeteer screenshot script
/*
If saving AWS creds locally they need to be in ~/.aws/credentials
[default]
aws_access_key_id = foo
aws_secret_access_key = bar
*/
const puppeteer = require('puppeteer');
const AWS = require('aws-sdk');
@fvoska
fvoska / enable-apache-nodejs-reverse-proxy.sh
Last active March 18, 2025 20:55
Apache reverse proxy configuration for Node.js with Let's Encrypt SSL/TLS certificate.
a2ensite subdomain.me.com.conf
a2ensite subdomain.me.com.ssl.conf
service apache2 reload
@msikma
msikma / list_all_countries_eu.js
Last active July 10, 2021 10:24
List of all countries – separated, inside European Union and outside EU
/**
* List of countries, with country code (ISO 3166-1), separated by whether
* they're inside or outside the EU. This list has been updated as of
* 2014-12-04, per the list of deleted countries
* at <http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>.
*/
var listAllCountries = {
'insideEU': {
'AT': 'Austria',