Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
cd ~/.config/JetBrains/PyCharm2021.1
rm eval/PyCharm211.evaluation.key
sed -i '/evlsprt/d' options/other.xml
cd ~/.java/.userPrefs/jetbrains
rm -rf pycharm*
rm -rf ~/.local/share/JetBrains/consentOptions
@hoaivan
hoaivan / ubuntu-hardening.md
Created July 14, 2021 01:15 — forked from lokhman/ubuntu-hardening.md
List of things for hardening Ubuntu

WARNING

May contain out of date information. Check the comments below!

The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

@hoaivan
hoaivan / php-mssql-backup.php
Created July 1, 2021 05:58 — forked from vibbow/php-mssql-backup.php
PHP MSSQL 备份脚本
<?php
define('MSSQL_HOST', '127.0.0.1');
define('MSSQL_USER', '[USERNAME]');
define('MSSQL_PASS', '[PASSWORD]');
define('BACKUP_TEMP_DIR', 'd:\\mssql_backup\\tmp\\');
define('BACKUP_DIR', 'd:\\mssql_backup\\');
$start_time = time();
@hoaivan
hoaivan / wsl2-network.ps1
Created October 28, 2020 11:20 — forked from daehahn/wsl2-network.ps1
WSL 2 TCP NETWORK FORWARDING
# Start SSH Service.
wsl sudo service ssh start
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
@hoaivan
hoaivan / reclaimWindows10.ps1
Last active September 9, 2021 06:35 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...