Skip to content

Instantly share code, notes, and snippets.

View rngadam's full-sized avatar
💭
coderbunker.ca

Ricky Ng-Adam rngadam

💭
coderbunker.ca
View GitHub Profile
@rngadam
rngadam / .tmux.conf
Created February 9, 2020 18:34
tmux configuration
set -g history-limit 50000
setw -g mode-keys vi
9.799084] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit
[ 10.121956] e2fsck: e2fsck 1.44.4 (18-Aug-2018)
[ 10.121956]
[ 10.128336] e2fsck: Pass 1: Checking inodes, blocks, and sizes
[ 10.128336]
[ 10.135974] e2fsck: Pass 2: Checking directory structure
[ 10.135974]
[ 10.142907] e2
@rngadam
rngadam / main.yml
Created March 19, 2021 14:04
Example of importing public keys and adding to a generic login user on a machine from ansible
---
# tasks file for ansible-dravedev-developers-ssh
- name: Set up multiple authorized keys
become: yes
become_user: "{{generic_user}}"
tags:
- public_keys
authorized_key:
user: "{{generic_user}}"
state: present
@rngadam
rngadam / gist:3c2c7fcd81cc05abb7d52797d8e5e4cd
Created April 21, 2021 09:00
Fils RSS Québécois et francophone
Sources pour des fils RSS québécois, francophone et d'intérêt public:
* http://www.assnat.qc.ca/fr/fils-rss
* https://www.lesaffaires.com/page/rss
* https://www.quebec.ca/nouvelles
* http://culturenumerique.mcc.gouv.qc.ca/fils-rss/
D'intérêt régionaux:
@rngadam
rngadam / gist:2d2eb24c84a40bb17cce2d24f660cabb
Created November 3, 2021 09:35
attempt at creating graph
# Taken from:
# https://hbfs.wordpress.com/2014/09/30/a-quick-primer-on-graphviz/
digraph g {
layout=fdp # Specify used layout engine
bgcolor="#ffffff00"
overlap=scale
start=2
@rngadam
rngadam / gist:32668d9221e8c173ffce552060e862a3
Created June 13, 2023 12:12
Output from select name, setting, short_desc from pg_settings order by name
|name |setting |short_desc |
|-------------------------------------|--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
|DateStyle |ISO, MDY |Sets the display format for date and time values. |
|IntervalStyle |postgres |Sets the display format for interval values. |
|TimeZone |America/Toronto
@rngadam ➜ /workspaces/github-workflows (main) $ pip install yamllint
Collecting yamllint
Downloading yamllint-1.33.0-py3-none-any.whl.metadata (4.2 kB)
Collecting pathspec>=0.5.3 (from yamllint)
Downloading pathspec-0.11.2-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: pyyaml in /home/codespace/.local/lib/python3.10/site-packages (from yamllint) (6.0.1)
Downloading yamllint-1.33.0-py3-none-any.whl (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.4/65.4 kB 2.2 MB/s eta 0:00:00
Downloading pathspec-0.11.2-py3-none-any.whl (29 kB)
Installing collected packages: pathspec, yamllint
[
{
"boxes": [
{
"box": {
"topX": 323,
"topY": 267,
"bottomX": 439,
"bottomY": 371
},