Skip to content

Instantly share code, notes, and snippets.

@halicki
halicki / README.md
Created January 30, 2019 11:02
SCRIPT-8
@halicki
halicki / README.md
Created January 30, 2019 10:44
SCRIPT-8
@halicki
halicki / sha1_your_email.py
Last active March 19, 2018 16:00
sha1 your email
from hashlib import sha1
def hash_string(string_to_hash):
hasher = sha1()
bytes_string = string_to_hash.lower().strip().encode('utf-8')
hasher.update(bytes_string)
return hasher.hexdigest()
email = 'my_address@domain.com'
print(hash_string(email))
@halicki
halicki / python-level-up-2018-homework-01-summary.md
Last active March 15, 2018 14:55
Python Level UP 2018 - Podsumowanie pracy domowej

Podsumowanie pracy domowej nr 1

  • Głowny cel: deploy na Heroku, 115 osobom się udało! 🍺
  • Część prac zwracała kompletne strony www Respect! Ale trudno było sprawdzać.

/

Zwracanie Hello, World!

  • Sprawdzarka reagowała tylko na response == 'Hello, World!' sorry.
@halicki
halicki / MC Cheat Sheet
Last active February 19, 2018 11:31 — forked from samiraguiar/MC Cheat Sheet
Midnight Commander Cheat Sheet
Shortcut Description
---------------------------------------------------------------
Ctrl + O Drop to the console
Insert Select/deselect file
* Invert selection on files
+ Specify file selection options (including custom pattern)
- The same as above, but for deselecting
F5/F6 Copy/move selected files
@halicki
halicki / mc-wrapper.fish
Last active September 22, 2024 22:08
Midnight commander wrapper script for the fish shell
function mc
set SHELL_PID %self
set MC_PWD_FILE "/tmp/mc-$USER/mc.pwd.$SHELL_PID"
/usr/bin/mc -P $MC_PWD_FILE $argv
if test -r $MC_PWD_FILE
set MC_PWD (cat $MC_PWD_FILE)
if test -n "$MC_PWD"