Skip to content

Instantly share code, notes, and snippets.

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

arag0re.eth arag0re

🍫
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 / markdown-text-101.md
Created October 8, 2021 02:00 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@arag0re
arag0re / pageant-autoload-keys-at-startup.txt
Created October 13, 2021 02:37 — forked from chunter/pageant-autoload-keys-at-startup.txt
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.
@arag0re
arag0re / create_manjaro_usb
Last active December 20, 2021 10:03
create manjaro usb with diskutil and dd on mac
diskutil eraseDisk "Free Space" disk /dev/disk2
sudo dd if=~/Downloads/manjaro-kde-21.1.3-minimal-210916-linux513.iso of=/dev/disk2 bs=4096
@arag0re
arag0re / create_win_usb
Created December 20, 2021 10:01
create windows bootable usb on macOS
diskutil eraseDisk MS-DOS "WIN10" GPT /dev/disk2
hdiutil mount ~/Desktop/Win10_2004_EnglishInternational_x64.iso
rsync -vha --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-GB_DV9/* /Volumes/WIN10
install homebrew if not already installed by executing: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wimlib
mkdir /Volumes/WIN10/sources
wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-GB_DV9/sources/install.wim /Volumes/WIN10/sources/install.swm 3800
@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
@arag0re
arag0re / install.ps1
Last active March 10, 2022 22:48
Standart Install with Chocolatey
## You need to start Powershell as Admin for this!!!
### WARNING: First you have to set the execution policy for powershell scripts on this system to "Set-ExecutionPolicy unrestricted"
### after executing this script change it back to "Set-ExecutionPolicy allSigned" (may have to restart powershell for this)
$Packages = 'googlechrome',
"firefox",
"notepadplusplus",
"7zip",
"openjdk8",
"openjdk11",
"office-tool",
@arag0re
arag0re / Node_portable.md
Last active April 7, 2022 13:22
node and npm portable
  1. Get node binary (node.exe) from https://nodejs.org/download/release/ then select your preferred version and download node.exe on win or the tar.gz archive for your unix platform (darwin--.tar.gz or linux--.tar.gz)
  2. Create the folder where node will reside and move node.exe to it or on unix copy the extracted tar file to it
  3. Download the last zip version of npm from http://nodejs.org/dist/npm
  4. Unpack the zip inside the node folder
  5. Download the last tgz version of npm from http://nodejs.org/dist/npm
  6. Open the tgz file and unpack only the file bin/npm (without extension) directly on the node folder.
  7. Add the the node folder and the packages/bin folder to PATH
  8. On a command prompt execute npm install -g npm to update npm to the latest version

Now you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.

@arag0re
arag0re / macOS-Dock-AutoHideAndRevealSpeed.md
Last active April 18, 2022 02:08
macOS Dock AutoHideAndRevealSpeed

On macOS Mojave and above

defaults write com.apple.Dock autohide-delay -float 0.0001; killall Dock

on a version prior to macOS Mojave

defaults write com.apple.Dock autohide-delay -float 0; killall Dock

To undo this behavior: