Skip to content

Instantly share code, notes, and snippets.

View orgcontrib's full-sized avatar
:octocat:
contributing

Org Contrib orgcontrib

:octocat:
contributing
View GitHub Profile
@orgcontrib
orgcontrib / smartctl-a.LaCie1TB.txt
Created February 15, 2021 05:56
sudo smartctl -a -d sat /dev/sda
smartctl 7.2 2021-01-17 r5171 [x86_64-linux-5.10.15-200.fc33.x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Samsung SpinPoint M8 (AF)
Device Model: ST1000LM024 HN-M101MBB
Serial Number: S2ZUJ9BD705411
LU WWN Device Id: 5 0004cf 20aaf0f70
Firmware Version: 2AR20002
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
@orgcontrib
orgcontrib / Menu.ps1
Created November 21, 2020 02:15 — forked from trevren11/Menu.ps1
Macros for powershell development
###############################################################################
# Simple Textbased Powershell Menu
# Author : Michael Albert
# E-Mail : info@michlstechblog.info
# License: none, feel free to modify
# usage:
# Source the menu.ps1 file in your script:
# . .\menu.ps1
# fShowMenu requieres 2 Parameters:
# Parameter 1: [string]MenuTitle
@orgcontrib
orgcontrib / cpan.md
Last active July 16, 2020 17:35 — forked from darkn3rd/cpan.md
Perl CPAN vs CPANM

What is the difference between cpan and cpanm?

This was explanation by Grant McLean

CPAN CLI

cpan the CPAN shell has been shipped with Perl since about 1997. When you run it the first time it asks a bunch of questions and saves the answers in a config file. Then you can install a module by running:

cpan -i Module::Name

The shell provides other commands for searching CPAN and looking inside distribution files.

@orgcontrib
orgcontrib / vtplayer.rb
Created December 9, 2019 02:56 — forked from redperadot/vtplayer.rb
A simple script to play vt100 animations.
#!/usr/bin/env ruby
#
# vtplayer.rb - A simple script to play vt100 animations.
# Made with ❤︎ by redperadot@darkgem.net - v0.1
#
# Some places to find vt100 animations:
# http://artscene.textfiles.com/vt100/
# http://www.scovetta.com/archives/textfiles/art
require 'open-uri'
@orgcontrib
orgcontrib / ms-graph-api.txt
Last active August 6, 2020 14:45
Microsoft Graph API
MS Graph Dev https://developer.microsoft.com/en-us/graph
MS Graph Docs https://docs.microsoft.com/en-us/graph/overview
Ms Graph Expl https://developer.microsoft.com/en-us/graph/graph-explorer
@orgcontrib
orgcontrib / sntp.kod-bug.txt
Last active June 11, 2019 17:52
sntp.kod.bug.fix
# macOS quick & dirty fix for https://bugs.ntp.org/show_bug.cgi?id=3396
sudo ln -s /tmp/ntp-kod /var/db/ntp-kod
# since /tmp gets cleared,
touch /tmp/ntp-kod
# this file will disappear!
# a workaround (suggestion) is to either use your dotfile-fu skills or...
# https://www.howtogeek.com/206178/mac-os-x-change-which-apps-start-automatically-at-login
# test result
@orgcontrib
orgcontrib / iso.boot.md
Last active May 15, 2019 04:32 — forked from dacbarbos/iso.boot.md
ISO images and Boot

ISO images and Boot

Command: file livecd.iso
Output: livecd.iso: ISO 9660 CD-ROM filesystem data 'disks' (bootable)

How to pretest it?

Install qemu and run qemu-system-i386 -cdrom livecd.iso

@orgcontrib
orgcontrib / pgp-gpg-notes.md
Last active December 29, 2025 00:58 — forked from dacbarbos/pgp-gpg-help.md
PGP & GPG notes
@orgcontrib
orgcontrib / kextpocalypse-2.sh
Created December 22, 2018 10:08
Kextpocalypse-2 script
#!/bin/bash
# Script to scan a system for kexts and gather the information needed for Apple whitelisting
# open https://www.richard-purves.com/2017/11/12/kextpocalyse-2-the-remediation
plist="com.apple.syspolicy.kernel-extension-policy.plist"
output="$HOME/Desktop"
override="false"
# Stop IFS linesplitting on spaces