I've moved the icon list to a proper repository to provide a space for others to contribute. See you there!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List all available formats and download specific audio-only format | |
| youtube-dl -F https://www.youtube.com/watch?v=xFjpTF4-PgI | |
| youtube-dl -f 140 https://www.youtube.com/watch?v=xFjpTF4-PgI | |
| # Download and convert to audio-only format | |
| youtube-dl -x --audio-format m4a https://www.youtube.com/watch?v=xFjpTF4-PgI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mysqld] | |
| innodb_buffer_pool_size=1G # Default: 128M. Ideally, this is 80% of the available RAM | |
| max_connections=301 # Default: 151. Increase for more concurrent connections if you have the resources. | |
| query_cache_size=64M # Default: 0 | |
| # Check configuration of custom variables above | |
| show variables like 'innodb_buffer%'; | |
| show variables like '%connections%'; | |
| show variables like '%query_cache%'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a = ('A'..'Z').to_a + (1..9).to_a | |
| 5.times.map { 4.times.map { a.sample }.join }.join(' - ') | |
| # "4H8Y - 3OQD - 9DO8 - 6WTW - KROI" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # NGINX from source | |
| /opt/nginx/logs/*.log { | |
| su nginx nginx | |
| weekly | |
| dateext | |
| dateformat .%Y-%m-%d | |
| rotate 3 | |
| compress | |
| delaycompress | |
| create 0640 nginx nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wsh = New-Object -ComObject WScript.Shell | |
| while (1) { | |
| $wsh.SendKeys('+{F15}') | |
| Start-Sleep -seconds 300 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Armoire.where('name_en like ?', "Summer's Flame%").each { |armoire| armoire.sources.create!(type: SourceType.find_by(name: 'Premium'), text: 'Mog Station', premium: true) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reactions = message.reactions.values.map(&:to_s) | |
| reactions.flat_map { |reaction| message.reacted_with(reaction, limit: nil) }.map(&:distinct).uniq |
sudo yum group install "Development Tools"
sudo yum install openssl-devel libcurl-devel
sudo mkdir -p /opt/rails/mycoolapp/shared
sudo chcon -R -h -t httpd_sys_content_t /opt/rails/
sudo useradd nginx
sudo chown -R nginx:nginx /opt/rails
sudo su - nginx
git clone https://github.com/rbenv/rbenv.git ~/.rbenv