Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Pedro Fernandes pmcfernandes

🏠
Working from home
View GitHub Profile
@pmcfernandes
pmcfernandes / feh-install.sh
Last active Nov 22, 2019
Debian Background
View feh-install.sh
#!/bin/bash
sudo apt install -y feh
mkdir $HOME/Pictures && cd $HOME/Pictures
wget -o ghost2.jpg https://github.com/elithrade/manjaro-i3/raw/master/wallpapers/ghost2.jpg
feh --bg-scale $HOME/Pictures/ghost2.jpg
@pmcfernandes
pmcfernandes / urxvt-install.sh
Last active Nov 22, 2019
Install urxvt in Debian
View urxvt-install.sh
#!/bin/bash
cd $HOME
mkdir ~/.urxvt && mkdir ~/.urxvt/ext
sudo apt install -y git
git clone https://github.com/muennich/urxvt-perls
cd urxvt-perls
View .Xresources
!! Colorscheme
! special
*.foreground: #93a1a1
*.background: #141c21
*.cursorColor: #afbfbf
! black
*.color0: #263640
*.color8: #4a697d
View i3status-config
general {
colors = true
interval = 5
}
order += "cpu_usage"
order += "load"
order += "disk /"
order += "battery 0"
order += "wireless wlp2s0"
@pmcfernandes
pmcfernandes / i3-config
Last active Nov 22, 2019
i3 config file
View i3-config
# 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 some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@pmcfernandes
pmcfernandes / i3-install.sh
Last active Nov 22, 2019
Install i3 in Debian Minimal Distro
View i3-install.sh
#!/bin/bash
########## Install i3 in Debian Minimal Distro ##########
# Author: Pedro Fernandes
# URL: https://github.com/pmcfernandes/
#########################################################
apt install software-properties-common
apt update
@pmcfernandes
pmcfernandes / update-wp.ps1
Last active May 31, 2019
Update all instances of wordpress in a parent folder
View update-wp.ps1
# Tool to update wordpress website in Windows
# Author: Pedro Fernandes
# update-wp.ps1
param([String]$spaces = "E:\HostingSpaces")
Write-Host "update-wp.ps1- Tool update wordpress website in Windows"
Write-Host "Usage:"
Write-Host " -spaces: Location of WebSites in local system"
Write-Host ""
@pmcfernandes
pmcfernandes / DeleteZeroFiles.ps1
Created May 28, 2019
Delete all empty files from a directory recursively (Normally files cleaned by ESET File Security)
View DeleteZeroFiles.ps1
Get-ChildItem -Path C:\HostingSpaces -Recurse -Include *.php | Where {$_.Length -eq 0} | remove-Item
View opencv-install.sh
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |------------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |------------------|--------------|------|-------------|
# | Ubuntu 18.04 LTS | OpenCV 3.4.2 | OK | 18 Jul 2018 |
# | Debian 9.5 | OpenCV 3.4.2 | OK | 18 Jul 2018 |
@pmcfernandes
pmcfernandes / Start-Pomodoro.ps1
Created Apr 29, 2019 — forked from SQLvariant/Start-Pomodoro.ps1
A PowerShell function to create Pomodoro timer. Defaults to 25 minute timer.
View Start-Pomodoro.ps1
<# PLEASE NOTE: I am not the original author of this function.
I found it online years ago, and have been using it ever since.
If you are the original author, please ping me and let me know,
so I can give you proper credit.
#>
Function Start-Pomodoro
{
Param (
[int]$Minutes = 25
)
You can’t perform that action at this time.