This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String filename(String val) | |
{ | |
String my_dir = "d:\\user temp\\20211204\\"; | |
String my_file = DateTime.Now.ToString("hhmmss") + ".jpg"; | |
return (my_dir + val + my_file); | |
} | |
Size screen_size = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); | |
Size window_size = this.Size; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; | |
namespace WindowsFormsApp1 | |
{ | |
internal class Capture | |
{ | |
[StructLayout(LayoutKind.Sequential)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
namespace OnePushSnap | |
{ | |
internal class KeyHook | |
{ | |
delegate int delegateHookCallback(int nCode, IntPtr wParam, IntPtr lParam); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$parent_folder = drive = "d:\" + Get-Date -UFormat %y | |
$daily_folder = Get-Date -UFormat %m%d | |
$path = $parent_Frive + $parent_folder + $daily_folder | |
New-Item -Path $path -ItemType Directory -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch testDay00 | |
chmod u=r,go=rx testDay00 | |
dd if=/dev/zero of=testDay00 bs=1c count=40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir test0 | |
dd if=/dev/zero of=test1 bs=1c count=4 | |
chmod u=rwx,g=x,o=r test1 | |
mkdir test2 | |
chmod u=rx,g=,o=r test2 | |
dd if=/dev/zero of=test3 bs=1c count=1 | |
chmod u=r,g=,o=r test3 | |
dd if=/dev/zero of=test4 bs=1c count=2 | |
chmod u=rw,g=r,o=x test4 | |
ln test3 test5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -m --time=ctime -F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'Z' > z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch b sw.diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . \(-path "*~" -a -name "#*" -o -name "*#"\) -print -delete | |
find . \(-name "*~" -o -name "#*" -o -name "*#"\) -print -delete |