Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
<?php | |
/** | |
* Link the FR translation and the EN translation | |
* Called by API https://domain.com/wp-json/link_translation/post/ | |
*/ | |
function custom_rest_link_translation($data) { | |
//Source https://wpml.org/wpml-hook/wpml_set_element_language_details/ |
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
#!/bin/bash | |
# Adjust homserver, room, and accesstoken to your particular setup | |
# Script is expecting data to be piped in on STDIN | |
# Example: | |
# echo "some text" | sendmatrix | |
msgtype=m.text | |
homeserver=<homeserver> | |
room=<room id> |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 12 Feb 2014 13:09:28 GMT till Thu, 12 Feb 2015 13:09:28 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter((user) -> user.followers > 11)
########## Install NGINX ############## | |
# Install software-properties-common package to give us add-apt-repository package | |
sudo apt-get install -y software-properties-common | |
# Install latest nginx version from community maintained ppa | |
sudo add-apt-repository ppa:nginx/stable | |
# Update packages after adding ppa |
#!/usr/bin/env python3 | |
# Download all zip files from a single bbp page eg: | |
# ./djbb.py http://www.breakbeat-paradise.com/samplesite/bb_synth.php | |
import requests | |
import re | |
import shutil | |
import sys |
#!/bin/bash | |
# | |
# Open new Terminal tabs from the command line to currently running ITerm2 | |
# session | |
# | |
# Author: Justin Hileman (http://justinhileman.com) | |
# Modified by: Jarkko Saltiola (http://saltio.la) | |
# | |
# Installation: | |
# Add this file path |
/* usbreset -- send a USB port reset to a USB device | |
* | |
* Compile using: gcc -o usbreset usbreset.c | |
* | |
* | |
* */ | |