Skip to content

Instantly share code, notes, and snippets.

Server Configuration from scratch

My public ip : 51.15.204.137 Log in to your new server by ssh, use key/pair or password depending on the service you have chosen

ssh root@51.15.204.137

Now let's create a new user that we call deploy or whatever you want and add it to the sudo group

@v-pukman
v-pukman / soundcloud_api_client.py
Created July 12, 2022 17:31 — forked from SirFroweey/soundcloud_api_client.py
Download SoundCloud Track via SoundCloud API
import mechanize
from lxml import etree
import json
__author__ = "https://github.com/SirFroweey/"
class SoundCloud:
"""
@v-pukman
v-pukman / ruby_code_solutions.rb
Last active July 9, 2018 11:42
ruby_code_solutions
###############
## Factorial ##
###############
# 1:
def fac1 n
v = 1
(1..n).each {|t| v *= t}
v
end
@v-pukman
v-pukman / godot.py
Created May 10, 2018 13:57
Godot 2.1 Notes
GODOT
#1. loading resources
var res = load("res://robi.png") # resource is loaded when line is executed
get_node("sprite").set_texture(res)
func _ready():
var res = preload("res://robi.png") # resource is loaded at compile time
get_node("sprite").set_texture(res)
@v-pukman
v-pukman / api_client.rb
Created March 6, 2017 14:16
api client example
class Bzz::Service::ApiClient
APPS_URL = 'http://m.bzz.com/apps'
SEARCH_URL = 'http://m.bzz.com/search'
RETRY_MAX = 4
RETRY_INTERVAL = 5
RETRY_BACKOFF_FACTOR = 2
# get :app, docid: 123
def get resource, options={}
@v-pukman
v-pukman / pinterest_spammer.rb
Created February 7, 2016 14:55
Post to Pinterest using Ruby and Mechanize
# Usage example:
#
# s = PinterestSpammer.new
# s.sign_in 'your_account_email', 'your_account_password'
# s.get_boards # get boards list, that contains board_id (for example - 455708124733779520)
# s.create_pin(455708124733779520, 'https://xyz.xyz/', 'http://rubyonrails.org/images/rails.png', 'Spammer!')
#
#
require 'mechanize'
class PinterestSpammer