Skip to content

Instantly share code, notes, and snippets.

View menjilx's full-sized avatar
🌴
Working Remotely

Menj Villalobos menjilx

🌴
Working Remotely
View GitHub Profile
@menjilx
menjilx / FileDownload.php
Created July 13, 2022 10:32 — forked from rodneyrehm/FileDownload.php
PHP: FileDownload
<?php
class FileDownload
{
public static $_response_status = array(
200 => 'OK',
201 => 'Created',
204 => 'No Content',
206 => 'Partial',
207 => 'Multi-Status', // WTF ??
@menjilx
menjilx / RSS to JSON PHP
Created August 7, 2021 13:03 — forked from BilalBudhani/rssToJson
PHP function to convert simple RSS to JSON
public function Parse ($url) {
$fileContents= file_get_contents($url);
$fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
$fileContents = trim(str_replace('"', "'", $fileContents));
$simpleXml = simplexml_load_string($fileContents);
$json = json_encode($simpleXml);
return $json;
}
@menjilx
menjilx / discord.msg.send.php
Created April 22, 2020 08:08 — forked from Mo45/discord.msg.send.php
PHP - Send message to Discord via Webhook
<?php
//=======================================================================================================
// Create new webhook in your Discord channel settings and copy&paste URL
//=======================================================================================================
$webhookurl = "YOUR_WEBHOOK_URL";
//=======================================================================================================
// Compose message. You can use Markdown
// Message Formatting -- https://discordapp.com/developers/docs/reference#message-formatting
Verifying my Blockstack ID is secured with the address 1N7iPNbsgDMAeWjAYuqfpw98SP8kj1WmUr https://explorer.blockstack.org/address/1N7iPNbsgDMAeWjAYuqfpw98SP8kj1WmUr
@menjilx
menjilx / docker-help.md
Created December 22, 2018 12:49 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

Verifying my Blockstack ID is secured with the address 1N7iPNbsgDMAeWjAYuqfpw98SP8kj1WmUr https://explorer.blockstack.org/address/1N7iPNbsgDMAeWjAYuqfpw98SP8kj1WmUr

Keybase proof

I hereby claim:

  • I am menjxo on github.
  • I am menjxo (https://keybase.io/menjxo) on keybase.
  • I have a public key ASCbuB7b9TlyDtaON4ANawPIhP4Lq0YRxS8bwrQfUE0Bcwo

To claim this, I am signing this object: