Skip to content

Instantly share code, notes, and snippets.

View Godwin9911's full-sized avatar
👋
Focusing

Godwin Agedah Godwin9911

👋
Focusing
View GitHub Profile
@Godwin9911
Godwin9911 / 1-outbound-call.php
Created July 21, 2024 17:29 — forked from jmadden/1-outbound-call.php
Twilio PHP Outbound Call and Gather Example
<?php
// Get the PHP helper library from https://twilio.com/docs/libraries/php
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "YOU_ACCOUNT_SID";
$token = "YOUR_AUTH_TOKEN";
$client = new Client($sid, $token);
let table = base.getTable('People');
let csvFile = await input.fileAsync(
'Pick a CSV file to upload',
{allowedFileTypes: ['.csv'], hasHeaderRow: true}
);
if(csvFile) {
let fileRows = csvFile.parsedContents;
output.text('Here are the first 10 records of your file');
@Godwin9911
Godwin9911 / remove env file from git forever
Created May 12, 2024 16:25 — forked from gjerokrsteski/remove env file from git forever
remove env file from git history forever
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
@Godwin9911
Godwin9911 / gist:8587611d3a45716f34b0bf2abeec47fe
Created April 25, 2022 10:02 — forked from Prezens/gist:f99fd28124b5557eb16816229391afee
Apache .htaccess settings for Vue, vue-router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
@Godwin9911
Godwin9911 / API.md
Created December 24, 2019 00:58 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@Godwin9911
Godwin9911 / mongodb_cheat_sheet.md
Created September 26, 2019 20:38 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@Godwin9911
Godwin9911 / ssh.md
Created September 2, 2019 23:09 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh [email protected]

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test