Skip to content

Instantly share code, notes, and snippets.

View rkennesson's full-sized avatar
:octocat:
I may be slow to respond.

Richard Kennesson rkennesson

:octocat:
I may be slow to respond.
View GitHub Profile

snap cheatsheet

install snap subsystem

dnf install snapd

install a snap

snap install <snap>

find snap

snap find <search>

list installed snaps

snap list

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
@rkennesson
rkennesson / updateJetbrains.sh
Last active April 30, 2020 02:38 — forked from danielcosta/updateJetbrains.sh
Script to update PhpStorm and others Jetbrains products
#!/usr/bin/env bash
VERSION_PATTERN="([0-9]+\.[0-9]+\.[0-9]+)"
case "${1}" in
"phpstorm")
TOOL_NAME="PhpStorm"
INSTALL_DIR="/opt/phpstorm"
case "${2}" in
"eap")
@rkennesson
rkennesson / jb_install_update.sh
Created April 30, 2020 02:37 — forked from zabidok/jb_install_update.sh
Install or update jetbrains products like PhpStorm, WebStorm, IntelliJ Idea, PyCharm, CLion, ReSharper on Ubuntu and fix problems with non latin hotkeys in gui java application
#!/bin/bash
# installation jetbrains
j_url="https://data.services.jetbrains.com/products/download"
tmp_dir="$HOME/tmp_jb"
install_dir="/opt"
if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi
@rkennesson
rkennesson / pycharm.sh
Created April 30, 2020 02:37
PyCharm installation script
# Copyright (c) 2015 Jim Rybarski
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
wsl --set-default-version 2
wsl --list --verbose
@rkennesson
rkennesson / lockdown.md
Created December 27, 2019 16:05
lockdown ubuntu 16.04+
https://github.com/netwayfind/cp-lockdown
https://docs.microsoft.com/en-us/windows/wsl/wsl2-install
https://docs.microsoft.com/en-us/windows/wsl/install-on-server
https://docs.microsoft.com/en-us/windows/wsl/initialize-distro
https://docs.microsoft.com/en-us/windows/wsl/install-manual

yum install xclip

HISTIGNORE=
HISTCONTROL=ignorespace
HISTSIZE='INFINITY'
HISTFILESIZE='INFINITY'
yum install -y epel-release bash-completion
yum install -y podman certbot
yum install -y firewalld
systemctl enable firewalld --now