Skip to content

Instantly share code, notes, and snippets.

@ecylmz
ecylmz / password-store.txt
Created May 25, 2014 13:54
password-store.txt
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı inşa ediliyor.
Durum bilgisi okunuyor... Bitti
rng-tools zaten en yeni sürümde.
pass zaten en yeni sürümde.
Yükseltilen: 0, Yeni Kurulan: 0, Kaldırılacak: 0 ve Yükseltilmeyecek: 315.
gpg: /home/ecylmz/.gnupg: dizin oluşturuldu
gpg: yeni yapılandırma dosyası `/home/ecylmz/.gnupg/gpg.conf' oluşturuldu
gpg: UYARI: `/home/ecylmz/.gnupg/gpg.conf' deki seçenekler bu çalıştırma sırasında henüz etkin değil
gpg: `/home/ecylmz/.gnupg/secring.gpg' anahtar zinciri oluşturuldu
require 'cgi'
require 'rss'
require 'nokogiri'
feed_url = "http://www.google.com/alerts/feeds/06667186376393157410/7085097342726270821"
response = RSS::Parser.parse(feed_url, false)
response.entries.each do |entry|
p Nokogiri::HTML(CGI.unescapeHTML(entry.title.to_s)).content # Başlık
# encoding: utf-8
# https://github.com/amalhotra/galerts
# gem'i kendin inşa et ve kur:
# cd /tmp && git clone https://github.com/amalhotra/galerts && cd galerts
# gem build galerts.gemspec
# sudo gem install galerts-0.0.1.gem --no-ri --no-rdoc
require 'galerts'
# http://www.google.com/alerts/manage
# encoding: utf-8
require 'gcal4ruby'
include GCal4Ruby
@service = Service.new
@username = '[email protected]'
@password = 'p4ssw0rd'
p 'Yetkilendir'
@ecylmz
ecylmz / card.go
Last active December 15, 2015 02:29
package main
import (
"fmt"
"sort"
"math/rand"
"time"
"strings"
)
package main
import (
"fmt"
"sync"
"time"
)
func main() {
m := new(sync.Mutex)
package main
import (
"fmt"
"time"
)
func main() {
c1 := make(chan string)
c2 := make(chan string)
@ecylmz
ecylmz / install-ruby.sh
Created February 4, 2013 12:53
Ruby Kur
#!/bin/bash
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar xvzf ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure --prefix=/usr\
--program-suffix=1.9.2\
--with-ruby-version=1.9.2\
--disable-install-doc
make
@ecylmz
ecylmz / go-example.md
Created November 9, 2012 09:50
Go Example
@ecylmz
ecylmz / kullanıcıları-ekle.sh
Created October 6, 2012 11:26
Lab/19 Kullanıcıları Oluşturma
#!/bin/bash
# Öntanımlı kabuğu değiştir
useradd -Ds /bin/bash
for isim in `cat talebe.csv`; do
useradd -d /home/$isim -p `mkpasswd 123456` $isim
mkdir /home/$isim
chown -R $isim:$isim /home/$isim
done