Skip to content

Instantly share code, notes, and snippets.

View williamdes's full-sized avatar
🚀
Catching up on GitHub notifications

William Desportes williamdes

🚀
Catching up on GitHub notifications
View GitHub Profile
@taiki-e
taiki-e / maintenance-status-badges.md
Last active February 24, 2025 07:23
Markdown Maintenance status badges
🌞 Morning 123 commits █▉░░░░░░░░░░░░░░░░░░░ 9.4%
🌆 Daytime 345 commits █████▌░░░░░░░░░░░░░░░ 26.3%
🌃 Evening 548 commits ████████▊░░░░░░░░░░░░ 41.8%
🌙 Night 295 commits ████▋░░░░░░░░░░░░░░░░ 22.5%
@jprieton
jprieton / update-phpmyadmin.sh
Last active August 14, 2021 10:42
Update phpMyAdmin 5.x to latest
#/bin/bash
# Download latest package
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz -O latest.tar.gz
# Create temp folder
mkdir ./phpmyadmin
# Decompress latest package
tar --extract --file=latest.tar.gz --strip-components=1 --directory=./phpmyadmin
@Tehnix
Tehnix / CI.yml
Created March 30, 2020 21:21 — forked from FedericoPonzi/CI.yml
Ready to use Github workflow for cross-compiling a rust binary to many Linux architectures.
# Instruction + template repo: https://github.com/FedericoPonzi/rust-ci
name: CI
on:
pull_request:
push:
branches:
- master
tags:
- 'v*.*.*'
@manualbashing
manualbashing / 1_troubleshooting.md
Last active September 23, 2022 14:22
[racadm Cheatsheet] for administration of Dell iDRAC with #racadm

Network Troubleshooting

Ping from iDRAC:

racadm ping <ip>

View Logs

@izikeros
izikeros / convert_ssh2_key_to_openssh.sh
Last active July 17, 2024 22:38
[convert ssh2 public key to openssh] Convert ssh2 public key to openssh format and add to authorized_keys #ssh #key
# if received key in format:
#—- BEGIN SSH2 PUBLIC KEY —-
#
#Comment: "rsa-key-20160402"
#AAAAB3NzaC1yc2EAAAABJQAAAgEAiL0jjDdFqK/kYThqKt7THrjABTPWvXmB3URI
#
# and you want to add it to authorized keys
# from: https://tutorialinux.com/convert-ssh2-openssh/
ssh-keygen -i -f coworker.pub >> ~/.ssh/authorized_keys
@vladox
vladox / download_sentry_data.py
Last active April 13, 2024 01:00 — forked from bubenkoff/download_sentry_data.py
Download all sentry events for a project. Useful for data processing
"""Download sentry data.
usage:
python download_sentry_data.py <org>/<project> <api_key>
"""
import requests
import csv
import sys
if __name__ == '__main__':
@zajdee
zajdee / debian-initramfs-ipv6-hook-script
Last active August 11, 2024 15:23
Scripts to support IPv6 networking in Debian pre-boot (initramfs) environment
#!/bin/sh
# Script to be placed in /etc/initramfs-tools/hooks/ipv6
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
@artizirk
artizirk / gnupg_scdaemon.md
Last active March 4, 2025 10:54
OpenPGP SSH access with Yubikey and GnuPG

NB: This document describles a 'Old-School' way of using Yubikey with SSH

Modern OpenSSH has native support for FIDO Authentication. Its much simpler and should also be more stable with less moving parts. OpenSSH also now has support for signing arbitary files witch can be used as replacement of gnupg. Git also supports signing commits/tags with ssh keys.

Pros of FIDO

  • Simpler stack / less moving parts
  • Works directly with ssh, ssh-add and ssh-keygen on most computers
  • Simpler
  • Private key can never leave the FIDO device

Cons of FIDO

import { inject } from 'mobx-react/native';
// because of the @inject line we will get observableStore to our props
@inject('observableScreenStore')
export default class IWillUpdateYouComponent extends Component<{}, {}> {
// bla bla bla code
importantMethod = () => {
this.props.observableStore.setProporty('Gotcha!');
}