View clipboard.py
#!/usr/bin/env python
########################################################################
# created on: 2018-05-01
# description: Excecuted PROCEDURE_NAME SQL statements
# script: PROCEDURE_NAME.py
#
# Usage: procedure_name [--arg1=value1 [--arg2=value3, ...]]
########################################################################
View caffeine.vbs
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
Wscript.Sleep(3000)
objResult = objShell.sendkeys("{SCROLLLOCK}")
Wscript.Sleep(100)
objResult = objShell.sendkeys("{SCROLLLOCK}")
Wscript.Sleep(100)
View SP_logic_check.py
import re
KEYWORD_LIST = [
'UPDATE ',
'DELETE FROM ',
'INSERT INTO ',
'CREATE TABLE ',
'DROP TABLE ',
]
View VDI Recovery checklist.md

Suggest print with scale 150% - 200%

  • DB tools:

    • Netezza
    • DBeaver
      • Import projects
        • Carters
  • Software:

    • Chrome
View service_controller.sh
#!/bin/bash
TARGET_SERVICE=server_status_web
service_start_cmd='/home/pi/run/server_statisic/FlaskApp/server_status_web.py'
usage(){
echo -e "Usage: bash $0 [ start | stop | restart ] "
exit 1
}
start_service(){
View starwars.py
import gc
import machine
# import machine
import time
import network
SSID='Poop'
PWD='cockcock'
# Configure GPIO pins 0 and 2 to be used for
View gist:8ec1efae0880397d1a9643f0edaaa998

libnfc supports UUID writable cards and even has some dedicated tools for them.

However it doesn't work with some of the cards found on eBay that are even simpler to use. Sector 0 is unlocked and can be written without any additional commands. libnfc requires a small patch to get it working.

Following has been tested under ArchLinux with modified libnfc 1.5.1, mfoc 0.10.2 and a SCL3711 dongle.

Patch & recompile libnfc

The patch is fairly simple, open libnfc-1.5.1/utils/nfc-mfclassic.c and comment 2 lines (it was lines 384 and 385 for me):

  // Try to write the trailer
View zip to 7z.bat
for %%F in (*.zip) do ( "C:\Program Files\7-Zip\7z.exe" x -y -o"%%F_tmp" "%%F" * & pushd %%F_tmp & "C:\Program Files\7-Zip\7z.exe" a -y -r -t7z ..\"%%~nF".7z * & popd & rmdir /s /q "%%F_tmp" )
View Linux_hardware_emonitor.sh
#!/bin/bash
#filename seerver_moniter.sh
mem_quota=20
hd_quota=50
cpu_quota=80
# watch memory usage
watch_mem()
View reaver_savings_backup.sh
#!/bin/bash
TIMESTAMP=$(date +%F)
ssh -i /home/pi/.ssh/id_rsa_3072 root@192.168.31.240 <<'ENDSSH'
#commands to run on remote host
rm reaver_backup_*.zip;
zip -r ~/reaver_backup_`date +"%Y%m%d"`.zip /usr/local/etc/reaver;
scp -i /root/.ssh/id_rsa_3072 ~/reaver_backup*.zip pi@192.168.31.179:~/;
exit