Skip to content

Instantly share code, notes, and snippets.

View animfahmy's full-sized avatar
😇
I am a happy husband of Pipit

An'im animfahmy

😇
I am a happy husband of Pipit
View GitHub Profile

How to follow this guide

The problem

I have one computer and two different github accounts. One is for work, the other is for my personal stuff. I can't use the same ssh key twice, so I have to use different ssh key for each of my accounts. How do I do that? How do I switch between these ssh keys?

@animfahmy
animfahmy / decrypt_navicat_password.php
Last active March 19, 2022 10:14
Navicat view saved password
<?php
//copy from https://github.com/tianhe1986/FatSmallTools
namespace FatSmallTools;
class NavicatPassword
{
protected $version = 0;
protected $aesKey = 'libcckeylibcckey';
protected $aesIv = 'libcciv libcciv ';
protected $blowString = '3DC5CA39';
@animfahmy
animfahmy / install_oci8_ubuntu20_php7.4.md
Created December 17, 2021 10:10 — forked from eSkiSo/install_oci8_ubuntu20_php7.4.md
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
@animfahmy
animfahmy / embedded-file-viewer.md
Created August 4, 2020 08:46 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@animfahmy
animfahmy / foldersize.php
Created March 15, 2017 04:35 — forked from eusonlito/foldersize.php
PHP function to get the folder size including subfolders
<?php
function folderSize ($dir)
{
$size = 0;
foreach (glob(rtrim($dir, '/').'/*', GLOB_NOSORT) as $each) {
$size += is_file($each) ? filesize($each) : folderSize($each);
}