Skip to content

Instantly share code, notes, and snippets.

View akbarali1's full-sized avatar
🎯
Focusing

Akbarali akbarali1

🎯
Focusing
View GitHub Profile
@yetimdasturchi
yetimdasturchi / github_webhook.php
Created February 13, 2023 07:36
Github webhook to telegram bot.
<?php
$token = "TOKEN"; //Telegram bot token
$chats = ['12345', '12345']; //Array of telegram chats to send a message
function send_request( $content = [] ){
$url = "https://api.telegram.org/bot{$GLOBALS['token']}/sendMessage";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
@afiqiqmal
afiqiqmal / ALaravelPipelineReadme.md
Last active December 27, 2023 10:24
Laravel Query Filter using Pipeline

Donate

Laravel Query Filter using Pipeline

Basically, with a pipeline we can pass an object through a stack of tasks and get the result via a callback.

Refer Here -> https://laravel.com/api/7.x/Illuminate/Pipeline/Pipeline.html

The method handle used to execute the task receives two parameters, the first is the object that we passed to our pipeline, the second is a closure, where the object will be sent to run the next task.

@rg3915
rg3915 / remove-chrome-remote-desktop.sh
Created August 30, 2019 05:17
uninstall chrome remote desktop
sudo apt remove -y chrome-remote-desktop && sudo apt purge -y chrome-remote-desktop
@evaera
evaera / Clean Code.md
Last active April 19, 2025 06:19
Best Practices for Clean Code
  1. Use descriptive and obvious names.
    • Don't use abbreviations, use full English words. player is better than plr.
    • Name things as directly as possible. wasCalled is better than hasBeenCalled. notify is better than doNotification.
    • Name booleans as if they are yes or no questions. isFirstRun is better than firstRun.
    • Name functions using verb forms: increment is better than plusOne. unzip is better than filesFromZip.
    • Name event handlers to express when they run. onClick is better than click.
    • Put statements and expressions in positive form.
      • isFlying instead of isNotFlying. late intead of notOnTime.
      • Lead with positive conditionals. Avoid if not something then ... else ... end.
  • If we only care about the inverse of a variable, turn it into a positive name. missingValue instead of not hasValue.
@Pulimet
Pulimet / AdbCommands
Last active April 28, 2025 23:31
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@aziflaj
aziflaj / calculator.cpp
Created February 23, 2016 20:41
A simple calculator written in C++
/*
Name: CALCULATOR v1.0
Author: Aldo Ziflaj
Date: 01-01-13 12:01
Description: A simple calculator that can add, subtract multiply, divide,
raise to n-th integer power and calculate the factorial
*/
#include <iostream>
#include <cstdio>
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@zachbrowne
zachbrowne / FindLinks.php
Created October 31, 2011 06:35
Find Out All Links In any Website using PHP