Skip to content

Instantly share code, notes, and snippets.

View Msameim181's full-sized avatar
🫀
Engineering dreams through imagination and building to achieve the extraordinary

Mohammad Mahdi Samei Msameim181

🫀
Engineering dreams through imagination and building to achieve the extraordinary
View GitHub Profile
@ErFUN-KH
ErFUN-KH / swap.sh
Last active March 19, 2023 18:50
Create 4GB swap memory
#!/bin/bash
touch /var/swap.img && \
chmod 600 /var/swap.img && \
dd if=/dev/zero of=/var/swap.img bs=1024k count=4000 && \
mkswap /var/swap.img && \
swapon /var/swap.img && \
echo "/var/swap.img none swap sw 0 0" >> /etc/fstab && \
ulimit -n 51200
@tonyxu-io
tonyxu-io / Tony Xu Terminal Profile.terminal
Created July 10, 2020 21:29
Tony Xu's profile for Terminal.app
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAmMC43NDExNzY0ODYgMC41NzY0NzA2MTM1
IDAuOTc2NDcwNTg5NgAQAYAC0hQVFhdaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9y
@64lines
64lines / plotting.py
Created November 6, 2017 17:22
[PYTHON] Plotting K-Neighbors accuracy
import matplotlib.pyplot as plt
# Setup arrays to store train and test accuracies
neighbors = np.arange(1, 9)
train_accuracy = np.empty(len(neighbors))
test_accuracy = np.empty(len(neighbors))
# Loop over different values of k
for i, k in enumerate(neighbors):
# Setup a k-NN Classifier with k neighbors: knn
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 16, 2025 13:08
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example