Skip to content

Instantly share code, notes, and snippets.

View victorokech's full-sized avatar

Victor Okech victorokech

View GitHub Profile
@victorokech
victorokech / History\-2df65fce\Kvms.json
Last active July 12, 2023 12:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
{
"workbench.iconTheme": "material-icon-theme",
"sync.autoDownload": true,
"sync.autoUpload": true,
"sync.forceDownload": true,
"sync.forceUpload": true,
"sync.quietSync": true,
"files.autoSave": "afterDelay",
"debug.console.fontSize": 12,
"editor.formatOnPaste": true,
@victorokech
victorokech / node_nginx_ssl.md
Created July 27, 2022 10:54 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@victorokech
victorokech / gist:63fee5804d0aa705497ac57636b61ebb
Created December 28, 2020 09:55 — forked from mstfldmr/gist:fc4fa436f2e553b10865
Calling Fragment method from Activity / Activity method from Fragment
/*
* From fragment to activty:
*/
((YourActivityClassName)getActivity()).yourPublicMethod();
/*
* From activity to fragment:
*/
FragmentManager fm = getSupportFragmentManager();
//if you added fragment via layout xml
@victorokech
victorokech / Activate Office 2019 for macOS VoL.md
Created November 24, 2020 17:12 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref