Skip to content

Instantly share code, notes, and snippets.

View RafahCSilva's full-sized avatar
💭
Oi, eu sou o Rafâo

RafahCSilva RafahCSilva

💭
Oi, eu sou o Rafâo
  • FTD Educação
  • São Paulo - SP, Brasil
View GitHub Profile
@RafahCSilva
RafahCSilva / win11_update_time.ps1
Created January 20, 2025 21:00
Win11 Update Time
# SUDO
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /config /update /manualpeerlist:pool.ntp.org
w32tm /config /update /manualpeerlist:south-america.pool.ntp.org
w32tm /resync
@RafahCSilva
RafahCSilva / update_VBoxGuest.sh
Created December 21, 2020 14:38
Update VBoxGuest do Homestead
sudo apt-get update &&
sudo apt-get remove dkms build-essential linux-headers-* -y &&
sudo apt-get install dkms build-essential linux-headers-$(uname -r) -y
# Download do VBoxGuestAdditions_X.Y.ZZ.iso em http://download.virtualbox.org/virtualbox/
curl http://download.virtualbox.org/virtualbox/6.1.16/VBoxGuestAdditions_6.1.16.iso -O
sudo mkdir -p /media/iso
sudo mount VBoxGuestAdditions_6.1.16.iso /media/iso
cd /media/iso
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@RafahCSilva
RafahCSilva / .p10k.zsh
Last active November 23, 2020 02:28
My WSL2 Ubuntu-20.04LTS provision for Developing
# Generated by Powerlevel10k configuration wizard on 2020-11-22 at 22:56 -03.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 39417.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, darkest,
# 24h time, angled separators, sharp heads, flat tails, 2 lines, disconnected, no frame,
# sparse, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@RafahCSilva
RafahCSilva / clear_all_caches.sh
Last active January 18, 2022 05:56
Clear All Caches
#!/usr/bin/env bash
echo "COMPOSER..."
composer cc
echo "NPM..."
sudo npm cache rm --force
echo "YARN..."
yarn cache clean
@RafahCSilva
RafahCSilva / __HyperXCloudRevolverS_byRafahCSilva.peace
Created May 23, 2020 08:08
EqualizerAPO + Peace for HyperX Cloud RevolverS byRafahCSilva
[General]
Description=Frequence response from: https://www.rtings.com/headphones/1-3-1/graph#510/3161
Configuration Icon=10
Device=HyperXCloudRevolverS_AudioBack, Realtek(R) Audio
Device GUID={47454e2c-bf15-4adc-bc3e-7d4fc428c129}
Bass Gain=12
Bass Frequency=200
Bass Target=0
Treble Gain=4
Treble Frequency=2000
#!/usr/bin/env bash
echo "UPDATING BREW..." && \
echo "entre a senha 2 vezes:" && \
sudo mkdir -p $(brew --caskroom) $(brew --cellar) && \
sudo chown -R $(whoami) $(brew --caskroom) $(brew --cellar) && \
echo "=====> BREW UPDATE " && \
brew update && \
echo "=====> BREW UPGRADE " && \
brew upgrade --force && \
@RafahCSilva
RafahCSilva / YouTube_wipe_WL.js
Created February 11, 2020 22:13
Remove all items from Youtube Playlist "Watch Later" <https://www.youtube.com/playlist?list=WL&disable_polymer=1>
// REMOVE ALL ITEMS FROM YOUTUBE PLAYLIST "WATCH LATER"
// Go to playlist without Polymer
// https://www.youtube.com/playlist?list=WL&disable_polymer=1
window.open('https://www.youtube.com/playlist?list=WL&disable_polymer=1', '_self');
// Removing all items
!function (loadMoreClass, removeBtnClass, getTitle, i) {
// Load all items
i('Loading all items...');
@RafahCSilva
RafahCSilva / blade.xml
Last active September 20, 2019 21:10
spatie/laravel-permission PhpStorm Blade directives (edit the file: `.idea/blade.xml`) (ref: https://docs.spatie.be/laravel-permission/v2/advanced-usage/phpstorm/)
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BladeInjectionConfiguration" default="false">
<directives>
<data directive="@role" injection="true" prefix="&lt;?php if(auth()-&gt;check() &amp;&amp; auth()-&gt;user()-&gt;hasRole(" suffix=")): ?&gt;" />
<data directive="@elserole" injection="true" prefix="&lt;?php elseif(auth()-&gt;check() &amp;&amp; auth()-&gt;user()-&gt;hasRole(" suffix=")): ?&gt;" />
<data directive="@endrole" />
<data directive="@hasrole" injection="true" prefix="&lt;?php if(auth()-&gt;check() &amp;&amp; auth()-&gt;user()-&gt;hasRole(" suffix=")): ?&gt;" />
<data directive="@endhasrole" />
@RafahCSilva
RafahCSilva / win10.Vagrantfile
Last active September 30, 2019 10:58
Vagrant of MS Windown 10 in Virtual Box
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at