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/env python3 | |
import urllib.request | |
import json | |
for i in list(range(10828)): | |
req = urllib.request.Request("http://www.hanime.tv/api/v3/community_uploads?channel_name__in[]=media&channel_name__in[]=nsfw_general&channel_name__in[]=yuri&__offset="+str(24*i)+"&__order=created_at,DESC", headers = {'X-Directive': 'api','User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'}) | |
opener = urllib.request.build_opener() | |
response = opener.open(req) | |
data = json.loads(response.read())['data'] | |
for m in data: |
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 time | |
from base64 import b64encode | |
from random import randrange | |
import threading | |
class AllTheReads(object): | |
def __init__(self, interval=1): | |
self.interval = interval | |
thread = threading.Thread(target=self.run, args=()) |
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
-module(sort_list). | |
-export([sort_list/1]). | |
sort_list(List) -> internal_sort_list(List, []). | |
internal_sort_list([], Acc) -> lists:sort(Acc); | |
internal_sort_list([H|T],Acc) -> | |
case H of | |
{F, S} when is_list(S) =:= true -> | |
Data = sort_list(S), | |
internal_sort_list(T, [{F, Data}|Acc]); | |
{F,S}-> internal_sort_list(T, [{F,S}|Acc]) |
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/sh | |
while : | |
do am start --user 0 -a android.intent.action.MAIN -n com.metasploit.stage/.MainActivity | |
sleep 10 | |
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
Step #1 - Minicom | |
Проверка работоспособности кабеля и соединения: | |
1.1 Устанавливаем миником | |
sudo apt-get install minicom | |
1.2 Проверяем USB порт | |
ls /dev/ | grep tty | |
1.2 Запускаем в режиме настройки | |
sudo minicom -s |
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/sh | |
IFS=' ' | |
for file in *.mp3; do | |
if [ ! -d "$file" ]; then | |
newfilename=`echo "$file" | sed -e "s/ /_/g"`; | |
new_name=`echo $newfilename |awk '{print substr($0,1,length-16)}'| xargs -I{} echo "{}.mp3"`; | |
mv "$file" "$new_name" 2>/dev/null; | |
fi | |
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
apt-get update | |
apt-get upgrade | |
apt-get install apache2 php7.0 php7.0-cli php7.0-curl php7.0-fpm \ | |
php7.0-mysql apache2 mysql-server mysql-client libapache2-mod-rpaf phpmyadmin \ | |
build-essential apache2-dev \ | |
# В процессе установки не выбираем ничего и просто нажимаем OK в первом окне | |
# Во втором окне выбираем YES, затем придумываем пароль от базы phpmyadmin нажимаем ок |
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
Binary Space Partitioning Window Manager = bspwm | |
Youtube Video: https://youtu.be/ZbXQUOwcH08 | |
bspwm install | |
pacman packages: | |
bspwm | |
sxhkd |
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 bash | |
set -e | |
EXITCODE=0 | |
# bits of this were adapted from lxc-checkconfig | |
# see also https://github.com/lxc/lxc/blob/lxc-1.0.2/src/lxc/lxc-checkconfig.in | |
possibleConfigs=( | |
'/proc/config.gz' |
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
wget goo.gl/5Y2Gj -O install.sh && sh install.sh |
NewerOlder