Skip to content

Instantly share code, notes, and snippets.

View heyalexej's full-sized avatar

Alexej heyalexej

  • rather hard to pin down
View GitHub Profile
<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe"
id="hidden_iframe"
style="display:none;"
onload="if(submitted) {window.location='http://domain.com/thanks.html';}">
</iframe>
<form action="https://docs.google.com/forms/d/cdjhesjd2763jhdjsshdjdshdjs267263723jhj23hjc/formResponse"
method="post"
target="hidden_iframe"
onsubmit="submitted=true;">
@heyalexej
heyalexej / ninjaproxies.py
Created May 1, 2015 09:08
get json from ninjaproxies api and write them into a file in the format IP:PORT
#!/usr/bin/env python3
""" format proxies into ip:port. """
import requests
import json
endpoint = 'http://ninjaproxies.com/proxies/api'
params = {
'alive': 1,
@heyalexej
heyalexej / header-size.py
Created April 21, 2015 14:00
quick and dirty script to compare header sizes in bytes
#!/usr/bin/env python3
""" Check and compare header sizes in bytes."""
import requests
s = 'Result'
e = ''
domains = ['https://google.com',
'http://stackoverflow.com',
'https://amazon.com',
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
""" fuzzing accessible urls.
>>> import random, string
>>> ld = string.letters+string.digits
>>> ld
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
>>> len(ld)
62
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
This file has been truncated, but you can view the full file.
{
"settings": {
"servers": {
"server": [
{
"@url": "http://88.84.191.230/speedtest/upload.php",
"@lat": "70.0733",
"@lon": "29.7497",
"@name": "Vadso",
"@country": "Norway",
@heyalexej
heyalexej / buildvim-ubuntu.sh
Created March 9, 2015 07:52
build vim with lua and stuff [by https://github.com/nfarrar]
#!/usr/bin/env bash
# - http://vim.wikia.com/wiki/Building_Vim
# - https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source
# - http://kowalcj0.wordpress.com/2013/11/19/how-to-compile-and-install-latest-version-of-vim-with-support-for-x11-clipboard-ruby-python-2-3/
# - http://blog.sanctum.geek.nz/vim-as-debian-default/
# - https://github.com/genoma/source-vim
# - https://github.com/BenjaminRH/vim-installer/blob/master/vim_installer.sh
# - https://github.com/faouellet/vimconfig/blob/dc15ea0ad5fd4153c2d5c3aed6d5208f783a2d82/install.sh
# - https://github.com/uchiha-yuki/.vim/blob/5fdab3bcbbfd783c38d0476d3e06a4720bb5ae7e/install_ycm.sh
❯ sudo fsck -AR -y [11:39:02]
[sudo] password for fizz:
fsck from util-linux 2.25.1
fsck.fat 3.0.26 (2014-03-07)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
Performing changes.
/dev/sda1: 6 files, 859/130812 clusters
e2fsck 1.42.10 (18-May-2014)
/dev/sda2 is mounted.
@heyalexej
heyalexej / gsm-setup.md
Last active August 20, 2025 21:09
SIM Card Management Through GSM Modem On Linux

SIM Card Management Over GSM Modem

A small guide on how to send and receive USSD codes on Linux

I am using the built in GSM (UMTS) modem of my Thinkpad X1 extensively because I am often in places with flaky internet connections. I connect through the standard Network Manager on Ubuntu and everything works fine. There was one major annoyance though. Every time I wanted to top up the SIM balance or book a new package, I needed a phone to send and receive USSD codes. So I took some time to figure out how to do it from the shell. I wrote this down as a help for others and a reminder for myself. Without further ado...

First intsall gammu and picocom.

~  sudo apt-get install -y gammu picocom
@heyalexej
heyalexej / positive-words.txt
Created December 4, 2014 16:26
list of some positive words for sentiment, domains, filtering, whatever. by no means complete or even correct.
absolutely
absorbing
abundance
accepted
acclaimed
accomplish
accomplishment
ace
achievement
action