Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am derixithy on github.
  • I am derixithy (https://keybase.io/derixithy) on keybase.
  • I have a public key whose fingerprint is AC49 30C1 F536 D4D9 6088 5CBC BA30 F9D4 4D7F F2BB

To claim this, I am signing this object:

@derixithy
derixithy / functions.sh
Last active October 22, 2015 12:05
Bash
#!/bin/bash
# Do not remove permanently
function rm {
mv $1 ~/.Trash # Probably needs a check if dir exists
}
# grep bash history
function grash() {
grep --color $1 ~/.bash_history
#!/bin/bash
kill $*
@derixithy
derixithy / _social.html
Last active November 26, 2015 14:20
html5 skeleton
<!-- Snippets to support social sites like: facebook, twitter, a.o. -->
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# blog: http://ogp.me/ns/blog#">
<link rel="apple-touch-icon-precomposed" href="/asset/image/icon_128x128.png">
<meta property="og:image" content="/asset/image/photo_large.png" />
</head>
@derixithy
derixithy / setup.sh
Last active January 9, 2016 16:09
Koala App libudev.so.1 fix
# I got the inspiration for this from http://portableapps.org/
# Run this in the kola app folder
# Create link to the newer libudev library
ln -s /lib/x86_64-linux-gnu/libudev.so.1 libudev.so.0
# Create start file to use the created link
cat > koala.sh <<'EOL'
#!/bin/bash
@derixithy
derixithy / ad-rules
Last active June 13, 2018 07:32
Copy ad rules from mvps.org to /etc/hosts
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2016 Derixithy
#
# 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
@derixithy
derixithy / sort-downloads.sh
Last active March 29, 2016 15:40
Bash Scripts
#!/bin/bash
set +e
SEARCH="${XDG_DOWNLOAD_DIR:-$HOME/Downloads}/*"
DOCUMENTS="${XDG_DOCUMENTS_DIR:-$HOME/Documents}"
DOWNLOADS="${XDG_DOWNLOAD_DIR:-$HOME/Downloads}"
#MUSIC="${XDG_MUSIC_DIR:-$HOME/Music}"
#PICTURES="${XDG_PICTURES_DIR:-$HOME/Pictures}"
#VIDEOS="${XDG_VIDEOS_DIR:-$HOME/Videos}"
@derixithy
derixithy / getflash.sh
Created October 10, 2016 14:21
Chromum OS
#!/bin/bash
#based on https://gist.github.com/dz0ny/3065781
if [ `uname -m` == 'x86_64' ]; then
# 64-bit
export CHROME="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
else
# 32-bit
export CHROME="https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_i386.deb"
fi
@derixithy
derixithy / import-ovpn
Last active November 10, 2020 08:54
Utils
#!/usr/bin/env sh
## $0 myfile.ovpn
sudo nmcli connection import type openvpn file $@