Skip to content

Instantly share code, notes, and snippets.

Cabia Rangris cab404

Block or report user

Report or block cab404

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View loginmetro.sh
#!/bin/bash
# Script for logging into MosMetro-Free in Moscow Metro
# With last updates to auth.wi-fi.ru - LUL FKN NOOOOBS THEY MADE IT EVEN EASIER
AUTHURL="http://auth.wi-fi.ru/auth?section=metro"
INITURL="http://auth.wi-fi.ru/auth/init?mode=0"
CHECKURL="http://auth.wi-fi.ru/auth/check?segment=metro"
AUTOURL="http://auth.wi-fi.ru/auto_auth?segment=metro"
CAPTCHAURL="http://auth.wi-fi.ru/rucaptcha/"
View scannet.sh
#!/bin/bash
# Simple network scan based on ICMP echo requests.
# Something for when arp scanning is not working.
# @author cab404
if [[ -z $2 ]]; then
echo "specify mask and bit length like so: '192.168.1.0 24'"
exit 0;
fi
View rene.sh
#!/bin/bash
# Simple sed-based file renamer
if [[ $1 == "" ]]; then
echo "No sed expression specified"
exit 0
fi
DATA=$(ls -1q); IFS=$'\n';
for A in $DATA; do
B=$(echo "$A" | sed -e "$1")
View m3-sorting-fixer.sh
#!/bin/bash
IFS=$'\n';
echo "Moving tree to temporary folder"
for A in $(find -type f); do
mkdir -p .resort/$(dirname $A);
mv "$A" ".resort/$A";
done
echo "Restoring tree structure, applying sorting"
View gist:7d908097a2bada12fe98930d6c4ae5dc
```
1,Барнаул,83.3456677,53.0976202,83.9072622,53.5046367
2,Брянск,34.1922357,53.1838365,34.7031279,53.374557
3,Волгоград,44.1092631,48.4132431,44.6839126,48.8894991
4,Волжский,44.6489811,48.7241632,44.8865116,48.9309656
5,Воронеж,39.0137772,51.4853846,39.4582951,51.8732697
6,Дзержинск,43.3424382,56.2124091,43.7615592,56.3302443
7,Екатеринбург,60.3851198,56.6678841,60.8421559,56.9631816
8,Ижевск,53.0099999,56.7236,53.3925998,57.0025341
9,Иркутск,95.6472077743,51.130399612,119.1389219501,64.3217050868
View WidthResizeTextView.java
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Width resizing text view
*
* @author cab404
*/
View EAN13.java
/**
* Generates EAN13 barcode data
*
* @author cab404
*/
public class EAN13 {
public static final int[] INDENTS = {0, 2, 44, 46, 92, 94};
public static final int LENGTH = 95;
private final static byte[][] CODEMAP =
View LightLevelMod.java
package com.cab404.moblightlevel;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.EnumSkyBlock;
import net.minecraft.world.World;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import net.minecraftforge.common.MinecraftForge;
View airmon-ng.md

немного о включении режима мониторинга

короче

  1. сначала мы отключаем беспроводной интерфейс от менеджера системы (который думает, что мы очень хорошие, и хотим только свои пакеты) это мы делаем через
    	ifconfig <название интерфеса> down
View CSVReader.java
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.CharBuffer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
You can’t perform that action at this time.