Skip to content

Instantly share code, notes, and snippets.

View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@turowicz
turowicz / readme.md
Created Oct 19, 2019
Transmit files with Clipboard over RDP
View readme.md

DISCLAIMER: I know this is stupid. Sometimes necessary evil.

  1. Start send.ps1 with full path to the output file.
  2. Start receive.ps2 with full path to input file.
  3. If on a VM, make sure clipboard sharing between host and VM is disabled.
@poerhiza
poerhiza / .bashrc
Created Oct 19, 2019
Things for bashrc
View .bashrc
DISKGUID_1=""
DISKGUID_2=""
BACKUP_DISK_1=/run/media/`whoami`/$DISKGUID_1/
BACKUP_DISK_2=/run/media/`whoami`/$DISKGUID_2/
alias pullphone='adb pull -a /sdcard/DCIM ./'
alias pullphonedownload='adb pull -a /sdcard/Download ./'
alias backupbackup='rsync -r -p -g -o -t -W --delete --force -m -h --progress $BACKUP_DISK_1 $BACKUP_DISK_2'
alias backupfiles='rsync -r -p -g -o -t -W --delete --force -m -h --progress /home/`whoami`/files/ $BACKUP_DISK_1'
alias backup='rsync -r -p -g -o -t -W --force -m -h --progress /home/`whoami`/backup/ $BACKUP_DISK_1'
View gist:626acef4a9393b79fc8b2e43e10f3be8
userID 의 값 = "abc"
useridTr 의 값 = "abc"
==연산자로 비교를 했더니 계속 false가 나오는 것
userID == useridTr -> false
userID.equals(useridTr) -> true
equals -> 내용을 비교
==연산자 -> 주소값을 비교
@bvpatel
bvpatel / run.sh
Created Oct 19, 2019
Java daemon service for init.d
View run.sh
#!/bin/sh
SERVICE_NAME=MyService
PATH_TO_JAR=/usr/local/MyProject/MyJar.jar
PID_PATH_NAME=/tmp/MyService-pid
case $1 in
start)
echo "Starting $SERVICE_NAME ..."
if [ ! -f $PID_PATH_NAME ]; then
nohup java -jar $PATH_TO_JAR /tmp 2>> /dev/null >> /dev/null &
echo $! > $PID_PATH_NAME
View Potential Maintainers
Maintainers:
cillianderoiste: gwenhywfar, gwenhywfar, gwenhywfar
aszlig: libchipcard, libchipcard, libchipcard
View Changed Paths
aarch64-linux gwenhywfar
i686-linux libchipcard
aarch64-linux kmymoney
aarch64-linux gnucash
x86_64-linux kmymoney
x86_64-linux gnucash
x86_64-linux gwenhywfar
i686-linux gwenhywfar
i686-linux kmymoney
aarch64-linux libchipcard
@lbvf50mobile
lbvf50mobile / test_and_write.sh
Created Oct 19, 2019
@liso_soma task about redirection
View test_and_write.sh
echo "alias x='bash 20191020_Sunday/20191020.sh'"
if [ -z "$1" ]
then
echo "We shall Write to STDOUT"
else
echo "We shall write in $1"
fi
@dpacmittal
dpacmittal / bootstrap-docker.sh
Created Oct 19, 2019
Bash script to install docker on debian based distros
View bootstrap-docker.sh
#!/bin/bash
GREEN='\033[0;32m'
NC='\033[0m' # No Color
if [[ $# -ne 1 ]]; then
echo "Usage: bootstrap.sh <username>"
exit
fi
@dkubanyi
dkubanyi / postgres-brew.md
Created Oct 19, 2019 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)
View postgres-brew.md

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
You can’t perform that action at this time.