Skip to content

Instantly share code, notes, and snippets.

View basitcodeenv's full-sized avatar
🎯
Focusing

Abdul Basit Rana basitcodeenv

🎯
Focusing
View GitHub Profile
@azhar25git
azhar25git / README.md
Last active February 13, 2024 12:21 — forked from oodavid/README.md
Deploy your site with git (UPDATED: August 2020)

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@imranrbx
imranrbx / CreateResourceController.php
Created July 8, 2020 06:24
With the help of this command you can create a resource controller in CodeIgniter 4 just create a folder named Commands in app folder then create a php file with name CreateResourceController.php and paste the following code.
<?php
namespace App\Commands;
use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
use Config\Services;
/**
With the help of this command you can create a resource controller in CodeIgniter 4.
1) just create a folder named Commands in app folder
2) then create a php file with name CreateResourceController.php
@smashah
smashah / remove_silence.ts
Last active February 12, 2024 14:14
A simple way to remove silences below a certain threshold in an audio file [NODEJS/TS]
//add this to your package.json
// "audio-buffer-utils": "^5.1.2",
// "audio-decode": "^1.4.0",
// "audiobuffer-to-wav": "^1.0.0",
// "node-lame": "^1.2.0",
// "ogg.js": "^0.1.0",
// "opus.js": "^0.1.1",
const fs = require('fs');
@nepsilon
nepsilon / git-change-commit-messages.md
Last active April 24, 2024 06:30
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.