https://docs.github.com/en/graphql/overview/explorer
{ viewer { repositoriesContributedTo(first: 100, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { totalCount nodes { nameWithOwner } } } }
https://docs.github.com/en/graphql/overview/explorer
{ viewer { repositoriesContributedTo(first: 100, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { totalCount nodes { nameWithOwner } } } }
My LAN interfaces are ens3/ens8/ens9.
VPN tunnel set up using openvpn, gets dev tun0.
NFTables config file /etc/nftables.conf (do not forget to enable the nftables services):
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
ct state {established, related} accept
ct state invalid drop
iifname lo accept
iifname ens3 accept
iifname ens8 accept
iifname ens9 accept
ip protocol icmp accept
tcp dport 22 accept comment "SSH in"
tcp dport 80 accept comment "HTTP in"
tcp dport 443 accept comment "HTTPS in"
reject
}
chain forward {
type filter hook forward priority 0;
oifname tun0 accept
iifname tun0 ct state related, established accept
iifname tun0 drop
}
chain output {
type filter hook output priority 0;
}
}
table ip nat {
chain prerouting {
type nat hook prerouting priority 0;
}
chain postrouting {
type nat hook postrouting priority 0;
oifname tun0 masquerade
}
}
Today my guacamole broke.
Fixed by putting in guacd settings in the connection settings in guacamole itself. Had to explicitly add ::1
and port 4822
(in my case).
vgscan
vgchange -ay srv25centos
mount /dev/mapper/srv25centos-root /mnt/srv25
ansible srv46.karloluiten.nl -m ansible.builtin.setup
rpm -qa –qf “%{NAME}\n”
losetup -f -P root.img
osetup -l
mount -o ro /dev/loop* /mnt/
perl -pi -e ‘chomp if eof’ macaroon
newline remove
Test-NetConnection -Port 80 -InformationLevel "Detailed" -ComputerName example.com
ip.src == 10.1.72.1 and tcp.port == 12228
=TRIM(RIGHT(SUBSTITUTE(A1;” “;REPT(” “;LEN(A1)));LEN(A1)))
sudo -i
mount -o loop /tmp/*77*.iso /mnt
cat > /etc/yum.repos.d/cd.repo
[cd]
name=cd
baseurl=file:///mnt/
enabled=1
gpgcheck=0
#[PRESS enter and CTRL-d]
yum clean all; rm -rf rm -rf /var/cache/yum; yum makecache fast
yum -y update --skip-broken
yum update
yum erase *devel
yum update kernel redhat-release
umount /mnt
rm -i /etc/yum.repos.d/cd.repo /tmp/*iso
cat /etc/redhat-release
reboot
Fix:
edit
/var/www/html/admin/scripts/pi-hole/php/auth.php
add your host names to
AUTHORIZED_HOSTNAMES
array
mount -m > /usr/bin/mountCommands.bat
# not sure if we really need thisC:\Users\Public\Desktop
)"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cygwin\Cygwin64 Terminal.lnk"
]HLM\system\CurrentControlSet\services\sshd and \cron and \syslog-ng
change paths (for all services, do cygrunsrv -L
)cygrunsrv --stop sshd; cygrunsrv --remove sshd; cygrunsrv --install sshd --path /usr/sbin/sshd
ubnt@er4gw:~$ configure
[edit]
ubnt@er4gw# set system login user ubnt authentication public-keys lb7 type ssh-rsa
[edit]
ubnt@er4gw# set system login user ubnt authentication public-keys lb7 key AAAA****3tfv0vaEUl
ubnt@er4gw# commit
ubnt@er4gw# exit
Warning: configuration changes have not been saved.
ubnt@er4gw:~$ cd .ssh
ubnt@er4gw:~/.ssh$ cat au*
# Automatically generated by Vyatta configuration
# Do not edit, all changes will be lost
ssh-rsa AAAA****3tfv0vaEUl lb7
ubnt@er4gw:~/.ssh$ configure
[edit]
ubnt@er4gw# save
for m4b in *.m4b; do ffmpeg -i $m4b -acodec libmp3lame -ar 22050 ${m4b}.mp3; done
find . -depth -name '* *' \
| while IFS= read -r f ; do mv -i "$f" "$(dirname "$f")/$(basename "$f"|tr ' ' _)" ; done
awk ‘{ if (length($0) > max) {max = length($0); maxline = $0} } END { print maxline }’ YOURFILE
Regedit, find:
Outlook 2007
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security]
Outlook 2010
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security]
Outlook 2013
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Security]
Outlook 2016, Outlook 2019 and Office 365
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security]
Level1Remove string
Value .cer;.exe;.xxx for the stuff you want to unblock.
Use ~? instead of ?
Do not install as root, or use –unsafe-perm
First get handle: https://docs.microsoft.com/en-us/sysinternals/downloads/handle
Run handle once without searching for anything, to accept license.
Run in a CMD AS ADMIN: handle64.exe > output.txt . Find the file you want. Then scroll up to header to see what proc is taking it.
Sometimes your swap is not large enough
[root@server ~]# free -g
total used free shared buff/cache available
Mem: 23 3 13 0 7 19
Swap: 1 0 1
[root@server ~]# grep swap /etc/fstab
/dev/mapper/vg00-swapvol swap swap defaults 0 0
[root@server ~]# swapoff /dev/mapper/vg00-swapvol
[root@server ~]# lvextend -L10g $_
Size of logical volume vg00/swapvol changed from 2.00 GiB (16 extents) to 10.00 GiB (80 extents).
Logical volume vg00/swapvol successfully resized.
[root@server ~]# mkswap $_
mkswap: /dev/mapper/vg00-swapvol: warning: wiping old swap signature.
Setting up swapspace version 1, size = 10485756 KiB
no label, UUID=xxx
[root@server ~]# swapon $_
[root@server ~]# free -g
total used free shared buff/cache available
Mem: 23 3 13 0 7 19
Swap: 9 0 9
Get firmware from support site. Then update via “C:\Program Files (x86)\Jabra\SDKFirmwareUpdater\JabraFwUpdater.exe”
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
Add above in tmux.conf. Then do Prefix+Shift+P
python -c ‘import pty; pty.spawn(“/bin/bash”)’
yay python
=TRIM(RIGHT(SUBSTITUTE(B5,CHAR(10),REPT(” “;200));200))
Especially useful for project trackers. Add a LEFT(XXX;10) for returning dates.
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git pull upstream master
create user ‘nextcloud’@’localhost’ identified by ‘xxx’;
create database nextcloud;
grant all privileges on nextcloud.* to ‘nextcloud’@’localhost’ identified by ‘xxx’;
FLUSH PRIVILEGES;
Since we have no icmp/ping over proxychains, we have to change syntax a bit
~/svn/proxychains-ng/proxychains4 -f ~/proxychains.conf ~/svn/AutoRecon/autorecon.py –nmap ‘\-sT \-Pn’ 10.1.1.{1,224,235,246,248}