Skip to content

Instantly share code, notes, and snippets.

View bkmgit's full-sized avatar

Benson Muite bkmgit

View GitHub Profile
cd /etc/pki/rpm-gpg
curl -O http://springdale.princeton.edu/data/springdale/7/x86_64/os/RPM-GPG-KEY-springdale
cd /etc/yum.repos.d
cat << EOF > Springdale-SCL.repo
[Springdale-SCL]
name=Springdale - SCL
baseurl=http://springdale.princeton.edu/data/springdale/SCL/$releasever/$basearch
gpgcheck=1
enabled=1
@sukhbinder
sukhbinder / Snowfall
Created January 10, 2022 12:18
Snowfall Animation using matplotlib
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.animation import FuncAnimation
"""
Snowfall with python matplotlib
Read more here https://sukhbinder.wordpress.com/?p=5193
by Sukhbinder
@farr
farr / latexbuild.yml
Created October 2, 2020 18:32
GitHub Action for auto-building your LaTeX paper
name: latex-build
on: [push]
jobs:
build-latex:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install TeXlive
run: sudo apt-get install texlive texlive-publishers texlive-science latexmk
<!-- Modified from https://gist.github.com/NicholasKimuli/2b167ca1c6ce03cb860e3f89d17db1eb
Bonaire, Saba and Sint Eustatius may need a future flag update -->
<select class="input-block-level" id="countryCode" name="countryCode">
<option data-countryCode="AF" value="93">&#x1F1E6&#x1F1EB Afghanistan (+93)</option>
<option data-countryCode="AL" value="355">&#x1F1E6&#x1F1FD Albania (+355)</option>
<option data-countryCode="DZ" value="213">&#x1F1E9&#x1F1FF Algeria (+213)</option>
<option data-countryCode="AD" value="376">&#x1F1E6&#x1F1E9 Andorra (+376)</option>
<option data-countryCode="AO" value="244">&#x1F1E6&#x1F1F4 Angola (+244)</option>
<option data-countryCode="AI" value="1264">&#x1F1E6&#x1F1EE Anguilla (+1264)</option>
<option data-countryCode="AG" value="1268">&#x1F1E6&#x1F1EC Antigua &amp; Barbuda (+1268)</option>
@simbo1905
simbo1905 / GnuPG-2.2.md
Last active February 14, 2024 15:47 — forked from vt0r/GnuPG-2.2.md
Build/install instructions for GnuPG 2.2.x on Centos 7 and similar distros (formerly for 2.1.x)

GnuPG 2.2.x Build Instructions

Below are my build instructions for GnuPG 2.2.9, released on July 12th, 2018. These instructions are built for a headless Centos 7 LTS server (specificaly the openshift/base-centos7 docker image).

You use the below install script to install GnuPG 2.2.x by running the following commands:

# if you are root in a docker image:
curl -OL "https://gist.githubusercontent.com/simbo1905/ba3e8af9a45435db6093aea35c6150e8/raw/83561e214e36f6556fd6b1ec0a384cf28cb2debf/install-gnupg22.sh" && bash ./install-gnupg22.sh
# else if you need to sudo to do the installs:
@vdchuyen
vdchuyen / bbb-centos-install.sh
Last active December 15, 2021 16:21 — forked from gavargas22/gist:e86e77e84ea80784105a
BigBlueButton on CentOS
#Steps taken to install Big Blue Button in CentOS 6
# we'll work mostly from the /tmp/ directory:
cd /tmp
#Install freeswitch
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-0.noarch.rpm
yum install freeswitch-config-vanilla
yum install sox freeswitch-sounds*
@9prady9
9prady9 / cpuinfo.cpp
Created September 15, 2015 18:32
Sample code to extract cpu information using CPUID instruction
#include <algorithm>
#include <iostream>
#include <string>
#ifdef _WIN32
#include <limits.h>
#include <intrin.h>
typedef unsigned __int32 uint32_t;
#else
#include <stdint.h>
@smithdanielle
smithdanielle / check.packages.r
Created April 1, 2014 13:23
Check if multiple R packages are installed. Install them if they are not,then load them into the R session.
# check.packages function: install and load multiple R packages.
# Check to see if packages are installed. Install them if they are not, then load them into the R session.
check.packages <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
# Usage example