This file contains 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
$dark-blue = #495057 // This is a dark blue. Instead of having black text, this blue is more pleasing and easier on the eyes | |
$apple-red = #BD1E2E // Red used by Apple for their Apple (PRODUCT)RED™ products | |
$ddg-red = #E0572A // Red used by DuckDuckGo | |
$ddg-yellow = #FED400 // Yellow used by DuckDuckGo | |
$ddg-green = #62BE3E // Green used by DuckDuckGo |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Pure Theme v1.0.0 | |
# | |
# Copyright 2018, All rights reserved | |
# | |
# Code licensed under the MIT license | |
# | |
# @author Anthony Da Mota | |
--> |
I suspect Filevault from slowering everything btw.
Set to 3 days (259,200 seconds), but I guess you can totally disable it by setting it to 0:
pmset -a autopoweroffdelay 259200
If you want to bind the port 19999 (netdata default port for instance) to port 12345:
ssh -N -L 12345:localhost:19999 $SSH_USER@$SSH_IP -p $SSH_PORT
If you need to execute it in background, simply add the -f flag:
ssh -fN -L 12345:localhost:19999 $SSH_USER@$SSH_IP -p $SSH_PORT
then kill it with kill -9 $PID
This file contains 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
.tab-throbber[busy]::before { | |
background-image: url("chrome://global/skin/icons/loading.png") !important; | |
animation: none !important; | |
} | |
.tab-throbber[busy]:not([progress])::before { | |
/* Grays the blue during "Connecting" state */ | |
filter: grayscale(100%); | |
} |
This file contains 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
xcrun simctl io booted recordVideo filename.mov |
This file contains 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
if #available(iOS 11.0, *) { | |
if (UIApplication.shared.keyWindow?.safeAreaInsets != UIEdgeInsets.zero) { | |
print("I am an iPhone X") | |
} | |
} |
This file contains 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
import pandas as pd | |
input_file = "input.csv" | |
output_file = "output_find.csv" | |
sep = ";" | |
df = pd.DataFrame.from_csv(input_file, sep=sep) | |
column1 = df['one'] > 123 | |
column2 = df['two'] == "something" |
This file contains 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
import pandas as pd | |
input_file = "input.csv" | |
output_file = "output.csv" | |
sep = ";" | |
columns = ["column1", "column2", "anotherone"] | |
df = pd.DataFrame.from_csv(input_file, sep=sep) | |
df.drop(df[columns], axis=1, inplace=True) | |
df.to_csv(output_file, sep=sep) |