Skip to content

Instantly share code, notes, and snippets.

View enedil's full-sized avatar

Michał Radwański enedil

View GitHub Profile
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
#include <iostream>
#include <cmath>
int to_decimal(int n, int num);
int from_decimal(int n, int num);
int main()
{
std::ios_base::sync_with_stdio(0);
int P;
#include <iostream>
#include <string>
using namespace std;
int search(char a, string s);
int main()
{
ios_base::sync_with_stdio(0);
@enedil
enedil / MIT.txt
Created December 27, 2014 02:19
MIT License
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@enedil
enedil / bf
Created February 16, 2015 18:09
#include <fstream>
#include <iostream>
#include <string>
const std::string head = "#include <cstdio>\n#include <vector>\nstd::vector<short> v(30000);\nshort* p = &(v[0]);\nint main() {\n";
const std::string end = "}";
int main(int argc, char* argv[])
{
/*
The MIT License (MIT)
Copyright (c) 2015 enedil <enedil at outlook.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@enedil
enedil / dp.rb
Created February 25, 2015 22:41
#!/usr/bi/env ruby
input_file = ARGV[0]
output_file = ARGV[1]
strings = []
File.readlines(input_file).each do |line|
strings << [line.length, line]
end
Starting Nmap 6.40 ( http://nmap.org ) at 2015-04-26 18:26 CEST
NSE: Loaded 110 scripts for scanning.
NSE: Script Pre-scanning.
Initiating Ping Scan at 18:26
Scanning 256 hosts [2 ports/host]
Completed Ping Scan at 18:26, 2.22s elapsed (256 total hosts)
Initiating Parallel DNS resolution of 256 hosts. at 18:26
Completed Parallel DNS resolution of 256 hosts. at 18:26, 0.02s elapsed
Nmap scan report for 158.75.50.0 [host down]
#!/usr/bin/env python3
import roman
from os import system
from requests import get
from sys import argv, platform
from time import sleep
def notify(s, say=False):

Keybase proof

I hereby claim:

  • I am enedil on github.
  • I am kataryniarz (https://keybase.io/kataryniarz) on keybase.
  • I have a public key ASDRXwLJIGckxle70oTSVOxAWAUSZI2VorN50eU6dc0tmAo

To claim this, I am signing this object: