- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
Discover gists
$ aws --region=ap-northeast-2 ec2 describe-spot-price-history --instance-types c4.large --start-time=$(date +%s) --product-descriptions="Linux/UNIX" --query 'SpotPriceHistory[*].{az:AvailabilityZone, price:SpotPrice}'
[
{
"price": "0.024900",
"az": "ap-northeast-2a"
},
{
How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows:
- Hold the Windows key and press X, select PowerShell (Admin), select Yes to the pop-up. You can also use Command Prompt.
- In the Powershell interface type
diskpart
to enter the disk partition tool. - Type
list disk
to see all disks listed. - Select the USB drive by typing
select disk [NUMBER]
. Be careful to select the correct drive. - Type
clean
. An error will occur if you have the drive folder open, close the window and repeat the command if this happens. - Type
create partition primary
. - Type
format fs=ntfs quick
to format the drive (you can also choose to setfs=fat32
). - Type
active
.
#import <Foundation/Foundation.h> | |
#import <pthread.h> | |
#import <stdatomic.h> | |
@interface AHDeadlockDetector () | |
/** | |
* The current detection thread, if one is running. We store this weakly because | |
* if the thread has exited, why keep it around? In practice however, we nil |
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.
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.
# -*- coding: utf-8 -*- | |
"""Example Google style docstrings. | |
This module demonstrates documentation as specified by the `Google Python | |
Style Guide`_. Docstrings may extend over multiple lines. Sections are created | |
with a section header and a colon followed by a block of indented text. | |
Example: | |
Examples can be given using either the ``Example`` or ``Examples`` | |
sections. Sections support any reStructuredText formatting, including |
The privacy details that you may need to add for Apple Privacy Manifest.
This config plugin it's already available from expo >=50.0.17 (Part of this PR by aleqsio)
Tip
Read more about Privacy Manifest File from Apple docs
for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.
- open
Terminal
, go to the dir :cd /Applications/Beyond Compare.app/Contents/MacOS
- change the name
BCompare
toBCompare.bak
:mv BCompare BCompare.bak
- touch a file name
BCompare
, andchmod a+ux BCompare
:touch BCompare && chmod a+ux BCompare
- open
BCompare
with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.
Lithium - A mod designed to drastically improve the general performance of Minecraft without breaking things.
VMP - A mod designed to improve general server performance at high playercount.