Skip to content

Instantly share code, notes, and snippets.

@seteBR
seteBR / 00-genieacs.md
Created October 30, 2021 23:20 — forked from crawc/00-genieacs.md
My notes on setting up and configuring GenieACS.

Config files to get GenieACS up and running on Debian Testing, complete with GUI, Nginx SSL proxy, and systemd services.

Following the documentation here for dependencies, here for initial setup, then the wiki here for Nginx and SSL, should get you most of the way there. After that, I had a lot of googling to do, the results of which you can find below.

Filename Description
01-install.sh The installation instructions and commands.
02-config.json The genieacs services configuration.
03-openssl.cnf The openssl certificate configuration.
04-.env The environmental variables for genieacs-gui.
@seteBR
seteBR / addRowToSpreadsheet.php
Created October 12, 2021 17:50 — forked from thehelvetian/addRowToSpreadsheet.php
Add a new row to a spreadsheet using Google Sheets API v4
<?php
/**
* This is a proof of concept. In real life you would split up the various parts and allow for different cell value
* types. Also read Leviscowles1986's comment below:
* https://gist.github.com/thehelvetian/2e94d60b796735b167dfb1c7560049ae#gistcomment-1822986
*
* @param array $ary_values An array containing the cell values
* @return bool Request status
*/
function addRowToSpreadsheet($ary_values = array()) {
@seteBR
seteBR / install-docker.sh
Created January 14, 2021 01:22 — forked from nathzi1505/install-docker.sh
Docker and Nvidia Docker installation in Ubuntu 20.04 LTS
# WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned.
# Docker
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
require 'mechanize'
require 'pry'
L = 'https://www.facebook.com/v2.6/dialog/oauth?redirect_uri=fb464891386855067%3A%2F%2Fau' \
'thorize%2F&scope=user_birthday,user_photos,user_education_history,email,user_relatio' \
'nship_details,user_friends,user_work_history,user_likes&response_type=token%2Csigned' \
'_request&client_id=464891386855067'.freeze
USER_AGENT = 'Mozilla/5.0 (Linux; U; en-gb; KFTHWI Build/JDQ39) AppleWebKit/535.19 (KHTML' \
', like Gecko) Silk/3.16 Safari/535.19'.freeze
@seteBR
seteBR / mnist_gpu_test_script.py
Created August 27, 2018 16:00 — forked from datitran/mnist_gpu_test_script.py
Test script for CUDA/cuDNN
import numpy as np
np.random.seed(1337)
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.optimizers import RMSprop
NB_CLASSES = 10
@seteBR
seteBR / Dell-Inspiron-7567-Arch-Install - UEFI + Encrypt
Last active August 7, 2022 18:59
Instructions to install Arch Linux on a Dell Inspiron 7567 UEFI system with luks encryption for root
# Dell-Inspiron-7567-Arch-Install---UEFI
#Install Arch Linux with encrypted FS and UEFI
# Download the ISO
$ wget -c http://br.mirror.archlinux-br.org/iso/2018.08.01/archlinux-2018.08.01-x86_64.iso && wget -c http://br.mirror.archlinux-br.org/iso/2018.08.01/sha1sums.txt && head -1 sha1sums.txt | sha1sum -c -
# Build a bootable USB
- # dd bs=4M if=archlinux-2018.08.01-x86_64.iso of=/dev/sdX status=progress oflag=sync
@seteBR
seteBR / rclone_refresh.py
Created June 9, 2017 17:08 — forked from scriptzteam/rclone_refresh.py
Script to refresh ACD token with token from drivesink
#!/bin/env python
import json
import logging
import sys
import os
from six.moves import configparser
from datetime import datetime, timedelta
'''
Usage: