Skip to content

Instantly share code, notes, and snippets.

View tonitch's full-sized avatar
🏠
Working from home

Debucquoy Anthony tonitch tonitch

🏠
Working from home
View GitHub Profile
@tonitch
tonitch / motd
Created September 18, 2018 14:37
██╗ ██╗███████╗██████╗ ██╗███████╗███████╗ ██████╗ ███╗ ██╗
██║ ██║██╔════╝██╔══██╗██║██╔════╝██╔════╝██╔═══██╗████╗ ██║
███████║█████╗ ██████╔╝██║███████╗███████╗██║ ██║██╔██╗ ██║
██╔══██║██╔══╝ ██╔══██╗██║╚════██║╚════██║██║ ██║██║╚██╗██║
██║ ██║███████╗██║ ██║██║███████║███████║╚██████╔╝██║ ╚████║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝
@tonitch
tonitch / .vimrc
Created September 24, 2018 20:59
let python_highlight_all=1
let g:pymode_python = 'python3'
syntax on
"Enable folding + space to fold
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
map <F12> <ESC>:!cls & py %<CR>
map <F11> <ESC>:!cls & py<CR>
:: Synchronizing package databases...
downloading core.db...
downloading extra.db...
downloading community.db...
downloading multilib.db...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (224) alembic-1.7.10-1 arduino-1:1.8.8-1 attica-5.53.0-1 audacity-1:2.2.2-1 binutils-2.31.1-4 blender-17:2.79.b.git4.2c0c1f49-2 blosc-1.15.1-1 bluez-qt-5.53.0-1 breeze-maia-icon-themes-5.53.0-1 btrfs-progs-4.19.1-1 ca-certificates-mozilla-3.41-1 chromium-71.0.3578.98-2 clang-7.0.1-1 clipmenu-5.6.0-1 compiler-rt-7.0.1-1 curl-7.63.0-2 dbus-x11-1.12.12-1 device-mapper-2.02.183-1 e2fsprogs-1.44.5-1 eclipse-common-4.10-1 eclipse-java-4.10-1 electron-3.0.13-2 elfutils-0.175-1 extra-cmake-modules-5.53.0-1 feh-3.1.1-1 git-2.20.1-1 glib2-2.58.2-1 gnupg-2.2.12-1 gnutls-3.6.5-1 go-2:1.11.4-1 gobject-introspection-runtime-1.58.3-1 graphite-1:1.3.13-1 grep-3.3-1 gst-editing-services-1.14.4-1 gtk-update-icon-cache-3.24.2+7+g43aeb52b73-1 gtk3-clas
This file has been truncated, but you can view the full file.
warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)
warning: amd-ucode: /boot/amd-ucode.img (Modification time mismatch)
warning: cups: /etc/cups/classes.conf (Permissions mismatch)
warning: cups: /etc/cups/printers.conf (Permissions mismatch)
warning: cups: /etc/cups/subscriptions.conf (Permissions mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: lighttpd: /var/cache/lighttpd (Permissions mismatch)
local/cuda 11.4.1-1
NVIDIA's GPU programming toolkit
local/egl-wayland 1.1.7-1
EGLStream-based Wayland external platform
local/lib32-libvdpau 1.4-1
Nvidia VDPAU library
local/lib32-nvidia-utils 470.63.01-1
NVIDIA drivers utilities (32-bit)
local/libvdpau 1.4-1
Nvidia VDPAU library
/:
total 56
lrwxrwxrwx 1 root root 7 May 31 02:39 bin -> usr/bin
drwxr-xr-x 4 root root 4096 Jan 1 1970 boot
drwxr-xr-x 21 root root 4040 Aug 19 15:48 dev
drwxrwxrwx 3 tonitch tonitch 4096 Sep 17 2020 disks
drwxr-xr-x 102 root root 4096 Aug 19 15:45 etc
drwxr-xr-x 4 root root 4096 Sep 15 2020 home
lrwxrwxrwx 1 root root 7 May 31 02:39 lib -> usr/lib
lrwxrwxrwx 1 root root 7 May 31 02:39 lib64 -> usr/lib
@tonitch
tonitch / .vimrc
Created September 14, 2021 14:45
"python executing
autocmd BufWritePost *.py map <F12> <ESC>:!clear && python % & read<CR>
autocmd BufWritePost *.py map <F11> <ESC>:!clear && python & read<CR>
autocmd FileType python set sw=4
autocmd FileType python set ts=4
autocmd FileType python set sts=4
map <c-w>v :vsplit .<cr>
map <c-w>s :split .<cr>
#include <unistd.h>
#include <iostream>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <cstring>
int main(int argc, char* argv[]){
void Config::loadConfig(){
std::string key, value;
while(config_file){
getline(config_file, key,':');
config_file >> value;
config_file >> std::ws;
std::cout << "key: " << key << "; Value: " << value << std::endl;
}
config_file.close();
}
"python executing
autocmd BufWritePost *.py map <F12> <ESC>:!clear && python % & read<CR>
autocmd BufWritePost *.py map <F11> <ESC>:!clear && python & read<CR>
" autocmd FileType python set sw=4
" autocmd FileType python set ts=4
" autocmd FileType python set sts=4
map <c-w>v :vsplit .<cr>
map <c-w>s :split .<cr>