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
| #!/bin/bash | |
| until (( $page -lt $max )) | |
| do | |
| curl -H "Authorization: token $token" "https://api.github.com/$cntx/$name/repos?page=$page&per_page=100" | grep -e 'clone_url*' | cut -d \" -f 4 | xargs -L1 git clone | |
| $page=$page+1 | |
| done | |
| exit 0 |
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
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| while(true){ | |
| await sleep(500); | |
| let downloadButton = document.getElementsByClassName("hu5pjgll eb18blue sp_2Os1q_YKPqU sx_dd6456"); | |
| try { | |
| downloadButton[0].click(); | |
| } catch (ex) { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>al.musi.jacek</groupId> | |
| <artifactId>pastestats</artifactId> | |
| <version>1.0-SNAPSHOT</version> |
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 al.musi.jacek; | |
| import jcifs.smb.NtlmAuthenticator; | |
| import jcifs.smb.NtlmPasswordAuthentication; | |
| import jcifs.smb.SmbException; | |
| import jcifs.smb.SmbFile; | |
| import org.pmw.tinylog.Logger; | |
| import java.net.MalformedURLException; |
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
| #python 3 | |
| from collections import OrderedDict | |
| import requests | |
| import re | |
| domain = "http://www.oracle.com" | |
| def extractDownloadLinks(url, r): |
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 requests | |
| import os | |
| r = requests.Session() | |
| url = " http://www.oracle.com" | |
| url1 = "http://www.oracle.com/technetwork/java/javase/downloads/index.html" | |
| response = r.get(url1) | |
| beg = response.text.index("/technetwork/java/javase/downloads/jdk8-downloads-2133151.html") # TODO generify | |
| print(beg) |
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
| #!C:\Python27\python.exe | |
| #python 2.7 | |
| import urllib2, re, sys | |
| def geoip(ipAddr): | |
| ip = ipAddr | |
| url = 'https://geoiptool.com/en/?ip=' + ip | |
| website = urllib2.urlopen(url).read() |
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 java.io.BufferedReader; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.time.Duration; | |
| import java.time.Instant; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Scanner; |
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
| public void handleMessage(Message message) { | |
| //ExtendWeakRefHandler activity = mHandler.get(); | |
| if (message != null) { | |
| switch (message.what) { | |
| case TrackBrowser.DID_START: { | |
| Log.i(TAG, "Getting stored lyrics list..."); | |
| break; | |
| } | |
| case TrackBrowser.DID_SUCCEED: { | |
| Log.i(TAG, "Done."); |
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 android.os.Message; | |
| /** | |
| * Created by re on 2015-09-29. | |
| */ | |
| public class ExtendWeakRefHandler extends WeakRefHandler { | |
| public ExtendWeakRefHandler(Object activity) { | |
| super(activity); | |
| } |
NewerOlder