Skip to content

Instantly share code, notes, and snippets.

View Wilker's full-sized avatar
🏠
Working from home

Wilker Wilker

🏠
Working from home
View GitHub Profile
@Wilker
Wilker / rubymine.desktop
Last active May 17, 2018 12:03
In Debian place under ~/.local/share/applications
[Desktop Entry]
Name=RubyMine
Comment=RubyMine IDE
Exec=/opt/RubyMine-2017.3.2/bin/rubymine.sh %f
Icon=/opt/RubyMine-2017.3.2/bin/rubymine.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;
X-GNOME-Bugzilla-Bugzilla=GNOME
@Wilker
Wilker / config
Last active October 25, 2017 13:16
i3Config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# This script sets the max volume
# pacmd set-sink-volume <sink> <value>
# Replace <sink> with your sink name or sink index as given from:
# `pacmd set-sink-volume 0 99999`
# Set max volume to 153%
pacmd set-sink-volume 0 99999
@Wilker
Wilker / printDoubleSided.sh
Created June 20, 2017 05:02
#Script para gerar a string das páginas de impressão em dois lados para um impressora que imprime em um lado só
#!/bin/bash
#Script para gerar a string das páginas de impressão em dois lados
#para um impressora que imprime em um lado só
for i in $(seq 1 $(( $1 - 1 )) ); do
if [ $(($i % 2)) -eq 1 ]
then
echo "$i,\c"
fi
done
echo " "
mkdir ./converted/
for file in ./*.jpeg ; do
convert "$file" -rotate $1 "${file%.JPG}"_rotated.JPG
done
mv *.*rotated* ./converted/
#include <stdio.h>
#include <string.h>
#define encrypt E
#define Decrypt D
int getAlphabetSequence(char character);
char* getEncryptedText(char* originalString, int key, char type);
char replace(char c, int* key, char tipo);
int mod(int a, int b);
#include <stdio.h>
#include <string.h>
#define encrypt E
#define Decrypt D
int getAlphabetSequence(char character);
char* getEncryptedText(char* originalString, int key, char type);
char replace(char c, int* key, char tipo);
int mod(int a, int b);
#!/bin/bash
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -Hsync +Vsync
xrandr --addmode DVI-1 "1600x900_60.00"
sleep 3
xrandr --output DVI-1 --mode "1600x900_60.00" --left-of HDMI-0
sleep 2
xrandr --output HDMI-0 --primary