Skip to content

Instantly share code, notes, and snippets.

Avatar

Michał Radwański enedil

View GitHub Profile
View tmux.conf
# 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
View conversion
#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;
View kulki
#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 Dec 27, 2014
MIT License
View MIT.txt
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:
View bf
#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[])
{
View sortByLineLength.cpp
/*
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
View dp.rb
#!/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
View nmap-scan.log
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]
View kwalifikacje.py
#!/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):
View keybase.md

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: