Skip to content

Instantly share code, notes, and snippets.

View netplayer's full-sized avatar
🏠
Working from home

NetPlayer netplayer

🏠
Working from home
View GitHub Profile
@netplayer
netplayer / port.md
Created September 17, 2023 19:46
Find specific port status

netstat -ltp |grep portNo

@netplayer
netplayer / root server
Created September 4, 2023 11:32
fresh debian server install permission denied (public key)
First, check to see if you can find out why you can't connect. This command will tell you everything that SSH is trying to do and trying to check when accessing your Linode:
$ ssh -vvv account@your-ip
Then, you can try logging into your Linode with the following SSH command:
$ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no account@your-ip
@netplayer
netplayer / unmanaged_network.txt
Last active August 26, 2023 12:03
unmanaged network solved ubuntu 20.04
As root, edit /etc/NetworkManager/NetworkManager.conf to match the following. You can use the command sudo nano /etc/NetworkManager/NetworkManager.conf to do so.
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except:type:cdma,except:type:wwan,except:type:ethernet,except:type:vlan
@netplayer
netplayer / mysql.md
Last active January 5, 2023 21:36
Change charset mysql database

sed -i 's/utf8mb4_0900_ai_ci/utf8_general_ci/g' backup.sql sed -i 's/CHARSET=utf8mb4/CHARSET=utf8/g' backup.sql

@netplayer
netplayer / test.py
Created November 22, 2022 22:29 — forked from christianroman/test.py
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
import cv2.cv as cv
import tesseract
gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE)
cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY)
api = tesseract.TessBaseAPI()
api.Init(".","eng",tesseract.OEM_DEFAULT)
api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz")
api.SetPageSegMode(tesseract.PSM_SINGLE_WORD)
tesseract.SetCvImage(gray,api)
print api.GetUTF8Text()
scp -P 22 file.txt remote_username@10.10.0.2:/remote/directory
(first is source file )
@netplayer
netplayer / Linux _input _fix.md
Last active August 28, 2022 19:09
Linux input fix
alter user 'myuser'@'localhost' identified with mysql_native_password by 'mypassword';
@netplayer
netplayer / Flutter Row
Last active January 17, 2022 02:25
Created with Copy to Gist
Row(
children: <Widget>[
Text('Title'),
Text(Next title'),
]
)
flutter clean
flutter packages get
@netplayer
netplayer / gist:7c7e54cab4c3da8621bcd9394d50a038
Last active January 9, 2022 22:27
Apache proxy for node
<VirtualHost *:80>
ServerName example.com
ProxyPreserveHost On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
By https://tecadmin.net/apache-frontend-proxy-nodejs/