Skip to content

Instantly share code, notes, and snippets.

View derozic's full-sized avatar
🎯

Scott de Rozic derozic

🎯
View GitHub Profile
@derozic
derozic / 70-persistent-net.rules
Created September 14, 2018 12:20
70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
# # You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device lan Device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="ethX"
# PCI device Wlan Device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="wlanX"
@derozic
derozic / gist:d636dd8f18ad675b6433d7193fb2b704
Created August 14, 2018 14:35
Increase file upload size PHP/nginx
e.g. To change max file upload size to 100MB
Edit…
`sudo vi /etc/php5/fpm/php.ini`
Set…
`upload_max_filesize = 100M
post_max_size = 100M`
Also add following line to http{..} block in nginx config:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
# # You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device lan Device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="ethX"
# PCI device Wlan Device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="wlanX"
@derozic
derozic / Install NVIDIA Driver and CUDA.md
Created July 24, 2018 21:44 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
Verifying my Blockstack ID is secured with the address 1P7SDCq8RFG7ndtwq6HDwPe5tKnAouCWxv https://explorer.blockstack.org/address/1P7SDCq8RFG7ndtwq6HDwPe5tKnAouCWxv
```#
# Card rarities
# - Epic = 5
# - Legendary = 4
# - Rare = 3
# - Uncommon = 2
# - Common = 1
#
# Functions:
#
@derozic
derozic / gist:57e8f78b7aa87ed95af7192f6d47c8ce
Created May 14, 2018 05:36
Change ssh key password on mac
ssh-keygen -p
@derozic
derozic / gist:a01e377aa7b1a3ddf3be5f327e7d229a
Last active May 17, 2018 08:03
Terribly useful commands for running your ubuntu 16.04 GPU miner
We couldn’t find that file to show.
byobu-enable-prompt
@derozic
derozic / gist:35655ec82df3c996b6e03252c87fea15
Created May 9, 2018 19:56
Discover IP addresses of devices on your local network (mac)
arp -a