Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Kirill Krasin Mo45

💭
I may be slow to respond.
Block or report user

Report or block Mo45

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Mo45
Mo45 / top.php
Created Aug 28, 2019
Rust-Server-Website-Template — Using image instead of text
View top.php
<?php if(CONF_BGVID == "ON"){ ?>
<section class="face">
<!-- Specify the path to your video file, because this is video from Facepunch website :) -->
<div class="fullvideo">
<video preload="auto" autoplay="autoplay" muted="muted" loop="loop" playsinline="">
<source type="video/mp4" src="<?php echo SITE_URL; ?>/bg.mp4">
</video>
</div>
<?php ;}else{ ?>
<section class="face" style="background-image: url( '<?php echo SITE_URL; ?>/img/bg_0.jpg' );">
@Mo45
Mo45 / PHPMailer.php
Last active Aug 29, 2019
Rust-Server-Website-Template — How to use PHPMailer Example
View PHPMailer.php
<?php
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5.5.
*
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
*
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
@Mo45
Mo45 / class-search.php
Last active Mar 28, 2019 — forked from adigital/class-search.php
A PHP script to search a MySQL database
View class-search.php
<?php
/**
* Performs a search
*
* This class is used to perform search functions in a MySQL database
*
* @version 1.2
* @author John Morris <support@johnmorrisonline.com>
* @author Kirill Krasin <kirillkrasin@gmail.com>
*/
@Mo45
Mo45 / iptv-channels-list.php
Created Dec 11, 2018
Fetch and display channels list from IPTV playlist (*.m3u)
View iptv-channels-list.php
<!DOCTYPE html>
<html>
<head>
<title>IPTV Channels</title>
</head>
<body>
<ul>
<?php
$file = './list.m3u'; //IPTV-playlist
View cpc-figure-figcaption.markdown

CPC: Figure & Figcaption

Figure with figcaption for blog post image. Smooth transition and clip path included.

A Pen by Kirill on CodePen.

License.

@Mo45
Mo45 / discord.msg.send.php
Last active Jan 30, 2020
PHP - Send message to Discord via Webhook
View discord.msg.send.php
<?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
View game.js
var fs = require('fs');
var Steam = require('steam');
var bot = new Steam.SteamClient();
bot.logOn({
accountName: 'username', //Username
password: 'password', //Password
authCode: 'code', // Steam Guard
shaSentryfile: fs.readFileSync('sentry')
});
You can’t perform that action at this time.