Skip to content

Instantly share code, notes, and snippets.

🚀
to 🪐

Lukas Jocham lukasjoc

🚀
to 🪐
Block or report user

Report or block lukasjoc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lukasjoc
lukasjoc / ibooks_location.txt
Created May 19, 2020
Where the f***ck are my Ibooks?
View ibooks_location.txt
Here:
$HOME/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books
Create a simlink in $HOME and your done
ln -s $HOME/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books books
@lukasjoc
lukasjoc / join_frames_on_mssing_data.py
Last active Apr 21, 2020
get deltas from other frame and keep incoming frame
View join_frames_on_mssing_data.py
import pandas as pd
db_data = [
{"id": 1, "name": "Luads", "number": "000000000000", "number_active": 1},
{"id": 2, "name": "Luads", "number": "000000000000", "number_active": 1},
{"id": 3, "name": "Luads", "number": "000000000000", "number_active": 1},
{"id": 4, "name": "Lukas", "number": "000000000000", "number_active": 1},
{"id": 5, "name": "Luisd", "number": "000000000000", "number_active": 1},
{"id": 6, "name": "Jocham", "number":"000000000000", "number_active": 1},
]
@lukasjoc
lukasjoc / get_delta.py
Created Apr 20, 2020
Get delta of 2 data frames in python and pandas
View get_delta.py
import pandas as pd
# Test to get the delta of 2 dataframes
if __name__ == "__main__":
json = [{"name":"Lukas", "lastname": "jocham"}]
json1 = [{"name":"Lukas", "lastname": "jocham"}]
data = pd.json_normalize(json)
data1 = pd.json_normalize(json1)
print(data)
@lukasjoc
lukasjoc / ARCH_FIX_INTERNET.md
Last active Mar 11, 2020
How to fix internet on arch vm when dhcp is not installed
View ARCH_FIX_INTERNET.md

STEPS:

1. networkctl
2. Create new wired.network in /etc/systemd/network/
3. Paste in file content below
4. su - root
5. rm /etc/resolv.conf
6. systemctl enable systemd-networkd
7. systemctl enable systemd-resolved
8. systemctl start systemd-networkd
You can’t perform that action at this time.