Skip to content

Instantly share code, notes, and snippets.

View hasancc's full-sized avatar

Hasan Can Yaşar hasancc

View GitHub Profile
@hasancc
hasancc / Windows10AWSEC2.md
Created May 20, 2021 12:33 — forked from peterforgacs/Windows10AWSEC2.md
Running Windows 10 on AWS EC2

Running Windows 10 on AWS EC2

Downloading the image

Download the windows image you want.

AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)

So Home wont work.

@hasancc
hasancc / 21_rsyslog.config
Created April 18, 2020 17:30
Install Rsyslog 8 on Elastic Beanstalk
commands:
01_install_rsyslog:
command: yum install rsyslog --disablerepo=amzn-main -y
02_install_rsyslog-gnutls:
command: yum install rsyslog-gnutls --disablerepo=amzn-main -y
03_install_rsyslog-elasticsearch:
command: yum install rsyslog-elasticsearch --disablerepo=amzn-main -y
files:
"/etc/yum.repos.d/rsyslog.repo":

Keybase proof

I hereby claim:

  • I am hasancc on github.
  • I am hasancan (https://keybase.io/hasancan) on keybase.
  • I have a public key ASBgr985udvqBsl-ffYetIOzs3owKMMBSO7JEUj8Dz7QPwo

To claim this, I am signing this object:

@hasancc
hasancc / rc_database_server.rb
Created September 7, 2015 12:21
RC Simple DB Server
require 'sinatra'
require 'json'
set :port, 4000
class Store
@@store = {}
def self.init
@@store = {}
@hasancc
hasancc / calc_and_insert_gpas.rb
Created August 21, 2015 15:13
update student GPAs on database
require 'byebug'
require 'json'
require 'tiny_tds'
require 'dotenv'
Dotenv.load
$letter_grades = {
"AA" => 4.00,
"BA" => 3.50,
@hasancc
hasancc / remove_vserver_trojan
Last active August 29, 2015 14:02
remove_vserver_trojan
#!/bin/sh
# remove malware
rm -f /boot/Ip*
rm -f /boot/.Ip*
rm -f /boot/..Ip*
rm -f /usr/.Ip*
rm -f /tmp/29*
rm -f /.my*
rm -f /etc/rc2.d/S55Ip*