Skip to content

Instantly share code, notes, and snippets.

learning stuff

Filip Miletic defphil

learning stuff
View GitHub Profile
defphil / DebianNetPackages
Created Apr 21, 2015
Packages for naked Debian
View DebianNetPackages
## Base package list for my Debian system configuration
## Openbox base
xorg openbox obmenu obconf nitrogen gmrun lxsession-lite fbxkb xcompmgr transset-df xscreensaver xfce4-power-manager terminator lxappearance grandr openbox-logout-script-basic tint2 catfish notify-osd hotkey-setup gksu gdebi gdm
## Thunar -> considering PCmanFM
thunar file-roller lha unrar unace lzop rzip unalz unzip zip zoo xz-utils arj thunar-archive-plugin thunar-media-tags-plugin thunar-thumbnailers
## Audio
alsa-base vlc libdvdcss2 lame volwheel xfce4-mixer
View init.el
;; Don't load outdated byte code
(setq load-prefer-newer t)
;; Bootstrap 'use-package'
(require 'package))
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . ""))

Keybase proof

I hereby claim:

  • I am defphil on github.
  • I am phlm ( on keybase.
  • I have a public key whose fingerprint is CB2B 5DC1 F45D 90AC 813C 0A13 B032 F3F8 459F 3439

To claim this, I am signing this object:

View colors.txt
foreground = #AAAAB8
foreground_bold = #F7F6F2
cursor = #EF3B56
background = rgba (33,33,33)
# Black, Gray, Silver, White
color0 = #494949
color8 = #969896
color7 = #c5c8c6
View gist:76860c2574c99182f3dacb3b473e6d37
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZEtEYRawNwcEDrsnEE4mjaG+VJNgN8Ti7jHkRw0R/kqpFYeQiyowEVGE9yiXGndemF8jLtBIbs0DK6t1MhdYZtTRzMbH0XpKCewuI83iAw4fCcuoRm2V/uv5ReLo1ZXMv7Y2YJaEgym8AGof3bsrURv1URkc31KHPCFNo/MjzjeZceti1UeCygl5OvW6JUwXmgAdgXB61DNJ1NfSNDCki1hrOoqaotdd3wH6WudirbyRGorv8/1VKrY/EPBPP8NTqiPb9Cjb89tauioO517ItGz9ePubS8iWhHmFTqZVOaMnQArtiuipy8hTPhMo1m1Q/QXnmWtCD+Zg7b4TIBSqv
defphil / makefile1
Created Mar 11, 2019
minimal c makefile template
View makefile1
CC = gcc
DEBUG = -ggdb -O0 -march=native
CFLAGS := $(DEBUG) -W -Wall -Wextra -Wpedantic -pedantic -ansi
LDLIBS := -lm
SRC := $(wildcard *.c)
OBJ := $(SRC:.c=.o)
DEP := $(SRC:.c=.d)
-include $(DEP)
defphil / makefilecpp
Created Mar 11, 2019
minimal makefile for cpp
View makefilecpp
CC = clang++
CXX = clang++
DEBUG = -ggdb -O1 -march=native
CXXFLAGS := $(DEBUG) -W -Wall -Wextra -std=c++17
LDLIBS := -lm
OUTPUT_OPTION = -MMD -MP -o $@ -MJ $@.json
# Modify your C++ filesuffix here:
defphil / nixShellRust.nix
Created Nov 28, 2019
small nix script for nix-shell for Rust projects
View nixShellRust.nix
mozilla = import (builtins.fetchTarball;
nixpkgs = import <nixpkgs> { overlays = [ mozilla ]; };
with nixpkgs;
mkShell {
buildInputs = [
clang # needed for bindgen
View .Xresources-tmp
Xcursor.theme: whiteglass
Xcursor.size: 16
Xft.rgba: none
Emacs*font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso10646-1
Emacs*menubar.font: Fixed:pixelsize=13:style=SemiCondensed:lang=ru
Emacs*popup.font: Fixed:pixelsize=13:style=SemiCondensed:lang=ru
Emacs*dialog.font: Fixed:pixelsize=13:style=SemiCondensed:lang=ru
Emacs*foreground: grey90
Emacs*background: grey20
View fuckingDay3.cpp
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <array>
#include <algorithm>
#include <cmath>
using Lines = std::vector<std::string>;
You can’t perform that action at this time.