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 / 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_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 / 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 / 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:

@arag0re
arag0re / restart-ssh.sh
Created April 19, 2022 15:52
Restart SSH on Mac Terminal (High Sierra Method and Latest Method)
# high sierra
sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd
# latest
sudo vim /etc/services # (update the port config for ssh and save)
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
@arag0re
arag0re / Dockerfile
Last active June 21, 2022 14:22
Ubuntu 22.04 Docker Freeradius
FROM ubuntu:22.04
LABEL Maintainer=arag0re.eth
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get install -y ssh zsh curl wget git libssl-dev ca-certificates sudo build-essential systemd dbus dbus-user-session python3 openssh-server openssh-client
RUN apt-get install -y python-is-python3 neofetch libnet-ssleay-perl libcrypt-ssleay-perl freeradius freeradius-utils eapoltest
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
RUN sed 's,plugins=(git)[^;]*,plugins=(git zsh-autosuggestions),' -i /root/.zshrc
RUN source /root/.zshrc | bash