[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [Catalog]

1 guest@cc 2021-07-02T09:09:06 [ImgOps] [iqdb]
File: 8775867546454565857857.jpg (JPEG, 69.4KB, 525x393)
hello /cc/
Need some help on shell scripting. Could you help me how to make this code better?


#!/usr/bin/bash

DOING(){
duhhh=$(xclip -out)
xdotool mousemove 847 223 click 1 | sleep 0.1
xdotool mousemove 30 733 click 1 | sleep 0.1 | xdotool mousemove 30 733 click 1
xclip -t -selection "primary" -quiet -silent > /dev/null 2>&1
}

ADDITION(){
((duhhh++))
echo $duhhh
}


DOING
ADDITION


The thing about this script is, it doesn't work for the first run. Instead of echoing the real value, I got 1. But after do the second run, the value is correct as intended. "xclip" is a program equivalent to Ctrl+C and Ctrl+V where you can save selected line into clipboard for X11. If it tries to copy new value than before, same symptom happened. It always when running on the second time that works.
»
2 guest@cc 2021-07-04T01:11:18
>Instead of echoing the real value, I got 1
I'm guessing that duhhh is originally set to not an integer, try this in your shell

$ foo=aaaaaaaaaaaa
$ ((foo++))
$ echo ${foo}
1


Your code and use case is too specific for me actually test and fix your script.


1 Player 2019-09-15T11:39:12 [ImgOps] [iqdb]
File: 8923567895.jpg (JPEG, 329.63 KB, 690x800)
All niche Mario related things go here. Easter eggs, obscure merch/promotional items, cartoons, websites, videos, ROM hacks, odd art, etc.

https://www.flickr.com/photos/dpaq1/2616379598/
https://youtu.be/upWwLwCh3h8
https://www.newgrounds.com/portal/view/498969
https://youtu.be/i6dTzYnziN0
https://youtu.be/R1t6iNG28zI
https://direct.rhapsody.com/imageserver/images/alb.322564669/500x500.jpg
http://videogamemm.com/main/sites/default/files/images/PICT0056.JPG
4 posts omitted
»
6 Player 2019-09-22T11:19:01 [ImgOps] [iqdb]
File: I'm On A Yoshi (feat. Nintendo… (MP4, 8.67 MB)
https://youtu.be/WJmqWbD83RI
»
7 Player 2020-03-07T02:16:22 [ImgOps] [iqdb]
File: dafjs69-d30e44d4-7d65-4954-bbf… (PNG, 275.67KB, 456x592)
https://www.youtube.com/watch?v=OGFC4fTR9NA
https://www.youtube.com/watch?v=NBKFS7XQwks
https://www.youtube.com/watch?v=4Od-Q0iPgQQ

>>6
>I'm on a Yoshi

>Films himself sitting not on a Yoshi

What even is the point?
»
8 Player 2020-04-21T19:01:30 [ImgOps] [iqdb]
File: unnamed (1).jpg (JPEG, 131.75KB, 400x512)
キタ━━━(゚∀゚)━━━!!
»
9 Player 2020-04-21T19:06:06
http://www.emumax.com/roms/detail/8655
»
10 Player 2021-07-01T00:20:42
https://www.youtube.com/watch?v=xkreaWxL224


1 Anonymous 2021-06-27T06:31:28 [ImgOps] [iqdb]
File: 1555873867688.gif (GIF, 1.42MB, 376x522)
キタ━━━(゚∀゚)━━━!!
»
2 Anonymous 2021-06-27T18:42:56 [ImgOps] [iqdb]
File: 1588547405385.gif (GIF, 638.11KB, 1920x1080)
Yes, I agree!


1 guest@cc 2020-10-30T17:02:24
I've almost prepared the first release version of a decentralized textboard. It allows threads and replies to be shared between multiple servers, and threads are assigned to tags, rather than boards.

What kinds of features should my board have besides just these? It's still very minimalist -- a blank slate for progress!
16 posts omitted
»
18 guest@cc 2021-05-26T01:14:25
>>2
lol
»
19 guest@cc 2021-05-26T04:56:28
>>17
https://0chan.vip
or use a proxy or VPN or Tor or something
there's also a Tor node we federate with.
»
20 guest@cc 2021-06-03T09:15:36
Multichan now has boards:
https://0chan.vip/b/

It also has image embeds !
»
21 guest@cc 2021-06-05T08:39:46
hey, cool ad
»
22 guest@cc 2021-06-10T02:31:32
>>21
thanks! you're cool too!


1 Anonymous 2020-11-12T18:44:22 [ImgOps] [iqdb]
File: 235 perfect loop.mp3 (MP3, 1.19MB, #f)
This was my first self-conscious garage track, as in I set out to make a garage track and made a garage track. Everything before that were shots in the dark that'd occasionally land into some category.
44 posts omitted
»
46 Anonymous 2020-11-13T16:24:57 [ImgOps] [iqdb]
File: 285.mp3 (MP3, 456.75KB, #f)
An attempt at making something that sounds like the amplified silence tracks through regular samples.
»
47 Anonymous 2020-11-13T16:44:54 [ImgOps] [iqdb]
File: 309.mp3 (MP3, 1012.41KB, #f)
Composition attempts from here on. I'm skipping on them though I might come back to them eventually.
»
48 Anonymous 2020-11-14T19:12:14
Seeing as this is your 2015~2018 creative output, do you still do stuff now?
»
49 Anonymous 2020-11-16T14:40:08 [ImgOps] [iqdb]
File: 437.mp3 (MP3, 1.09MB, #f)
>>48
No, not as much.
»
50 Anonymous 2021-05-31T16:19:56
I made a minialbum or something.
https://a.pomf.cat/hzmmux.zip


1 Hi Nice site https://google.com 2021-05-28T16:36:12
Hi Nice site https://google.com
»
2 Anonymous 2021-05-28T17:57:42
I regret to inform you that this site is filled with viruses, phishing scams and immoral executives
»
3 Anonymous 2021-05-29T01:26:24 [ImgOps] [iqdb]
File: nop.jpg (JPEG, 36.8KB, 600x600)
キタ━━━(゚∀゚)━━━!!
»
4 Anonymous 2021-05-30T11:14:43
Hi Nlce site https://googIe.com


1 電脳使い 2021-05-25T06:26:24
Kyuuyaku Megami Tensei is such a different game to the original. I feel so bad for the developers when I hear people calling it a direct remake, or telling others to just skip the first.

Tried to attach this image, but it was stopping my post from getting uploaded: https://0x0.st/-ekj.png
»
2 Player 2021-05-25T17:24:15 [ImgOps] [iqdb]
File: -ekj.png (PNG, 6.11KB, 256x240)
huh really?
»
3 Player 2021-05-25T17:27:20
AAAAHH IT'S A FISHMAN!
»
4 電脳使い 2021-05-26T07:17:00
>>2 I guess the filename must have been the issue, it had a bunch of spaces, dashes, and I think colons in it.


1 Anonymous 2021-04-01T00:43:39 [ImgOps] [iqdb]
File: girl-1820122_1920.jpg (JPEG, 469.97KB, 1920x1280)
Whether it be watching a show, building things, or solving problems, what is your favorite thing to do for fun, and what keeps you coming back to it over other activities?
»
2 Anonymous 2021-04-01T01:22:14
>>1
Playing vidya, reading manga.
Sometimes watching anime and other shit.
And while I'd like to say I read proper books, I've barely read any actual books for fun in ages. I've probably only read like 5 books in the last year.
Prime opportunity for a /lit/ thread.
»
3 Anonymous 2021-04-17T16:20:49 [ImgOps] [iqdb]
File: girl-orange-1600.jpg (JPEG, 336.91KB, 1202x1600)
>>2
I know that feeling concerning literature. I know for a while I didn't read any books at all. Nowadays I get my lit fix via LibriVox, since I can concentrate enough to really absorb the information. Even got used to the plug on all of their offerings.
I've been drawing lately as well, though I'm mainly studying fundamentals, so I spend a bunch of time drawing circles and straight lines.
»
4 Anonymous 2021-05-24T16:28:11 [ImgOps] [iqdb]
File: precious.png (PNG, 3.05MB, 2048x1113)
Despite everything, I still really like the internet.


1 Anonymous 2021-05-22T20:09:38 [ImgOps] [iqdb]
File: 1557353515308.png (PNG, 160.27KB, 850x623)
キタ━━━(゚∀゚)━━━!!
»
2 Anonymous 2021-05-24T16:26:37 [ImgOps] [iqdb]
File: tallkemomimi-chan.jpg (JPEG, 241.34KB, 400x1500)
I dig it.


1 Player 1969-12-31T17:00:00 [ImgOps] [iqdb]
File: 17 - 1.jpg (JPEG, 106.13 KB, 530x791)
What is your favorite game?
119 posts omitted
»
121 Player 2020-12-11T19:17:22 [ImgOps] [iqdb]
File: d682zsw-a6c84f23-591e-426f-bd9… (JPEG, 144.74KB, 850x899)
>>120
Because SEGA stopped taking chances after the nineties. But hey, someone on deviantART drew your fantasy!
»
122 Player 2020-12-11T22:17:32
>>121
Thanks, I hate it.
Player 2020-12-16T00:54:53
Anon: I've grown to hate meme replies like this. I want to see jokes that I haven't seen a million times before
Me: Thanks, I hate it.
God: What the fuck is shit, I'm gonna do some blow off the holy spirit's ass and watch nascar till i pass out
Player 2020-12-13T02:15:40
I've grown to hate meme replies like this. I want to see jokes that I haven't seen a million times before
»
123 Player 2021-01-09T09:40:15
>>120
She's a fruit bat.
»
124 Player 2021-04-23T02:05:50 [ImgOps] [iqdb]
File: tumblr_pthluqWnb41w1kerio1_128… (GIF, 832.11KB, 540x520)
Coming back to them after a long time, I forgot how much I liked the GBA/DS era games.
Their sprite work is really superb and they're so full of character in them, I'm gonna flat out say they're some of the best among Sonic games. They just seem to have so much love poured into them. I always loved the world design/aesthetics too, like Music Plant Zone or Chaos Angel Zone. And Rush has always been one of my favorite soundtracks, the GBA soundchip never did many of the games on it any justice, not even just Sonic. Not to say that any of the GBA games music was bad, just that being on the GBA really holds them back.
Despite that I was raving about the sprites, Rush is actually my favorite game, though. It's just so quick and satisfying to play.
»
125 Player 2021-05-22T01:17:30 [ImgOps] [iqdb]
File: shecute.jpg (JPEG, 335.16KB, 915x1164)
キタ━━━(゚∀゚)━━━!!


1 DEAD BOARD 2021-03-06T07:23:05 [ImgOps] [iqdb]
File: EsgXwi7UUAY-nTa.jpeg (JPEG, 296.84KB, 1366x2048)
DEADBOARD
»
2 Anonymous 2021-03-08T20:00:48
Funnily enough it's actually been faster lately than usual.
Anonymous 2021-03-08T20:42:34
It's spam, they posted this exact same thread on a bunch of other imageboards.
»
3 DEAD BOARD 2021-04-10T14:50:27
>>2
THANK ME FOR POSTING MORE THINGS.
Anonymous 2021-04-12T03:24:03
NO
»
4 Anonymous 2021-05-03T22:01:31
>>3
Thank you, 3
Anonymous 2021-05-05T21:18:54
YES


1 Player 2021-05-03T12:24:12 [ImgOps] [iqdb]
File: rtypefinal2.jpeg (JPEG, 213.58KB, 1920x1080)
This recently came out, a pleasant bit of news if any.
I've enjoyed Irem's, now Granzella's, works for a long time, both their arcade and console stuff, so it's nice to see their legacy still trucking along even after going under. Hopefully this means they won't get rendered Bankrupt again due to a natural disaster.


1 kiroker 2021-04-05T01:29:29 [ImgOps] [iqdb]
File: 220px-Abel_crater_clementine_b… (JPEG, 14.27KB, 220x187)
The great awakening of world have began ladies in gentlemen.
Since when the great civilations of the world have hidden a secret that no man have revealed!
today will be you date to wake up from state of dream you been sleep for many centuries
maybe the goverments of world and the religious of world knows about it?
you are in state of a "DREAM from the metrix"
budda called it a 'illucion" life. reality being perceptual.The creation is holographic,
containing all.The entire creation is Cosmic perception in varying forms of vibrational
sound frequencies,containing octaves of knowledge.and forming dimensions containig that
knowledge Each of these dimensions are ordered by their own universal laws that apply to the
expansive potential of the information within the dimensions.
" Uncounsious mind"=data transfer.01 quatum computing.or autopilot.
The "preconscious" refers to the thoughts you aren"t actively thinking of but can call to mind
given the right trigger."Consciousness" the state of being awake and aware of one 's surroundngs.
"subconsciousness" of or concerning the part of the mind of which one is not full aware but which
one's actions and feelings.So you see your whole life is about "thoughts,feelings,emotions.= reality.
You Are a in computer prg.0a1. 'USE THE COHERRENT THOUGHTS TO UNDERSTAND THE METRIX'
»
2 guest@cc 2021-04-07T16:32:21 [ImgOps] [iqdb]
File: MAD DEADLY WORLDWIDE CONSPIRAT… (WEBM, 7.78MB, 150x113)
キタ━━━(゚∀゚)━━━!!


1 Anonymous 2020-10-06T15:48:26 [ImgOps] [iqdb]
File: 22chan.org, the comfiest board… (PNG, 534.29KB, 719x562)
Hello 4taba! We're a SFW imageboard that attempts to be rid of cancer you'll see on other imageboards nowadays like porn, gore, and normalfaggotry. Some of our users are a fan of 90's and 00's related media and culture but anything goes as long as it doesnt break the rules! We have a cytube and sooner or later our self-hosted stream/radio will be ready, and we cant wait to see you there!
15 posts omitted
»
17 Anonymous 2021-04-01T20:13:50
>>16
Free speech boards are filled with paedos, and there is no reason why every board needs to be an identical free speech zone with the same type of posts and culture. Quality control is a good thing.
»
18 Anonymous 2021-04-02T21:40:19
>>17
I just don't like pretense.
»
19 Anonymous 2021-04-02T21:44:42
>>1
>cancer you'll see on other imageboards nowadays like porn, gore

And just like that you've outed yourself as someone who's too young to remember what old imageboards were actually like.
»
20 Anonymous 2021-04-06T04:18:03
>>19
Or maybe they've actually grown up.
Anonymous 2021-05-03T23:52:31
Plenty of imageboard users have jobs and social lives. The notion that all imageboard users are basement-dwelling NEETs was at no point in time ever accurate.
Anonymous 2021-04-08T21:51:54
People who've truly "grown up" and have jobs and social lives don't use imageboards.
»
21 Anonymous 2021-04-06T10:13:38
putting aside the old vs new dichotomy, the idea of not having edgy content or normal people is contradictory.
Anonymous 2021-05-03T23:50:44
In what way? It is entirely possible to have a community without "normal people" and not be full of edgelords.


1 Anonymous 2019-07-04T12:13:38 [ImgOps] [iqdb]
File: 7644678344.png (PNG, 37.15 KB, 144x182)
I just found this random guy on a bunch of archived Peewee's Playhouse [adult swim] bumpers saying their more than decade old decision was childish and stupid (examples: https://youtu.be/3dTwKsIGkGI https://youtu.be/ehCTcTMFru8 https://youtu.be/4rCDxChOXLQ). So after seeing him on every video I naturally clicked on his profile and he has his home address plastered on his channel https://youtube.com/channel/UC4wqZjwG0bd1eFu27OArwlw/about . Manchildren are truly the internet's greatest gift
»
2 Anonymous 2019-07-04T12:57:14
You gonna send him some pizzas?
»
3 Anonymous 2019-07-04T14:24:10
>I live on 4414 Bloomington Avenue South. Have thrice an offended family, seem to not get along well, and everything around me is having what's hated more then what's loved.
w-what?
»
4 Anonymous 2019-07-14T13:44:04
So did anyone order him a pie?
»
5 Anonymous 2021-04-01T02:47:50
Let's hope [as] airs Peewee again tonight

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [Catalog]Delete Post: