Skip to content

Instantly share code, notes, and snippets.

View JeffLabonte's full-sized avatar
:octocat:

Jeff Labonte JeffLabonte

:octocat:
View GitHub Profile
ca-certificates update
2014-12-11 - Jan Alexander Steffens
The way local CA certificates are handled has changed. If you have added any locally trusted certificates:
Move /usr/local/share/ca-certificates/*.crt to /etc/ca-certificates/trust-source/anchors/
Do the same with all manually-added /etc/ssl/certs/*.pem files and rename them to *.crt
Instead of update-ca-certificates, run trust extract-compat
Also see man 8 update-ca-trust and trust --help.

Need to be careful with those commands. It made my install crash

  1. Determine the name of the swap logical volume using the "lvs" command:
$ lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
root_lv volgroup0 -wi-ao 7.00G
swap_lv1 volgroup0 -wi-ao 30.00G
tmp_lv volgroup0 -wi-ao 3.00G
#!/bin/bash
# This is a script that validate the length of arguments
if [ $# -lt 3 ]; then
cat <<- EOM
this command requies three arguments:
username, userid, and favorite number.
EOM
else
# Program goes here
#!/bin/bash
# This is a basic bash script
flashred="\033[5;31;40m"
red="\033[31;40m"
close_tag="\033[0m"
echo -e "${flashred}ERROR: ${close_tag}${red}Something went wrong! ${close_tag}"
/* this code uses only C features */
static PyObject *
foo(PyObject *self, PyObject *args)
{
PyObject *cb;
// Receive a single argument which can be any Python object
// note: the object's reference count is NOT increased (but it's pinned by
// the argument tuple).
if (!PyArg_ParseTuple(args, "O", &cb)) {
gcloud compute addresses create kubernetes-the-hard-way \
--region $(gcloud config get-value compute/region)
gcloud compute networks create kubernetes-the-hard-way --subnet-mode custom
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs