Skip to content

Instantly share code, notes, and snippets.

View lordidiot's full-sized avatar
🐋

lordidiot

🐋
View GitHub Profile
@geriskenderi
geriskenderi / export_conda_pip_env.sh
Last active August 19, 2024 03:54
Export a Python environment that has packages installed with conda and pip
# Extract installed pip packages, export conda environment without builds, and then append pip packages
pip_packages=$(conda env export | grep -A9999 ".*- pip:" | grep -v "^prefix: ") && conda env export --from-history | grep -v "^prefix: " > environment.yml && echo "$pip_packages" >> environment.yml
@jetfir3
jetfir3 / tmpdevmodify.sh
Last active September 3, 2024 19:10
Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
#!/usr/bin/env bash
# Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
showHelp () {
echo -e \
"Usage: ./tmpdevmodify.sh [option]\n
Options:
-c, --clearcache Clear Spotify app cache
-d, --debug Add Debug Tools to user dropdown menu
@peternguyen93
peternguyen93 / using_rosetta2_archlinux_arm64_m1.md
Last active June 17, 2024 11:49
Using Rosetta2 in Docker on ArchLinux VM Apple Silicon

Using Rosetta2 in Docker on ArchLinux arm64 - Apple M1

  1. Start vm with tart
tart run archlinux --no-graphics --dir=shared:~/Sources --rosetta=ROSETTA
  1. mount rosetta to Linux
sudo mkdir -p /mnt/rosetta
sudo mount -t virtiofs ROSETTA /mnt/rosetta
@Atari2
Atari2 / lsnes_build.sh
Last active May 8, 2024 10:33
lsnes build script
# dependencies I had to install:
# sudo apt install libgcrypt20-dev
# sudo apt install portaudio19-dev
# sudo apt install libwxgtk3.0-gtk3-dev
# sudo apt install libswscale-dev
# keep in mind you also need lua, boost and curl-config
# which can be installed with:
# sudo apt-get install lua5.4
# sudo apt-get install liblua5.4-dev
@0xKira
0xKira / README.md
Created July 6, 2021 13:10
Solution for 0CTF/TCTF 2021 Quals uc series
Dear fellow reverser,
I'm creating this Gist in the hopes that it will be indexed and that people who look up this value: 0xE7791F700 will end up here.
62135596800 is the number of seconds that separate the Go Epoch from the Unix epoch. You're probably looking at an inlined call like `time.Now().Unix()`.
Cheers,
@JusticeRage
@gwerbin
gwerbin / conda_env_export.py
Last active August 28, 2024 12:13
Export a Conda environment with --from-history, but also append Pip-installed dependencies
"""
Export a Conda environment with --from-history, but also append
Pip-installed dependencies
Exports only manually-installed dependencies, excluding build versions, but
including Pip-installed dependencies.
Lots of issues requesting this functionality in the Conda issue tracker,
e.g. https://github.com/conda/conda/issues/9628
@icecr4ck
icecr4ck / idapython_cheatsheet.md
Last active September 4, 2024 16:25
Cheatsheet for IDAPython
1. Download latest apktool version.
2. Download the batch file and aapt.exe.
3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder.
4. Open command prompt.
5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe.
6. Now, you need to install the file using the " IF " command.
7. Type the following command.
apktool if name-of-the-app.apk
@tzmartin
tzmartin / embedded-file-viewer.md
Last active September 17, 2024 05:29
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links