Skip to content

Instantly share code, notes, and snippets.

View neidiom's full-sized avatar
🌴
On vacation

Nedim Hadzimahmutovic neidiom

🌴
On vacation
View GitHub Profile
@neidiom
neidiom / change_dns_plesk.sh
Last active February 19, 2018 17:08 — forked from agarzon/googleize.sh
Change a domain's ip address from old one to new one via Plesk cli dns util
#!/bin/bash
if [ -z "$1" ]
then
echo "Please provide a domain name as argument"
exit 1
fi
if [ -z "$2" ]
then
@neidiom
neidiom / capistrano-3-basic-set-up
Created February 9, 2017 14:09 — forked from albankora/capistrano-3-basic-set-up
Capistrano 3 basic set up
#create a public key base on the link bellow
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2
#the local public key has to be added on bitbucket.com and the remote server
https://help.github.com/articles/generating-ssh-keys/
#if you added a pass phrase to the key you need to add your public key to the remote server
http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/#toc_3
#set up the public ssh to your account
@neidiom
neidiom / site.pp
Created October 16, 2016 11:41 — forked from seanhagen/site.pp
Simple PHP Puppet setup
group { 'puppet':
ensure => present,
}
class initial_setup {
exec { 'apt-get update':
command => '/usr/bin/apt-get update',
}
package { "essential-packages":
#!/usr/bin/env ruby
require 'httparty'
require 'json'
reddit_api_url = "http://www.reddit.com/r/funny/new.json?sort=new&limit=5"
resp = HTTParty.get(reddit_api_url)
data = JSON.parse(resp.body)
data['data']['children'].each do |sub|