Skip to content

Instantly share code, notes, and snippets.

View IcedElect's full-sized avatar
💭
I may be slow to respond.

Alexey Safronov IcedElect

💭
I may be slow to respond.
  • ValorBet
  • Thai
View GitHub Profile
@dianjuar
dianjuar / Install update WordPress puglins directly.md
Last active June 4, 2025 18:16
Install update WordPress plugins without providing ftp access

Install WordPress plugins directly (without FTP)

Put this on your wp-config.php

/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
@thehelvetian
thehelvetian / addRowToSpreadsheet.php
Last active October 31, 2021 20:04
Add a new row to a spreadsheet using Google Sheets API v4
<?php
/**
* This is a proof of concept. In real life you would split up the various parts and allow for different cell value
* types. Also read Leviscowles1986's comment below:
* https://gist.github.com/thehelvetian/2e94d60b796735b167dfb1c7560049ae#gistcomment-1822986
*
* @param array $ary_values An array containing the cell values
* @return bool Request status
*/
function addRowToSpreadsheet($ary_values = array()) {