Skip to content

Instantly share code, notes, and snippets.

View shionryuu's full-sized avatar
😪
I may be slow to respond.

shionryuu

😪
I may be slow to respond.
View GitHub Profile
@shionryuu
shionryuu / inotify-instructions.md
Last active February 25, 2021 15:27 — forked from tbjgolden/inotify-instructions.md
[Arch Linux] [Manjaro] How to avoid "Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

To avoid this error, we need to increase the inotify watcher limit.

The way to do this is different on Arch based distributions than other Linux distributions.

Instructions for Arch Linux/Manjaro

Check for an already existing inotify config file (recent versions of Manjaro include one)

@shionryuu
shionryuu / merging_via_command_line.md
Created January 24, 2021 03:01
Merging via command line

Merging via command line

If you do not want to use the merge button or an automatic merge cannot be performed, you can perform a manual merge on the command line.

Step 1: From your project repository, bring in the changes and test.

git fetch origin
git checkout -b branch-to-merge origin/branch-to-merge
git merge master
@shionryuu
shionryuu / mongod.conf
Created April 10, 2020 17:04
MongoDB Default Config
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: %MONGO_DATA_PATH%
journal:
enabled: true
@shionryuu
shionryuu / Show Seconds In System Clock.reg
Created December 8, 2019 16:00
Show Seconds In System Clock
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSecondsInSystemClock"=dword:00000001

Keybase proof

I hereby claim:

  • I am shionryuu on github.
  • I am shionryuu (https://keybase.io/shionryuu) on keybase.
  • I have a public key whose fingerprint is F721 FD63 4B7F 20C2 C5FF 94A7 81A8 8B7B 3D91 A054

To claim this, I am signing this object:

@shionryuu
shionryuu / tcp_flags.txt
Created August 21, 2016 03:11 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@shionryuu
shionryuu / xrandr.sh
Last active June 10, 2017 18:36 — forked from debloper/xrandr.sh
Add system unrecognized but monitor supported resolution in X
#!/bin/bash
usage() {
echo "usage:"
echo " $0 HResolution VResolution [RefreshRate] [Display]"
}
[[ -z $1 || -z $2 ]] && {
usage
exit 1
@shionryuu
shionryuu / RSA.md
Created February 21, 2016 11:48
class Object {

Encrypted Question

begin 777 portal.bin
M(R!796QC;VUE#0H-"B,C($ME>0T*#0I24T$@4'5B;&EC($ME>3H@*$XL(#<I
M#0I.(#T@,C,S("H@30T*32!I<R!T:&4@9W)E871E<W0@9F]U<BUD:6=I="!P
M<FEM92!T:&%T(&UA:V5S($X@96YD('=I=&@@,C,S#0H-"B,C($5N8W)Y<'1E
M9"!!=61I="!142!G<F]U<"!N=6UB97(-"@T*5&AE($%U9&ET(%%1(&=R;W5P
@shionryuu
shionryuu / pull_all.sh
Created February 21, 2016 06:54
pull all git repositories in a directory
#!/bin/bash
# pull all git repositories in a directory
pull_repo() {
echo "pulling $1 ..."
if git pull; then # >/dev/null 2>&1
echo -e "pulling $1 succeed\n"
else
echo -e "pulling $1 failed\n"
@shionryuu
shionryuu / KongYiji.md
Last active January 30, 2016 05:04
KongYiji

Encrypted Question

/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AHwAYZdADIYQoTBvOECBqMjLRRdJQ3r
6oAZMOC6zwM42FV8wLfkefIDEEfWMd6CQlPwohNilIX273SELw7/3SV9ILcrKpFR
cGDsNhSUhONprHaB9bu9mV7D6fAN+5A9Pmeb82+khxRbd/f1EFxYFPjj7EuQkP+l
NWJLQTFfqWru7m9wNeZhUWoI44ZUOGkyIuP6iSk0oyslaaRbcM33Cwo7alR+ACui
ZYtBwyHGid8kOynPzqMLJrrSOVwPP5cnvk7/cEvA3wAWyBj6fgzRfHhLdvRZGMVl