Skip to content

Instantly share code, notes, and snippets.

View mo9a7i's full-sized avatar
💪
Streaming Code

Mohannad Faihan Otaibi mo9a7i

💪
Streaming Code
View GitHub Profile
@FabrizioCafolla
FabrizioCafolla / Dockerfile-php-alpine-with-grpc
Last active April 4, 2023 15:26
PHP 7.4 alpine docker container - with dependencies and gRPC extension
FROM php:7.4-fpm-alpine
LABEL mantainer="developer@fabriziocafolla.com"
LABEL description="PHP alpine - docker container with dependencies and gRPC extension "
# # #
# Install build dependencies
# # #
ENV build_deps \
autoconf \
@rdundon
rdundon / git-setup.sh
Last active June 9, 2024 19:58 — forked from patik/git-setup.sh
Git and Node with Zscaler proxy
#!/bin/sh
# Git proxy settings
echo "Configuring Git for compatibility with ZScaler..."
git config --global http.proxy http://gateway.zscaler.net:80/
git config --system http.proxy http://gateway.zscaler.net:80/
@grrowl
grrowl / Twitter.gs
Created April 27, 2016 08:26
Google Docs script to automate Twitter posting
// source: https://ctrlq.org/code/19702-twitter-image-upload
function autoTweet() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("schedule"); // This must match the sheet name!
var rows = sheet.getRange("A:D").getValues();
var titleList = [], newValues = [],
response, doc, title;
var twitterCallback = function(rowIndex, err, result) {
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git