This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i "/^exit 0/ilsb_release -d | awk '{ print \$2 \" \" \$3 \" \" \$4 \" \\\\\\\n \\\\\\\l\" }' > /etc/issue " /etc/rc.local | |
sed -i "/^exit 0/i/sbin/ifconfig | grep \"inet addr\" | grep -v \"127.0.0.1\" | awk '{ print \$2 }' >> /etc/issue " /etc/rc.local | |
sed -i "/^exit 0/i\\\n" /etc/rc.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# pip install oauth2 | |
# oauth2==1.9.0.post1 | |
import oauth2 as oauth | |
from urllib.parse import urlparse, parse_qsl, urlencode | |
import json | |
from datetime import datetime,timedelta | |
# Number of inactive days of blog to unfollow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ssl | |
ssl._create_default_https_context = ssl._create_unverified_context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" | |
"os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import requests | |
import re | |
import urlparse | |
import urllib | |
import os | |
from bs4 import BeautifulSoup | |
base_url = "http://downloads.khinsider.com/game-soundtracks/album/patapon-2" | |
crawl_link_string = "Download" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var shortener = function(seq) { | |
var new_str = ""; | |
var chars = "abcdefghijklmnopqrstuvxzwyABCDEFGHIJKLMNOPQRSTUVXZWY1234567890"; | |
while (seq > 0) { | |
var k = seq % chars.length; | |
if (k == 0) { | |
k = 62; | |
seq--; | |
} | |
seq = Math.floor(seq / chars.length); |
NewerOlder