Skip to content

Instantly share code, notes, and snippets.

View deanet's full-sized avatar
:octocat:
talk is cheap, show me the code

deanetdavid deanet

:octocat:
talk is cheap, show me the code
View GitHub Profile
@deanet
deanet / google.sh
Created August 22, 2012 16:09
Uploading File into Google Drive (because grive too many dependencies qt, xorg ? )
#!/bin/bash
## uploading to google
## rev: 22 Aug 2012 16:07
det=`date +%F`
browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1"
username="user@domain-apps.com"
password="password"
accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE
@deanet
deanet / remove-malware.sh
Created December 8, 2011 09:26
mass remove malware
root@mercury [~/malware/maulana]# cat head.sh
#!/bin/sh
find /home/paketseo/www/ -exec grep -iH turnitupnow.net {} \; > list.txt
cat list.txt | while read line;
do
b=$(dirname $line);
/***********************************************************************
Mini Clock v1.0, Jul 2014 by Nick Hall
Distributed under the terms of the GPL.
For help on how to build the clock see my blog:
http://123led.wordpress.com/
Tested on IDE v1.6.6
-----
@deanet
deanet / prdsnhlife.conf
Created September 5, 2023 06:55
prdsnhlife
[prodm]
listen = /dev/shm/php-cgi-prodm.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = prodm
listen.group = prodm
listen.mode = 0666
user = prodm
group = prodm
@deanet
deanet / pass.sh
Last active September 5, 2023 04:04
Bash Password Manager with OpenSSL aes-256
#!/bin/bash
trap ctrl_c INT
function ctrl_c() {
echo "** WARNING HIT CTRL^C MAKE LOSS YOUR pass.enc File **"
}
file="pass.txt"
@deanet
deanet / Unix benchmark Game-2
Last active March 24, 2023 08:18
Unix benchmark Game-2
System: hostname: GNU/Linux
OS: GNU/Linux -- 5.15.102-1-pve -- #1 SMP PVE 5.15.102-1 (2023-03-14T13:48Z)
Machine: x86_64 (unknown)
Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
CPU 0: AMD Ryzen 7 5800X 8-Core Processor (7599.7 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 1: AMD Ryzen 7 5800X 8-Core Processor (7599.7 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 2: AMD Ryzen 7 5800X 8-Core Processor (7599.7 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
@deanet
deanet / gauth.sh
Last active September 18, 2022 02:38
2FA OTP Tools Bash Shell Scripts
#!/usr/local/bin/bash
#simply 2fa tools cli interface
## run with gnu watch -n 1 to get updates otp
## watch -n 1 /usr/local/bin/gauth.sh
##Every 1.0s: /usr/local/bin/gauth.sh whitebsd: Sat Feb 6 19:27:36 2021
# 19:27:36
#
# Google : 141325
@deanet
deanet / How to configure multiple modem PlaySMS Gammu
Created September 15, 2016 06:54
How to configure multiple modem PlaySMS Gammu
How to configure multiple modem PlaySMS Gammu. These are ways to works with outgoing sms (sent reports) and incoming sms (inbox reports) with multiple modem on PlaySMS.
@deanet
deanet / 0.readme
Created August 14, 2011 09:29
MySQL-HAProxy
readme
@deanet
deanet / unix-benchmark-aliyun-simple-as
Created November 27, 2021 08:01
simple-as-2vcore-1GB-ram
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: iZk1a9fyrlzo1y8y8565ofZ: GNU/Linux
OS: GNU/Linux -- 3.10.0-957.21.3.el7.x86_64 -- #1 SMP Tue Jun 18 16:35:19 UTC 2019
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz (5000.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz (5000.0 bogomips)