Skip to content

Instantly share code, notes, and snippets.

Derixithy derixithy

Block or report user

Report or block derixithy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View getflash.sh
#!/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
View sort-downloads.sh
#!/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 / ad-rules
Last active Jun 13, 2018
Copy ad rules from mvps.org to /etc/hosts
View ad-rules
#!/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 / setup.sh
Last active Jan 9, 2016
Koala App libudev.so.1 fix
View setup.sh
# 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 / _social.html
Last active Nov 26, 2015
html5 skeleton
View _social.html
<!-- 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>
View functions.sh
#!/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
View keybase.md

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:

You can’t perform that action at this time.