Skip to content

Instantly share code, notes, and snippets.

pdl-idler CHANGELOG
[version 0.9025]
+ remove xorg/xvfb display server pid mark and deduce by display id instead
+ simplify display driver detection in status and cache hl2_pid gather
+ remove inotifywait dependancy and use wineserver -w instead in registry prep
+ only check for defunct hl2 pids on startup and organize clutch deletions
+ move hl2 pid check from disconnect() to before the action is started
+ simplify killing of hl2 in stop, and preserve files in logout with $debug
+ increase sourceirc msg delay to 2 seconds and always compile pdl-idler.sp
@mikesimons
mikesimons / ssh-test.sh
Created April 7, 2016 10:53
Script for testing access to a single ssh host.Loop with something like: cat ~/my-hosts | xargs -I X bash -c 'echo -n "X: " && ssh-test.sh myusername@X'
#!/bin/bash
main() {
declare host="$1"
ssh -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -oBatchMode=yes -oConnectTimeout=5 -vvv $host -- exit > /tmp/sshtest 2>&1
if [[ $? == 0 ]]; then
echo "OK"
exit
fi
@yafey
yafey / ORACLE中表死锁的处理
Last active March 10, 2022 04:01
Oracle 常见问题
ORACLE中表死锁的处理
2010-01-11 10:27:25
标签:ORACLE 中表 死锁
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://tianzt.blog.51cto.com/459544/263195
在进行数据库管理的过程中,经常会出现数据表被用户的一些不合理操作而导致表被锁定的情况,以下主要介绍如何查找哪些表被哪个用户所锁定,以及如何解除锁定:
1.查找被锁定的表:
select object_name,session_id,os_user_name,oracle_username,process,locked_mode,status
from v$locked_object l, all_objects a
where l.object_id=a.object_id;
@luchillo17
luchillo17 / .bash_profile
Last active March 15, 2022 11:55
Docker issue files
#!/bin/bash
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
@marxspawn
marxspawn / sshFile.sh
Last active September 22, 2023 04:06
SCP SSH Bash script to place to/from files in correct folder
#!/bin/bash
######################################################################
##### SSH Bash Script to send/recieve files #####
##### Created By: Raymond Anderson #####
######################################################################
clear