Moved to https://api.fmhy.net
APT (Ubuntu's Advanced Packaging Tool)
# installing a package
sudo apt install zshssh-keygen -t rsa -b 4096 -C "hoang.huy.tran@gmail.com"- Windows PowerShell was built upon .NET and only worked on Windows
- PowerShell Core is open sourced and built on .NET Core 2.x, work on Windows, Linux, macOS, ARM
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
Taken from 2011 Macbook Pro Graphics Card FIX 100% WORKING!!!
EDIT This method works! But there is an improved version for better thermal management and brightness keys functionality. See improved version -> https://gist.github.com/cdleon/d1eff7246a25193304284ecec40445b0
if you are on high sierra 10.13.6+ you might need to use
Command + rinstead
Boot up holding down Command + r + s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "os/exec" | |
| "strconv" | |
| "time" | |
| ) | |
| //determine if the user has been idle for a certain amount of time | |
| func deadTime() bool { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "auto_complete_triggers": | |
| [ | |
| { | |
| "characters": "<", | |
| "selector": "text.html" | |
| }, | |
| { | |
| "characters": ".", | |
| "selector": "source.js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script resizes all the images it finds in a folder (and its subfolders) and resizes them | |
| # The resized image is placed in the /resized folder which will reside in the same directory as the image | |
| # | |
| # Usage: > ./batch_resize.sh | |
| initial_folder="/your/images/folder" # You can use "." to target the folder in which you are running the script for example | |
| resized_folder_name="resized" | |
| all_images=$(find -E $initial_folder -iregex ".*\.(jpg|gif|png|jpeg)") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "Creating an SSH key for you..." | |
| ssh-keygen -t rsa | |
| echo "Please add this public key to Github \n" | |
| echo "https://github.com/account/ssh \n" | |
| read -p "Press [Enter] key after this..." | |
| echo "Installing xcode-stuff" | |
| xcode-select --install |
NewerOlder