Skip to content

Instantly share code, notes, and snippets.

@YoSoyPhil
YoSoyPhil / default HTTP
Created January 8, 2024 13:59 — forked from iam-hussain/default HTTP
Serve nextJS app from a port through NGINX reverse proxy HTTP and HTTPS
# Serve nextJS app from a port through NGINX reverse proxy (HTTP)
# Path: /etc/nginx/sites-available/default
# Default server configuration for HTTP
server {
server_name www.DOMAINNAME.com DOMAINNAME.com;
# Serve any static assets with NGINX
location /_next/static {
alias /home/ubuntu/PROJECT_FOLDER/.next/static;
@YoSoyPhil
YoSoyPhil / photoshop-script-export-to-web-recursive-folder-scan.jsx
Last active November 13, 2023 14:49
Photoshop script to export for web - going through folders recursively and saves in the source folder inside a new folder "Optimized"
// Photoshop export for web - going through folders recursively
function getOutputFolder(file) {
var parentFolder = file.parent;
var outputFolder = new Folder(parentFolder + "/Optimized");
if (!outputFolder.exists) {
outputFolder.create();
}
return outputFolder;
}
@YoSoyPhil
YoSoyPhil / README.md
Last active November 16, 2024 04:45
Install Canon EOS Utility 2 full version

How to install Canon EOS Utility 2 full version

EOS Utility 2.14.20a full version install

Go to Canon and select your camera model under software downloads. At the time this guide was written, the link was https://www.canon-europe.com/support/consumer_products/software/eos-utility.html

Select your camera and download "EOS Utility 2.14.20a Updater for Windows" (yes, we will do full install with this file).

Before we can run the installer we need to add a key to our registry.

@YoSoyPhil
YoSoyPhil / X1-GEN9-Docking-list.md
Last active May 31, 2022 11:32
Lenovo X1 Carbon Gen9 - Docking compatibility list

Lenovo X1 Carbon Gen9 - Docking compatibility list

This is a list of Thunderbolt 3 docking stations which are compatible with Lenovo Carbon X1 Gen9.

Dock type Firmware Connects Cable Length PN FRU
40AC 1.0.25 Yes ✔ Lenovo USB-C 1 meter SC10S97545 03X7610
40AC 1.0.25 Yes ✔ Lenovo USB-C 1 meter SC10Q13458 03X7470
40AC 1.0.25 No ❌ Lenovo USB-C 1 meter SC10W67433 03X7610
40AC 1.0.25 No ❌ Lenovo TBT3 0.5 meter SC10M59508 03X7134
40AC 1.0.25 No ❌ Lenovo Thunderbolt 4 0.7 meter SC10W36459 5C10V25721
@YoSoyPhil
YoSoyPhil / autoexec.cfg
Created December 9, 2019 08:31
CSGO autoexec
//NET
//Rate Settings
rate "786432"
cl_cmdrate "128"
cl_updaterate "128"
//FPS
fps_max 0
cl_showhelp "0"
cl_hud_healthammo_style "0"
hud_showtargetid "0"
cl_hud_playercount_pos "0"
cl_hud_radar_scale "1.15"
cl_hud_playercount_showcount "1"
cl_hud_color "8"
cl_hud_background_alpha "0.5"
cl_hud_bomb_under_radar "1"
cl_crosshairdot "0"
@YoSoyPhil
YoSoyPhil / install.sh
Created February 17, 2019 18:35
php73 on CentOS 7
sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install epel-release yum-utils
sudo yum-config-manager --disable remi-php54
sudo yum-config-manager --enable remi-php73
sudo yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json
php -v
@YoSoyPhil
YoSoyPhil / plex-updater.sh
Last active February 5, 2019 08:33
For updating Plex on CentOS 7
#!/bin/bash
PLEX_TOKEN="$1"
PLEX_URL="https://plex.tv/downloads/latest/ \
1?channel=8 \
&build=linux-ubuntu-x86_64 \
&distro=redhat \
&X-Plex-Token"
PLEX_FILE=/tmp/plexmediaserver.rpm
wget -O $PLEX_FILE "$PLEX_URL=$PLEX_TOKEN"
@YoSoyPhil
YoSoyPhil / PowerShell-Linux-flavor.ps1
Last active January 30, 2019 08:38
Turn PowerShell into a Linux like Bash Shell appearence
Import-Module PSReadLine
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Set-PSReadlineOption -BellStyle Visual
set-alias dc docker-compose
function prompt {
$p = Split-Path -leaf -path (Get-Location)
$u = $env:UserName
$h = $env:ComputerName
"$u `@ $h \ $p >"
@YoSoyPhil
YoSoyPhil / cronjob.root
Last active July 24, 2024 12:44
Install CSGO server (with Soucemod, mmsource and PugSetup) on CentOS 7
50 6 * * * /usr/bin/systemctl stop csgo-USERNAME >/dev/null 2>&1
30 7 * * * /usr/bin/systemctl start csgo-USERNAME >/dev/null 2>&1