brew install mitmproxy
Terminal interface:
mitmproxy -p 8888
<?php | |
namespace common\components\rateLimiter; | |
use Yii; | |
use yii\base\BaseObject; | |
use yii\filters\RateLimitInterface; | |
/** | |
* API rate limiter. |
Add fbdir
option to Xvfb object:
vdisplay = Xvfb(width=1920, height=1080, colordepth=24, fbdir="/tmp/")
This option will tell xfvb to save dumps of its contents to PROVIDED_FOLDER/Xvfb_screen<n>
The dump file will be in .xwd
format, so it needs to be converted to some format supported by image viewers.
For the convenience you can use the following script:
#!/bin/bash | |
# ~/.config/polybar/clickable_date | |
day=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f3) | |
month=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f2) | |
year=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f1) | |
time=$(timedatectl | grep "Local" | awk '{print $5}' | cut -d ":" -f1,2) | |
echo "$day-$month-$year $time" |
systemctl --user import-environment DISPLAY | |
xrandr --setprovideroutputsource modesetting NVIDIA-0 | |
xrandr --auto | |
exec i3 | |
#exec startkde |
#!/usr/bin/env python3 | |
def generate_empty_map(x, y): | |
m = [] | |
for _ in range(y): | |
row = [] | |
for __ in range(x): | |
row.append(' ') | |
m.append(row) | |
return m |
import sys,os | |
import curses | |
import json | |
from subprocess import check_output | |
from draw_menu import clear, my_raw_input | |
from tcp_client import tgcli_send_command | |
class NcChat(): | |
def __init__(self, user): |
// VALUES TO CHANGE | |
const playTime = 16; | |
const SCORE = 1337; | |
const blockCnt = 32660 | |
// END VALUES TO CHANGE | |
async function getAuthToken() { | |
let gameUrl = window.location.pathname; | |
let auth_data = { | |
"jsonrpc": "2.0", |
//https://cheatera.unit.ua/42/projects/matcha | |
g = document.querySelectorAll('.highcharts-axis-labels > text > tspan'); | |
a = []; | |
for (let i = 0; i < g.length; i++) | |
{ | |
a.push(g[i].innerHTML); | |
} | |
a = a.map(function(x) {return x.split(" ")[1];}); | |
a.filter(function(x) {return x}); |
To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.
Folow this guide to setup ssh server.