Skip to content

Instantly share code, notes, and snippets.

View wildiney's full-sized avatar
👋

Wildiney Di Masi wildiney

👋
View GitHub Profile
<?php
chdir('/home/wildi013/symfony4');
if(getcwd()=="/home/wildi013/symfony4"){
exec('php bin/console cache:clear',$v, $o);
echo $v;
echo $o;
} else {
echo "Error (D13)";
}
@wildiney
wildiney / pm2-commands
Created April 17, 2022 22:41
PM2 Basic Usage
# NextJS
pm2 start yarn --name "nextjs" --interpreter bash -- start
// Ensure the folder exists for the mount target (e.g. /mnt/m)
// Open /etc/fstab and add a line such as the following:
M: /mnt/m drvfs defaults 0 0
// Reload the fstab file with sudo mount -a
sudo mount -t drvfs W: /mnt/w
@wildiney
wildiney / blenderRender.bat
Created November 17, 2021 19:05
Blender Render
absolute_path_to_blender.exe -b absolute_path_to_file.blend -f 1
-f frame number
-s 1 -e 25 [start and ending frame]
// Bold
{
"key":"ctrl+b",
"scope":"html",
"command":"editor.action.insertSnippet",
"when":"editorTextFocus && editorLangId == 'html'",
"args":{
"snippet":"<strong>$TM_SELECTED_TEXT</strong>$0"
}
}
dateparse = lambda dates: pd.datetime.strptime(dates, '%Y-%m')
dataset = pd.read_csv('{}arquivo.csv'.format(path), parse_dates = ['Month'], index_col = 'Month', date_parser = dateparse)
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
scaler_base = scaler.fit_transform(base)
button {
--h: 100;
--s: 50%;
--l: 50%;
--a: 1;
background: hsl(var(--h) var(--s) var(--l) / var(--a));
}
button:hover { /* Change the lightness on hover */
--l: 75%;
@wildiney
wildiney / youtube-subscribe
Created January 3, 2021 14:26
Youtube Subscribe
https://www.youtube.com/c/Channel?sub_confirmation=1