Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Script to install Fedy < http://folkswithhats.org/ >.
# Copyright (C) 2014 Satyajit sahoo
# Custom by kriptonium - 13/11/2015
if [[ ! $(whoami) = "root" ]]; then
echo "Please run the script as root."
exit 1
fi
@Kriptonium
Kriptonium / xampp-mysql-backup.bat
Last active June 18, 2021 00:13
A simple batch file run with task schedule as automate mysql database backup. Plus it compressed to save disk space.
@echo off
tasklist /FI "IMAGENAME eq mysqld.exe" 2>NUL | find /I /N "mysqld.exe">NUL
if "%ERRORLEVEL%"=="0" (
goto continue
) else (
goto mysql_not_running
)
:continue
@Kriptonium
Kriptonium / gist:e32be7b01fce38044104
Created October 30, 2015 03:06
Install codecs, software, and more... Fedy lets you install multimedia codecs and additional software that Fedora doesn't want to ship, like mp3 support, Adobe Flash, Oracle Java etc., and much more with just a few clicks. To install Fedy in Fedora, open a Terminal and run the following command,
bash -c 'su -c "curl http://folkswithhats.org/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"'
netbeans_default_options="
-J-client
-J-Xss2m
-J-Xms32m
-J-XX:PermSize=32m
-J-Dapple.laf.useScreenMenuBar=tr
-J-Dapple.awt.graphics.UseQuartz=true
-J-Dsun.java2d.noddraw=true
-J-Dsun.java2d.dpiaware=true
-J-Dsun.zip.disableMemoryMapping=true
* Connecting to irc.kampungchat.org (104.140.137.152) port 6667...
* Connection failed. Error: Connection timed out
Cycling to next server in KanpungChat...
* Disconnected ().
* Looking up irc.kampungchat.org
* Connecting to irc.kampungchat.org (104.140.137.152) port 6667...
* Connection failed. Error: Connection timed out
Cycling to next server in KanpungChat...
* Disconnected ().
* Looking up irc.kampungchat.org
sudo apt-get remove linux-header-4.0* linux-image-4.0*
cd /tmp
wget \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-headers-4.0.0-040000_4.0.0-040000.201504121935_all.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-headers-4.0.0-040000-generic_4.0.0-040000.201504121935_amd64.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-image-4.0.0-040000-generic_4.0.0-040000.201504121935_amd64.deb
sudo dpkg -i linux-headers-4.0*.deb linux-image-4.0*.deb