Skip to content

Instantly share code, notes, and snippets.

View darrell24015's full-sized avatar
🚧
GitHub Codespaces Beta!

Darrell darrell24015

🚧
GitHub Codespaces Beta!
View GitHub Profile
@darrell24015
darrell24015 / windows_hardening.cmd
Created May 10, 2020 11:21 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
::
::#######################################################################
::
:: Change file associations to protect against common ransomware
@darrell24015
darrell24015 / crapamagotchi.py
Created December 2, 2019 15:24 — forked from ntoll/crapamagotchi.py
A really crap Tamagotchi for micro:bit
# Make the display sparkle. Click button A to show an image for
# a moment before the sparkles start again. Click button B to
# scroll a friendly message before the sparkles return.
# By Nicholas H.Tollervey and released to the Public Domain.
# How would you improve this code?
from microbit import *
import random
# A full list of images can be found here: http://bit.ly/1WY221q
images = [Image.HAPPY, Image.SAD, Image.GHOST, Image.SKULL,
@darrell24015
darrell24015 / scrollingHelloWorld.ino
Last active October 16, 2019 06:42
Arduboy example of scrolling text on the screen
/*
* This code example shows how to scroll a line of text
* across the screen on an Arduboy.
* The OLED screen dimensions are 128 x 60 pixels (width x height)
*/
#include <Arduboy2.h>
Arduboy2 arduboy;
// Create the variables needed
@darrell24015
darrell24015 / python.gitignore
Created June 30, 2019 14:56
Sample Python.gitignore file
Reference:
https://github.com/github/gitignore

Useful Git commands

This is just stuff that I have put down that I find I use a lot of the time for my own reference.

Latest changes from repo to your machine

$ git pull
@darrell24015
darrell24015 / 00-lenovo-x1-5th-gen-thinkfan-setup.md
Created October 31, 2018 16:05 — forked from abn/00-lenovo-x1-5th-gen-thinkfan-setup.md
Fedora thinkfan configuration for Lenovo X1 Carbon (5th Gen)

Thinkfan Configuration Notes

This are notes for configuration thinkfan for Fedora. This configuration procedure was followed on a Lenovo Thinkpad X1 Carbon (5th Gen) running Fedora 25.

Non standard (default) configuration was required for this machine as the default sensors are not available. Eg: /proc/acpi/ibm/thermal does not exist for this model.

An annoted configuration file has been included below. However, there is no guarentee that this will work as-is on every machine.

Installation

dnf -y install thinkfan
@darrell24015
darrell24015 / guizero_stopmotion.py
Created June 17, 2018 15:38 — forked from martinohanlon/guizero_stopmotion.py
a guizero app which uses the picamera to make stop motion gifs
# This is a simple gui for creating stop motion animations using the Pi camera
# martin@ohanlonweb.com
# stuffaboutcode.com
# Instructions:
# - Connect a camera module
# - Enable the camera (Menu > Preferences > Raspberry Pi Configuration, Interfaces, Camera)
# - Install the relevant modules, open a terminal (Menu > Accessories > Terminal) and run:
# - sudo pip3 install guizero
# - sudo pip3 install imageio