Skip to content

Instantly share code, notes, and snippets.

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

Lucas Brum sistematico

🏠
Working from home
View GitHub Profile
@sistematico
sistematico / online.sh
Last active October 7, 2015 16:48
Online.sh
#!/bin/sh
TITLE=${HOST}
MSG="Machine $HOST is online!"
NOTIFY="/usr/bin/mate-notify-send"
USER="lucas"
HOST="192.168.0.3"
TIME=10
URG="critical"
@sistematico
sistematico / .xinitrc
Last active October 8, 2015 05:58
xinitrc
DEFAULT_SESSION=mate-session
ARGS="dbus-launch --exit-with-session ck-launch-session"
# Start a D-Bus session
source /etc/X11/xinit/xinitrc.d/30-dbus
# Start GNOME Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
# You probably need to do this too:
export SSH_AUTH_SOCK
export GPG_AGENT_INFO
@sistematico
sistematico / PKGBUILD
Created September 7, 2014 23:10
PKGBUILD for popcorn-time (binary)
# Maintainer: Attila Bukor <r1pp3rj4ck [at] w4it [dot] eu>
# Contributor: Eric Engestrom <aur [at] engestrom [dot] ch>
# Contributor: Iwan Timmer <[email protected]>
# Contributor: Ricardo Band <me [at] xengi [dot] de>
# Contributor: Lucas Saliés Brum <lucas [at] archlinux [dot] com [dot] br>
pkgname=popcorntime
_pkgname=popcorn-time
pkgver=0.3.2
pkgrel=1
@sistematico
sistematico / description.ext
Created September 14, 2015 11:45
description.ext for DayZ Overwatch
respawn = "BASE";
respawndelay = 5;
onLoadMission= "DayZ Chernarus";
OnLoadIntro = "Welcome to Chernarus";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[] = {0,2,6};
enableItemsDropping = 0;
onPauseScript = "";
// GLOBAL SETTINGS
hostname = "My Server: My Teamspeak address"; // The name of the server that shall be displayed in the public server list
//password = "ServerAccessPassword"; // Password for joining, eg connecting to the server
passwordAdmin = "AdminPassword"; // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
reportingIP = ""; //Gamespy Is No Longer available, Steam is reported too automatically, just define the steam ports as per this file, leave this string empty
logFile = "A3Master.log";
verifySignatures = 2;
// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
@sistematico
sistematico / exile
Last active November 26, 2015 12:06
Exile Mod Debian init script
#!/bin/bash
### BEGIN INIT INFO
# Provides: exile
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Should-Start: mysql
# Should-Stop: mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: ArmA 3 Exile init.d Script by Flodding
@sistematico
sistematico / utf8.sh
Last active March 20, 2016 18:57
Conversão de arquivos para UTF-8
#!/bin/sh
cod1="utf-8"
for arquivo in $*; do
if [ "$(file --mime-type ${arquivo} | cut -d ' ' -f2)" == "text/plain" ]; then
cod2=$(file --mime-encoding ${arquivo} | cut -d ' ' -f2)
if [ "$cod2" != "$cod1" ]; then
echo "Convertendo o $arquivo de $cod2 para ${cod1}..."
iconv -f $cod2 -t $cod1 "$arquivo" -o "${arquivo}.tmp"
mv $arquivo $arquivo.old
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
@sistematico
sistematico / unsplash_bg.sh
Last active August 30, 2016 16:41
Salva uma imagem aleatória do site unsplash.com e define como papel de parede no Linux
#!/bin/bash
#
# unsplash_bg.sh - Baixa uma imagem do site unsplash.com
# salva e define como papel de parede.
#
# Desenvolvido por Lucas Saliés Brum <[email protected]>
#
# Criado em: 09-04-2016 08:44:09 AMT
# Última alteração em: 30-08-2016 12:32:04 AMT
@sistematico
sistematico / css-update.bat
Created May 12, 2016 03:39
Atualiza o servidor de CS:S
@echo off
title Counter-Strike: Source Server UPDATE
cd C:\steamcmd
steamcmd.exe +runscript css.txt
@exit