Skip to content

Instantly share code, notes, and snippets.

View Darksider3's full-sized avatar
:shipit:
Focused

darksider3 Darksider3

:shipit:
Focused
View GitHub Profile
alert("Hi!");
#!/bin/bash
set -e
SPLITSHIT="-----------"
DISTRO="artful"
VBOXREPO="deb [trusted=yes] http://download.virtualbox.org/virtualbox/debian ${DISTRO} contrib non-free"
if [ $VBOX_DEBUGS -ge 0 ]
then
debug=$VBOX_DEBUGS
else
@Darksider3
Darksider3 / .vimrc
Created August 26, 2018 14:59
vimrc
:syntax on
set expandtab
set shiftwidth=2
set softtabstop=2
set autoindent
" ALIASES
" Write & run the current selected file in buffer
bit2mbyte()
{
file=$1
size=$(ls -l ${file} | awk '{print $5}')
calcs=$(expr ${size} / 1024 / 1024)
echo -e "\n${file} size: \u001b[44;1m${calcs}\u001b[0m MegaByte\n"
}
# how to: Use type bit2mbyte $file
@Darksider3
Darksider3 / checkmd5.sh
Created July 13, 2018 20:31
checkmd5.sh
#usage: checkmd5 $MD5SUM $fileToCheck
function checkmd5() {
md5_to_test=$1
md5_from_file=$(md5sum "$2" | cut -d " " -f1)
md5_results="Input: $md5_to_test\nFile: $md5_from_file"
if [[ $md5_to_test == $md5_from_file ]]
then
echo -e "\n\e[92mSUCCESS\e[39m\n$md5_results"
else
Name: notepadqq
%define version 1.3.6
Version: %{version}
Release: 1.0%{?dist}
Summary: Notepadqq is a text editor designed from developers, for developers.
URL: https://github.com/notepadqq/notepadqq
License: GPL-3.0
%global debug_package %{nil}
BuildRequires: qt5-qtbase-devel qt5-qttools-devel qt5-qtwebkit-devel qt5-qtsvg-devel qtchooser
Requires: qt5-qtbase qt5-qttools qt5-qtwebkit qt5-qtsvg
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Lightscreen
GenericName=Lightscreen
GenericName[de]=Lightscreen Screenshot-Tool
Comment=Screenshot-tool and uploader
Exec=lightscreen
Icon=/usr/share/pixmaps/lightscreen.ico
Terminal=false
*** screenshot_old.cpp 2018-04-22 18:14:15.969692651 +0200
--- screenshot.cpp 2018-04-22 18:15:57.137990615 +0200
***************
*** 43,48 ****
--- 43,49 ----
#ifdef Q_OS_LINUX
#include <QX11Info>
#include <X11/X.h>
+ #undef Success
#include <X11/Xlib.h>
Name: lightscreen
Version: 2.4.git7782bd5
Release: 1%{?dist}
Summary: Simple tool to automate the tedious process of saving and cataloging screenshots
URL: https://lightscreen.com.ar/
License: GPLv2
Source0: https://github.com/ckaiser/Lightscreen/archive/7782bd5d68a0c14b06873d3a04929816e337c8a3.zip
Source1: https://github.com/ckaiser/UGlobalHotkey/archive/231b10144741b29037f0128bb7a1cd7176529f74.zip
Source2: https://github.com/ckaiser/SingleApplication/archive/c6378eec45a5fdf699b4d27fb4be22a190b2a184.zip
if (!document.querySelectorAll) {
document.querySelectorAll = function (selectors) {
var style = document.createElement('style'), elements = [], element;
document.documentElement.firstChild.appendChild(style);
document._qsa = [];
style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}';
window.scrollBy(0, 0);
style.parentNode.removeChild(style);