Skip to content

Instantly share code, notes, and snippets.

View jacksonporter's full-sized avatar

JP (Jackson Porter) jacksonporter

  • Orem, UT
  • 06:24 (UTC -06:00)
View GitHub Profile
@Brramble
Brramble / wg.py
Created April 24, 2023 19:03
wireguard python API
import requests
import argparse
# Change this to your domain name or IP address of server running wg-easy
base_url = 'http://localhost:51821'
# Make sure to update the password to the password you set for your webgui
def get_session_id(base_url=base_url):
path = base_url + '/api/session'
headers = {'Content-Type': 'application/json'}
@gjreasoner
gjreasoner / README.md
Last active April 25, 2024 01:42
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part
@igricart
igricart / debian_pkg.md
Last active May 8, 2024 16:01
Create a simple debian package

Having a simple debian package out of a Python script

Create a directory to store the debian folder

$ mkdir -p test_folder/DEBIAN

Create a control file inside debian folder

@poguez
poguez / Amazon Photos or Amazon cloud drive.md
Created April 12, 2020 18:22
How to let Amazon Photos / Amazon Cloud Drive use an external drive

How to use an external drive with Amazon Photos or Amazon Cloud Drive

  1. Install the Amazon Photos Amazon Clour Drive application. When it asks you to sync from your cloud to your local, choose any folder in your hard drive.
  2. Then, turn off the the application
  3. Plug your external hard drive in.
  4. In your Finder, go to: /Users/USER_NAME/Library/Application Support/Amazon Cloud Drive
  5. Open file amzn1.account.#########-settings.json with your text editor, you will see somethings like this:
@pmkay
pmkay / top-brew-packages.txt
Last active June 27, 2024 12:16 — forked from r5v9/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@joseluisq
joseluisq / export_vscode_extesions.md
Last active May 6, 2024 01:34
How to export your VS Code extensions from terminal

How to export your VS Code extensions from terminal

Note: Unix-like systems only.

  1. Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
@yangxuan8282
yangxuan8282 / emoji-info.sh
Last active October 14, 2023 07:26
Emoji❤bash
#!/bin/bash
# run this scripts with `bash emoji-info.sh` or `./emoji-info.sh`
usage() {
cat << EOF
usage: $0 [options] <emoji>
Options:
-h Show this message
-o Octal Escape Sequence
@phanviet
phanviet / .editorconfig
Last active January 15, 2024 09:40
editorconfig-rails
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active July 2, 2024 16:16
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@maxim
maxim / gh-dl-release
Last active June 5, 2024 21:11
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#