Skip to content

Instantly share code, notes, and snippets.

@frainfreeze
frainfreeze / tcpdump.py
Last active November 29, 2019 15:34
Small script for writting dump files of tcpdump
import subprocess
import datetime
today = datetime.datetime.now()
dump_file = ('dumped/' + today + '.txt')
def write_dump():
try:
a = subprocess.check_output(['tcpdump'])
dump = open(dump_file 'w')
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="/static/js/analytics.js"></script>
<script type="text/javascript">archive_analytics.values.server_name="wwwb-app13.us.archive.org";archive_analytics.values.server_ms=151;</script>
<link type="text/css" rel="stylesheet" href="/static/css/banner-styles.css"/>
@frainfreeze
frainfreeze / colorschemedesigner-desktop.py
Created December 26, 2015 13:07
colorschemedesigner application
import wx
import wx.html2
class MyBrowser(wx.Dialog):
def __init__(self, *args, **kwds):
wx.Dialog.__init__(self, *args, **kwds)
sizer = wx.BoxSizer(wx.VERTICAL)
self.browser = wx.html2.WebView.New(self)
sizer.Add(self.browser, 1, wx.EXPAND, 10)
self.SetSizer(sizer)
@frainfreeze
frainfreeze / tinyGet.bat
Last active June 24, 2016 12:05
Tiny batch script that makes use of wget.
title tinyGet
@echo off
echo image scrap/file dl/web mirror (img/dl/mir)
set /p option=
IF /i "%option%"=="img" goto imgScrap
IF /i "%option%"=="dl" goto dlFile
IF /i "%option%"=="mir" goto mirror
echo Not found.
goto commonexit
:: 13.08.2011
:: Dxdiag Miner 1.1 by Morrolan, made for #Minecrafthelp at EsperNet.
:: Feel free to redistribute and/or modify the file at will, but it'd be nice if you were to give the author credit.
:: Turn off echoing commands to the console, set colour to light green.
@echo off
Color 0A
echo Dxdiag Miner v1.1
@frainfreeze
frainfreeze / import_json_appsscript.js
Created July 23, 2017 15:38 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();

Keybase proof

I hereby claim:

  • I am frainfreeze on github.
  • I am frainfreeze (https://keybase.io/frainfreeze) on keybase.
  • I have a public key whose fingerprint is DE0B CF6F F0AB D065 2E3A D460 B705 03F4 E6C8 E67A

To claim this, I am signing this object:

This was written for debian 9.
download debian https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/
## instalation
Using graphical install:
- install lang: english,
- location: other->europe->croatia,
- locale: en_US,
- keymap: croatian
- hostname, domain: default

"Note that the knowledge for each level is cumulative; being at level n implies that you also know everything from the levels lower than n."

| Computer Science | Level 0 O(2^n) | Level 1 O(n^2) | Level 2 O(n) | Level 3 O(log n)

Lvl 0 Lvl 1 Lvl 2 Lvl 3 Computer Science
[ ] [ ] [ ] [ ] data structures
[ ] [ ] [ ] [ ] algorithms
[ ] [ ] [ ] [ ] systems programming
Lvl 0 Lvl 1 Lvl 2 Lvl 3 Software Engineering
[ ] [ ] [ ] [ ] source code version control
[ ] [ ] [ ] [ ] build automation