Skip to content

Instantly share code, notes, and snippets.

View sebyx07's full-sized avatar
🎯
Focusing

Sebyx07 sebyx07

🎯
Focusing
View GitHub Profile
@sebyx07
sebyx07 / app.md
Last active August 26, 2020 09:09
Cb radio app

Best CB radio 2020

Gigacb is the new futuristic and feature cb radio app for truck drivers

get it here for free cb

IOS to download ios cb

Android to download for android cb

@sebyx07
sebyx07 / info.md
Last active June 18, 2020 15:24
Vps deals
@sebyx07
sebyx07 / hatchbox.md
Last active June 18, 2020 09:12
Hatchbox.io code

Deploy ruby on rails application on aws ec2

For the last 2years I've been developing and deploying professionally, tens of Ruby on Rails application using Hatchbox.io .

Hatchbox has great support for cloud providers such as AWS, Digital Ocean and custom VPS.

Before using Hatchbox, I used Heroku and the features are similiar at one fraction of a cost.

Automatic deployments, NGINX, Let's Encrypt

You can also choose which database you want to use, such as Postgresql, Mysql, Mongodb.

@sebyx07
sebyx07 / truncate.rb
Created May 31, 2020 14:52
rails truncate text, smart way
def truncate(text, max)
return text if text.size < max
last_word_index = text[max] == " " ? -1 : -2 # check if it's ending, then we can include it
text[0..max - 1].split(" ")[0..last_word_index].join(" ")
end
@sebyx07
sebyx07 / truncate.rb
Created April 21, 2020 13:45
Smart way to truncate string strings in ruby based on number of chars. It enforces the maxium size, so you don't get validation errors
module StringTruncate
def string_truncate(string, max_size, terminator="...")
size = 0
words = []
string.split.each do |word|
size += word.size
words << word
break if size >= max_size
size += 1
end
@sebyx07
sebyx07 / client_and_server.js
Last active October 19, 2019 21:51
JS React => Ruby HYPERSTACK.
Mui = require('@material-ui/core');
Mui.default = Mui;
<a href="http://www.ezsniper.com">
eBay sniper
</a>
test
@sebyx07
sebyx07 / tutorial.md
Last active April 11, 2024 16:22
Hack Age of Empires Online Celeste. Infinite population and resources

Run the trainer before in a quest!

1 Install Sandboxie https://www.sandboxie.com/

2 Run Celeste_Launcher_Gui.exe sandboxed

3 Run the Game

4 Alt tab

Verifying my Blockstack ID is secured with the address 14K9PN4un95zWoqBxYFDiL6TB6k2GN9KuQ https://explorer.blockstack.org/address/14K9PN4un95zWoqBxYFDiL6TB6k2GN9KuQ