Skip to content

Instantly share code, notes, and snippets.

View miqm's full-sized avatar

Mikolaj Mackowiak miqm

View GitHub Profile
@miqm
miqm / raspberry.md
Last active September 6, 2023 18:42
Setups

Remove UI

sudo apt purge xserver* lightdm* raspberrypi-ui-mods vlc* lxde* chromium* desktop* gnome* gstreamer* gtk* hicolor-icon-theme* lx* mesa* cups* wpasupplicant pulseaudio*
sudo apt autoremove

extend swap

  1. sudo vi /etc/dphys-swapfile
  2. CONF_SWAPSIZE=1024
[
{
"key": "ctrl+shift+b",
"command": "workbench.action.tasks.build"
},
{
"key": "ctrl+b",
"command": "workbench.debug.viewlet.action.addFunctionBreakpointAction"
},
{
@miqm
miqm / !VisualStudio.md
Last active March 3, 2019 17:20
Visual Studio settings

Visual Studio useful settings

@miqm
miqm / display-off-timeout.md
Last active January 3, 2019 12:31
Add "Console lock display off timeout" to Advanced Power Settings

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7

Attributes DWORD:

  • 1 = Hide "Console lock display off timeout"
  • 2 = Show "Console lock display off timeout"
@miqm
miqm / Clean-update.md
Last active January 28, 2020 08:28
Windows 10
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Ren C:\Windows\System32\catroot2 Catroot2.old
net start wuauserv
net start cryptSvc
net start bits

net start msiserver

@miqm
miqm / setup.md
Created May 1, 2018 12:26
VPN L2TP/IPSec

Network config

Server IP: 192.168.1.200

GW IP: 192.168.1.1

VPN IP pool: 192.168.0.128/26

Forward UDP port 500 and UDP port 4500

setup

@miqm
miqm / userDefineLang_Dockerfile.xml
Last active May 28, 2020 22:59 — forked from centic9/userDefineLang_Dockerfile.xml
notepad++ syntax highlighting for Dockerfiles
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@miqm
miqm / bronze_cards.sh
Created December 30, 2017 10:47
Android Star Wars Heroes
while :; do adb shell input tap 1550 1030 && sleep 1 && adb shell input tap 1250 1030 && sleep 1; done