Skip to content

Instantly share code, notes, and snippets.

View linxlunx's full-sized avatar

Linggar Primahastoko linxlunx

View GitHub Profile
- Mail Server Installation
Postfix, SASL, Dovecot
http://vpsshell.co.uk/index.php/centosrhel-mail-server-postfix-dovecot-with-smtp-auth-tlsssl/
OpenDKIM
http://www.howtoforge.com/set-up-dkim-domainkeys-identified-mail-working-with-postfix-on-centos-using-opendkim
SPF
http://kb.mediatemple.net/questions/658/How+can+I+create+an+SPF+record+for+my+domain%3F#gs
@linxlunx
linxlunx / sonklot.py
Created April 1, 2014 10:58
soundcloud downloader
#!/usr/bin/env python
# usage: python sonklot.py <url>
# example: python sonklot.py https://soundcloud.com/ardosebastian/how-deep-is-your-love-cover-by
import urllib
import sys
import json
import os
def report(count, blockSize, totalSize):
@linxlunx
linxlunx / EasyTransferScan.py
Created September 3, 2014 07:23
Scanning Easy Transfer in Network
#!/usr/bin/env python
import argparse
import sys
import socket
import fcntl
import struct
import time
import multiprocessing
import urllib2
#!/usr/bin/python
# Captcha breaker for ziddu
# Need tesseract-ocr installed
# Need PIL and pytesser module installed
# usage:
# $ python ziddu.py ziddu.jpeg
# Tesseract Open Source OCR Engine v3.02.02 with Leptonica
# captcha: pswx5
@linxlunx
linxlunx / detik.go
Created May 8, 2015 06:39
Detikcom Crawler With Golang
package main
import (
"fmt"
"log"
"io/ioutil"
"net/http"
"encoding/xml"
"sync"
"encoding/json"
@linxlunx
linxlunx / searchAndCount.go
Created May 16, 2015 02:11
Search and Count Mentioned Users (Twitter)
package main
import (
"github.com/ChimeraCoder/anaconda"
"fmt"
"log"
"net/url"
"strings"
"sort"
"regexp"
@linxlunx
linxlunx / lebaranbabes.py
Created July 18, 2015 04:35
#LebaranBabes
#!/usr/bin/env python
import urllib
import urllib2
import json
import oauth2 as oauth
class Lebaran:
def __init__(self):
# twitter access key
@linxlunx
linxlunx / hovercard.go
Created August 2, 2015 15:51
Twitter User Hovercard Endpoint
package main
import (
"fmt"
"log"
"io/ioutil"
"net/http"
"encoding/json"
"regexp"
"strings"
@linxlunx
linxlunx / char_count.py
Created October 17, 2016 15:10
Count input characters
#!/usr/bin/env python
# only need a few minutes if I calm down
# aaarrrgggh
string = raw_input() + " "
texts = list(string)
final_texts = ""
x = 0
for num in xrange(len(texts)-1):
if texts[num] != texts[num+1]:
@linxlunx
linxlunx / scrap.go
Created December 1, 2016 03:53
Scraping Implementation Using Channels
// Scraping implementation using channels
// go run scrap.go
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"sync"