Skip to content

Instantly share code, notes, and snippets.

Avatar
🏞️
Learning things.

Hamzah Jamad hamzahjamad

🏞️
Learning things.
View GitHub Profile
View main.py
import unittest
import time
from selenium import webdriver
class PythonOrgSearch(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(
"D:\laragon\www\popcat-clicker\chromedriver.exe")
View laravel-supervisor.conf
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
View docker_ubuntu_installer.sh
#!/bin/bash
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get -y install docker-ce
sudo systemctl status docker
View .env
# fb-bot-tutorial/.env
# add these two new field
HUB_VERIFY_TOKEN=some_testing_token
FB_TOKEN=<token>
View .env
# fb-bot-tutorial/.env
# add these two new field
HUB_VERIFY_TOKEN=some_testing_token
FB_TOKEN=
View WebhookController.php
<?php
// fb-bot-tutorial/app/Http/Controllers/WebhookController.php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WebhookController extends Controller
{
// this will verify the Facebook Messenger with our Laravel project
View WebhookController.php
<?php
// fb-bot-tutorial/app/Http/Controllers/WebhookController.php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WebhookController extends Controller
{
// this will verify the Facebook Messenger with our Laravel project
View VerifyCsrfToken.php
<?php
// fb-bot-tutorial\app\Http\Middleware\VerifyCsrfToken.php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
View web.php
<?php
//fb-bot-tutorial/routes/web.php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
View home.html
<!-- custom-component-lazyload\src\pages\home\home.html -->
<ion-header>
<ion-navbar>
<button ion-button icon-only start menuToggle><ion-icon name="menu"></ion-icon></button>
<ion-title>Home</ion-title>
</ion-navbar>
</ion-header>