Skip to content

Instantly share code, notes, and snippets.

View Deanosim's full-sized avatar
💭
Getting annoyed at code or playing Video Games

Deanosim Deanosim

💭
Getting annoyed at code or playing Video Games
View GitHub Profile
@DavMorr
DavMorr / gist:53e3ad5c26d16f4f6be3220b078b19c9
Last active March 9, 2024 11:43
Include hidden files in tar archive
When you create a tar archive of a directory tree the hidden files are normally not included. Here’s how to include the hidden files.
Say you have a web directory called “/var/www/html/mysite/” that contains the following tree:
.htaccess
index.php
logo.jpg
style.css
admin_dir/.htaccess
admin_dir/includes.php
@TrillCyborg
TrillCyborg / mastodon-docker-setup.md
Last active May 5, 2024 22:42
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@48klocs
48klocs / voltron.txt
Last active October 27, 2021 20:36
48klocs gigant0r #dimwishlists dump file
This file has been truncated, but you can view the full file.
// Mercules' Erentil FR4 breakdown
// https://www.reddit.com/r/DestinyTheGame/comments/cbxao7/massive_breakdown_of_erentil_fr4_including_stats/
// Erentil FR4
dimwishlist:item=3027844941&perks=194952923,3868766766,280464955,1600092898
dimwishlist:item=3027844941&perks=194952922,3868766766,280464955,1600092898
dimwishlist:item=3027844941&perks=194952923,2969185026,280464955,1600092898
dimwishlist:item=3027844941&perks=194952922,2969185026,280464955,1600092898
dimwishlist:item=3027844941&perks=194952923,3868766766,1645158859,1600092898
dimwishlist:item=3027844941&perks=194952922,3868766766,1645158859,1600092898
@gempir
gempir / filters.md
Last active May 31, 2024 09:45
Chatterino Filter Collection
Filter out every user without color (greynames) 2.0
(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
Filter out every user without color (greynames)
!(author.no_color)
@Gladuin
Gladuin / tutorial.md
Last active January 19, 2024 11:04
This is a tutorial on how you can backup and restore your Discord favorite gifs (on windows)

This won't work anymore because Discord moved to cloud storage for the gifs

Backup

  1. Open Discord.
  2. Press CTRL, SHIFT and I on your keyboard at the same time.
  3. In the newly opened window, at the top, click the >> button, and then click on Application.
    Image 1
  4. Once in the Application tab, click the little triangle next to Local Storage, and then click on https://discordapp.com.
    Image 2
@Demiu
Demiu / move_appdata_win10.md
Last active May 23, 2024 11:03
How to properly move AppData in Windows 10

Moving AppData folder on Windows 10

  1. Create a new user with administrator permissions
  2. Sign out of the current user and sign in as the newly created user
  3. Navigate to C:\Users in File Explorer
  4. Click into the account you want move AppData from
    • There could be a popup telling you that you need to allow yourself to access that user's data, do so
  5. Cut the AppData folder
    • If invisible, go to View and check Hidden Items
  6. Paste in the desired location
@usayamadx
usayamadx / ExportKindle.js
Last active March 23, 2024 17:53 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// init
let xhr = new XMLHttpRequest()
let domain = 'https://read.amazon.com/'
let items = []
let csvData = ""
// function
function getItemsList(paginationToken = null) {
let url = domain + 'kindle-library/search?query=&libraryType=BOOKS' + ( paginationToken ? '&paginationToken=' + paginationToken : '' ) + '&sortType=recency&querySize=50'
xhr.open('GET', url, false)
@ExampleWasTaken
ExampleWasTaken / discord_webpack_code_snippets.md
Last active February 22, 2024 18:03
Enable Discord Developer Options and more

DISCLAIMER

I am in no way, shape, or form responsible for any damage caused by the usage of these snippets. You use them at your own risk! I am not related to Discord in any way.

This gist is unmaintained! Feel free to fork it.

What is this?

Using the Chrome dev tools you can do some fun stuff with the Discord client. As they are disabled on the stable version you need to use the canary version which is used to test new features before they get released to the stable version. It's usage is totally legal and within ToS. Discord does not promote it but encourages users to use it to find bugs, etc.

You can download the latest Canary builds here:

@Deanosim
Deanosim / Halo Infinite Login Loop Fix.md
Last active June 27, 2023 13:49
For the Halo Infinite login loop instead of manually deleting each entry (oh which there was many for me) you can just run two powershell commands.

cmdkey /list | ForEach-Object{if($_ -like "*Target:*" -and $_ -like "*Xbl|2096818168*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}

cmdkey /list | ForEach-Object{if($_ -like "*Target:*" -and $_ -like "*Xbl|2043073184*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}

{
"content_type": {
"title": "Nebula Product Page",
"description": "",
"options": {
"is_page": false,
"singleton": true,
"sub_title": [],
"title": "title"
},