Skip to content

Instantly share code, notes, and snippets.

View arag0re's full-sized avatar
:shipit:
i may be slow to respond

arag0re.eth arag0re

:shipit:
i may be slow to respond
View GitHub Profile
@arag0re
arag0re / razer_off.sh
Last active August 21, 2021 15:26
toggle-razer-on-off
echo "Razer Synapse Off"
sleep 3
sudo sed -i -e 's/<false/<true/' /Library/LaunchAgents/com.razer.rzupdater.plist
echo "Now rebooting!"
sleep 3
sudo reboot
@arag0re
arag0re / create_iso_catalina.sh
Last active May 20, 2023 22:39
create-iso-from-dmg
#!/usr/bin/env bash
# Bail at first Catalina ISO creation error
set -e
hdiutil create -o ~/Downloads/Catalina.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach ~/Downloads/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo ~/Downloads/"Install macOS Catalina".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Catalina"
hdiutil convert ~/Downloads/Catalina.cdr.dmg -format UDTO -o ~/Downloads/Catalina.iso
mv ~/Downloads/Catalina.iso.cdr /Volumes/"USB_STICK_NAME"/Catalina.iso
rm ~/Downloads/Catalina.cdr.dmg
@arag0re
arag0re / Microsoft.PowerShell_profile.ps1
Created January 2, 2022 19:45
Microsoft.PowerShell_profile.ps1
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost') {
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
@aslafy-z
aslafy-z / docker-compose-systemd-unit.md
Last active February 23, 2024 15:59 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service

[Unit]
Description=%i service with docker compose
# Requires=docker.service
# After=docker.service
@darconeous
darconeous / os-x-syslog-server.md
Last active April 14, 2025 15:28
Using OS X as a Syslog Server

Using OS X as a Syslog Server

This document describes how to set up an OS X to be a syslog server that logs messages from the local network. It was largely meant for my own purposes so that I don't forget what I did, but feel free to use it for your own purposes.

A problem with just "turning this on" is that you will not see the correct hostname in the syslog entries. What we will do is use

@taoyuan
taoyuan / generate_self_signed_certification.md
Last active October 11, 2025 14:12
Generation of a Self Signed Certificate

Generation of a Self Signed Certificate

Generation of a self-signed SSL certificate involves a simple 3-step procedure:

STEP 1: Create the server private key

openssl genrsa -out cert.key 2048

STEP 2: Create the certificate signing request (CSR)

openssl req -new -key cert.key -out cert.csr
@dayt0n
dayt0n / bfrestrict.py
Last active October 16, 2025 00:34
quickly bruteforce iOS restrictions passcode
# bfrestrict.py - bruteforce iOS restrictions passcode
#
# if you don't have an unencrypted backup folder ready, just plug in the device and run this program
#
# Note: make sure you have libimobiledevice installed (we need idevicebackup2) if you plan to plug-and-play
#
# made by Dayton Hasty (c)2018
import os
import sys
import hashlib
@OothecaPickle
OothecaPickle / gist:408e292e323b5a72019d502709d6f4cd
Last active October 19, 2025 07:48
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
10: https://jike.info/topic/2631/win-10-rtm-professional-retail-oem-mak/1889?lang=en-US&page=95
9GHCK-43HBY-V9KPP-F3MHQ-33JR9
https://jike.info/post/29684
https://cony.fun/blog/38.html
https://jike.info/topic/5078/windows-7-sp1-ultimate-retail/44?lang=en-US&page=3
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
=================================================================================
. Run "Command Prompt" as Administrator
. slmgr.vbs -ipk Product Key
@chunter
chunter / pageant-autoload-keys-at-startup.txt
Created June 20, 2017 10:51
Make Pageant autoload keys at startup
To make Pageant automatically run and load keys at startup:
- Find the location of pageant.exe
- Windows key + R to open the 'run' dialog box
- Type: 'shell:startup' in the dialog box
- Create a shortcut to the pageant.exe and put into this startup folder.
@almas
almas / ubuntu-on-mbp-a1707.md
Last active November 30, 2025 20:35 — forked from rob-hills/ubuntu-22.04-mbp-a1707.md
Ubuntu LTS on MacBook Pro 2017 (A1707, MBP 14,3)(T1 chip)

Summary

Notes to install Ubuntu 22.04.4LTS (Upgraded to 24.04LTS) up and running on my 2017 MacBook Pro 15 inch (MacBookPro14,3).

Now everything except the TouchID (Fingerprint), Suspend and Hibernation seems to work for me.

About Ubuntu 24.04LTS: I tried to install Ubuntu 24.04 and didn't have success. There was a crash issue during installation. https://bugs.launchpad.net/subiquity/+bug/2065310 But I installed 22.04 and upgraded it to the 24.04LTS later and it working same as 22.04.4.

Useful References (not mentioned in the text)