Skip to content

Instantly share code, notes, and snippets.

View sefinek24's full-sized avatar
😻
i love cats *purr*

Sefinek sefinek24

😻
i love cats *purr*
View GitHub Profile
@Iman
Iman / clean.sh
Last active June 23, 2024 12:46
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
@lot224
lot224 / discordWebHook.cs
Created March 6, 2019 18:33
An very basic example of a Webhook in C# to Discord.
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
namespace discordWebHook
{
class Program
{
private static HttpClient client;
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active July 15, 2024 14:32
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
# Clean log files commands for Ubuntu Server 20.XX
sudo journalctl --rotate
sudo journalctl --vacuum-time=10d
sudo apt clean && sudo apt autoclean
sudo apt remove --purge -y software-properties-common
sudo rm -rf /var/log/user.log
sudo rm -rf /var/log/syslog
sudo rm -rf /var/log/messages
sudo apt-get clean