| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| TRIES=0 | |
| until [ $TRIES -eq 10 ] || nc -z localhost 3000; do | |
| sleep 0.1 | |
| TRIES=$(( TRIES+1 )) | |
| done |
This file contains hidden or 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
| require 'csv' | |
| require 'open-uri' | |
| file = "Workbook3.csv" | |
| content = CSV.read(open(file), encoding: 'ISO-8859-1:UTF-8', col_sep: ";") | |
| File.open("output.csv", "w") do |f| | |
| rows = content.map { |row| "\"#{row.join('","')}\"" }.join("\n") | |
| f.puts(rows) |
This file contains hidden or 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
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Updated: 2010/12/05 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
| // | |
| // Permission is hereby granted, free of charge, to any person |
This file contains hidden or 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
| function run(input, parameters) { | |
| const appName = ""; | |
| const verbose = true; | |
| const scriptName = "close_notifications_applescript"; | |
| const CLEAR_ALL_ACTION = "Clear All"; | |
| const CLEAR_ALL_ACTION_TOP = "Clear"; | |
| const CLOSE_ACTION = "Close"; |
This file contains hidden or 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
| #!/bin/bash | |
| # ssh-multi | |
| # Modified to check if the script is started within a TMUX session to avoid starting in a background TMUX session | |
| # H.SHUSTAK | |
| # Origional : | |
| # D.Kovalov : https://gist.github.com/dmytro/3984680 | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html |
This file contains hidden or 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
| #!/bin/bash | |
| # You know that really annoying message that pops up... | |
| # Mosh: You have 3 detached Mosh sessions on this server, with PIDs: | |
| # - mosh [2294539] | |
| # - mosh [1874313] | |
| # - mosh [2294805] | |
| # I often find myself copying this list of PIDs in order to kill them manually |
This file contains hidden or 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
| git config --global color.ui true | |
| git config --global user.name "YOUR NAME" | |
| git config --global user.email "[email protected]" | |
| git config --global credential.helper cache |
| Summary | How to control (or Understand) your GIST page's files list order. |
| Notice | not official documentation. |
NewerOlder