Skip to content

Instantly share code, notes, and snippets.

View artshade's full-sized avatar
...cogito, ergo sum...

Artfaith artshade

...cogito, ergo sum...
View GitHub Profile
@zookee1
zookee1 / tamrieltradecentre.sh
Last active February 21, 2024 16:52
Tamriel Trade Centre Update
#!/bin/bash
REGION="eu" # eu or us
TTC="/mnt/games/SteamLibrary/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/My Documents/Elder Scrolls Online/live/AddOns/TamrielTradeCentre"
ZIP="/tmp/PriceTable.zip"
wget -O $ZIP https://$REGION.tamrieltradecentre.com/download/PriceTable
unzip -o $ZIP -d "$TTC"
@gokulkrishh
gokulkrishh / useful-npx-commands.md
Last active November 24, 2023 04:25
List of useful npx (Node Package Runner) commands (https://git.io/useful-npx-commands)

NPX (NPM Package Runner) Commands

List of useful npx (NPM Package Runner) commands.

What is NPX?

Using NPX we can execute/run node binaries without the need to install it locally or globally.

Commands

@srafay
srafay / fix git password prompt - Windows
Created February 15, 2019 13:46
Disable annoying bitbucket or source tree password prompts on windows
$ git config --global --replace-all credential.interactive false
$ git config --global --replace-all credential.modalPrompt false
$ git config --edit --system
# remove line
helper = manager
# To disable openssh password prompt, add these 2 lines
[core]
@latsku
latsku / powershell-tcp-server.ps1
Last active January 25, 2024 09:10
Powershell TCP server
$endpoint = New-Object System.Net.IPEndPoint ([System.Net.IPAddress]::any, 1600)
$Listener = New-Object System.Net.Sockets.TcpListener $endpoint
$Listener.Start()
$client = $Listener.AcceptTcpClient()
$stream = $client.GetStream()
$stream.Write([text.Encoding]::Ascii.GetBytes("Hello Telnet World"), 0, 18)

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 17, 2024 05:23
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
/* Scrollbar */
/* From Quassel Wiki: http://sprunge.us/iZGB */
QScrollBar {
background: #131313;
margin: 0;
}
QScrollBar:hover {
/* Optional: Subtle accent of scrolling area on hover */
background: #161616; /* base +2 */
}
@ygotthilf
ygotthilf / jwtRS256.sh
Last active May 8, 2024 10:31
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@sylvaincombes
sylvaincombes / my-external-ip.sh
Last active April 22, 2024 07:08
View your external ip from linux / unix shell
# with dig (fastest way)
dig +short myip.opendns.com @resolver1.opendns.com;
# alternative
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}';
######################################################################################################
## Other method with curl / get and 3rd party, this choice is less judicious
######################################################################################################
# with curl
@abtrout
abtrout / pass.md
Created July 8, 2014 14:51
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys