Skip to content

Instantly share code, notes, and snippets.

View seksitha's full-sized avatar
🎯
Focusing

Sitha Sek seksitha

🎯
Focusing
View GitHub Profile
-- Todo : breakpoint continue and
-- : go to specific point
-- : stop and spray first then go circle
-- : edit guided mode to change alt base on point throttle
-- : guided mode takeout surface track and use radar alt direct
-- : radar alt measured from the top of the tree
-- Edit these variables
@seksitha
seksitha / git-ssh-auth-win-setup.md
Last active May 13, 2022 04:05 — forked from bsara/git-ssh-auth-win-setup.md
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@seksitha
seksitha / settting.json
Last active May 4, 2020 00:22
personal vscode user setting
{
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.metatdata.json": true,
"**/*.js.map": { "when": "$(basename)"},
"**/*.js": { "when": "$(basename).ts"}
//"**/*.html": { "when": "$(basename).pug"}
},
"window.zoomLevel": -0.8,
@seksitha
seksitha / apache2.conf
Created March 22, 2020 13:37
apache2.conf for ubuntu fresh install
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@seksitha
seksitha / mysql_secure.sh
Created February 22, 2020 12:51 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@seksitha
seksitha / index.html
Created February 12, 2020 07:56 — forked from mcxiaoke/index.html
detect app installed in browser
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
addDetail: (values, _, props) => {
//this syntax need to comply with redux form submit
console.log({ values });
const { saleType, saleDetail, products } = props;
if (!values.barcode) {
window.aLert("no barcode");
return { type: null };
}
// if you put only 3 digits nothing will match
// group capture with use question mark at the end capture to make it optional otherwise
// '@media only screen and (min-width: 600px)': { // apply only width bigger than 600
// span: {
// display: 'none',
// },
// card: {
// maxWidth: "48%",
// marginRight:10,
// marginTop:15,
// },
// },
#Crontab -e
57 07 * * 1-5 python /home/pi/Documents/py_ball.py
55 08 * * 1-5 python /home/pi/Documents/py_ball.py
02 09 * * 1-5 python /home/pi/Documents/py_ball.py
00 10 * * 1-5 python /home/pi/Documents/py_ball.py
02 10 * * 1-5 python /home/pi/Documents/py_ball.py
00 11 * * 1-5 python /home/pi/Documents/py_ball.py
45 11 * * 1-5 python /home/pi/Documents/py_ball.py
35 12 * * 1-5 python /home/pi/Documents/py_ball.py