This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbindall | |
bind "RIGHTALT" "_strafe" | |
bind "RIGHTCTRL" "_attack" | |
bind "RIGHTSHIFT" "_speed" | |
bind "LEFTALT" "_strafe" | |
bind "LEFTCTRL" "_attack" | |
bind "LEFTSHIFT" "_speed" | |
bind "TAB" "_impulse19" | |
bind "ESCAPE" "togglemenu" | |
bind "SPACE" "_moveup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change to Windows XP | |
protontricks 244210 winxp | |
# Uninstall .NET/Mono (manually) | |
protontricks 244210 uninstaller | |
echo 'Uninstall all stuff related to .NET or Mono.' | |
# Install .NET 4.0 | |
protontricks 244210 --force -q dotnet40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$welcomeMessage = 'Hello and welcome! This is a very cool service behind a paywall. Get started today!'; | |
$keyboard = [ | |
'Get a free trial for 5 days', | |
'Check FAQ' | |
]; | |
// Reply to user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>Pusher Test</title> | |
<script src="https://js.pusher.com/4.1/pusher.min.js"></script> | |
<script> | |
// Enable pusher logging - don't include this in production | |
Pusher.logToConsole = true; | |
var pusher = new Pusher('key_here', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!auth()->user()) { | |
return abort(401); | |
} | |
$users = \App\TelegramBotUser::subscribers(); | |
echo $users->count(); | |
echo '<br>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('/welcome', function () { | |
return view('welcome'); | |
}); | |
Route::get('/{link}', 'LinkController@show') | |
->where(['link' => '[a-zA-Z0-9_]+']) | |
->name('link.show'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#sign-up form').submit(function (event) { | |
var $this = $(this), | |
email = $this.find("input[name='email']").val(), | |
password = $this.find("input[name='password']").val(), | |
repeatPassword = $this.find("input[name='repeatpassword']").val(), | |
captcha = grecaptcha.getResponse(widgetId1); | |
if (password !== repeatPassword) { | |
document.querySelector('#sign-up form input[name="repeatpassword"]').setCustomValidity('Passwords mismatch'); | |
event.preventDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php8.1 | |
<?php | |
const CAPTCHA_LENGTH = 6; | |
$captchaSymbolsWhitelist = [ | |
'I', 'U', 'Y', 'D', 'F', 'G', 'J', 'L', 'N', 'Q', 'R', 'S', 'V', 'W', 'Z', | |
'2', '3', '4', '5', '6', '7', '8', '9', | |
]; | |
$whitelistLength = sizeof($captchaSymbolsWhitelist); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php8.1 | |
<?php | |
$string = 'Давайте устроим встречу 20.05.2022 и потом ещё одну 12.06.2022'; | |
const DAYS_OF_WEEK = [ | |
0 => 'вс', | |
1 => 'пн', | |
2 => 'вт', | |
3 => 'ср', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
NMAP_DICTIONARY_PATH=$(locate mac-prefixes) | |
grep $1 $NMAP_DICTIONARY_PATH |
OlderNewer