Skip to content

Instantly share code, notes, and snippets.

View skngetich's full-sized avatar
🙌

Ng'etich S. skngetich

🙌
View GitHub Profile
sudo killall apt apt-get
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
sudo apt update
@skngetich
skngetich / BalsamiqForever.py
Created June 8, 2022 12:12 — forked from HoussemNasri/BalsamiqForever.py
Extend your trial period for Balsamiq Wireframes on Windows and macOS Forever!
import json
import os
import time
import webbrowser
import sys
import re
def handleWindows(extra_seconds):
print("OS : Windows")
@skngetich
skngetich / Check and install R package
Created March 19, 2022 09:22
This code snippet code install packages if it does not exist
Clear all variables in work space and install packages
```{r message = FALSE,warning = FALSE}
# Clears environment
rm(list=ls())
# Add packages needed in the project
requiredPackages = c('quantmod','TTR','tseries')
for(p in requiredPackages){
#install PHP 7
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
sudo apt-get install php7.2 php7.2-fpm php7.2-mbstring php7.2-mysql php7.2-curl -y
sudo service php7.2-fpm restart
#Configure Nginx with php-fpm
sudo nano /etc/nginx/sites-available/default
@skngetich
skngetich / git-deployment.md
Last active April 5, 2023 05:26 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.