Skip to content

Instantly share code, notes, and snippets.

View exnius's full-sized avatar

Exnius exnius

  • Protoarte
  • Colombia
View GitHub Profile
@exnius
exnius / pure-tweaks.css
Created April 21, 2019 11:50 — forked from dchest/pure-tweaks.css
PureCSS tweaks
/*
dchest's PureCSS Tweaks
https://gist.github.com/dchest/500746c2e41baaafcab3
*/
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@exnius
exnius / gist:b9e213037f4950086b003ff617bc3c9f
Created October 28, 2018 03:37
FIX VLC and other QT5 applications' buttons and menus
# run qt5ct to config QT.
# https://forum.artixlinux.org/index.php/topic,472.0.html
# put the environment variables in /etc/environment
QT_QPA_PLATFORMTHEME=qt5ct
QT_AUTO_SCREEN_SCALE_FACTOR=0
@exnius
exnius / gist:68451b23d203cef6129dd23d92c35d7e
Created October 28, 2018 03:32
Change linux /tmp/ folder size with Bash. Useful for software that requires more space to be installed/compiled.
# TMP folder size
mount -o remount,size=32G /tmp/
@exnius
exnius / screenshot_window.sh
Created October 28, 2018 03:27
Bash + Scrot: Guarda una captura de la ventana activa en la carpeta $ZEITGEIST
#!/bin/bash
# Zeitgeist Screenshots
# Author: @exnius
# 2018-10-22
# Guarda una captura de la ventana activa en la carpeta $ZEITGEIST
# =======================================
screenshotFormat="jpg"
# =======================================
cd $ZEITGEIST
focusedWindowTitle="$(xdotool getactivewindow getwindowname)"
@exnius
exnius / QRLogo.php
Created November 28, 2016 08:03 — forked from NTICompass/QRLogo.php
QR Code + Logo Generator
<?php
/**
* QR Code + Logo Generator
*
* http://labs.nticompassinc.com
*/
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com';
$size = isset($_GET['size']) ? $_GET['size'] : '200x200';
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE;
@exnius
exnius / grid-push-pull.less
Created November 19, 2016 05:38 — forked from Evanion/grid-push-pull.less
Responsive push/pull for uikit
/* Small */
@media (max-width: @breakpoint-small-max) {
[class*='uk-push-small-'],
[class*='uk-pull-small-'] { position: relative; }
/*
* Push
*/
@exnius
exnius / 403.html
Created November 18, 2016 20:32 — forked from gardenmaintainer/403.html
HTML: Placeholder - creates a default html placeholder for use with site maintenance
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>403 Forbidden 禁止進入</title>
<style type="text/css">
body {
background: #e3e3e3;
font-family: "Segoe UI", "Droid Sans", Arial, sans-serif;
color: #353535;
@exnius
exnius / Default (Windows).sublime-keymap
Created March 13, 2015 17:29
Sublime text default keymap
[
{ "keys": ["ctrl+keypad_divide"], "command": "view.encoding()" },
{ "keys": ["ctrl+keypad_multiply"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
// { "keys": ["ctrl+alt+enter"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["super+e"], "command": "paste_and_indent" },
{ "keys": ["ctrl+."], "command": "toggle_comment", "args": { "block": false } },
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#fde0dc</color>
<color name="md_red_100">#f9bdbb</color>
<color name="md_red_200">#f69988</color>
Clip(Text="", Reselect="") ; http://www.autohotkey.com/forum/viewtopic.php?p=467710 , modified August 2012
{
Static BackUpClip, Stored, LastClip
If (A_ThisLabel = A_ThisFunc) {
If (Clipboard == LastClip)
Clipboard := BackUpClip
BackUpClip := LastClip := Stored := ""
} Else {
If !Stored {
Stored := True