lainchan / λ
Using your own code?
limited · 2020-05-17 01:59
Do you have code you've written that you actually use?
Do any of you use your own code? I have a little word histogram thing I use on large book files to find where certain subjects come up, written in Ruby.
Lady 3Jane.. · 2020-05-17 02:35
mostly random scripts and doo-dads that have accumulated over the years
if · 2020-05-17 03:09
I have zero practical use for programming and just do because it seems like what im supposed to do. I have no idea what people like >>18578 even write
Incognito · 2020-05-17 03:25
>>18581
well, an example, I pretty frequently do art projects that require stitching together many images into a video using ffmpeg, so I wrote a script that normalizes the file names and does the conversion. Simple stuff like that.
Koos van der Merwe · 2020-05-17 05:21
Yes actually. I write little CLI utils to automate stuff that's annoying me.
Zhora · 2020-05-17 08:10
I have a thing to count LOC, a thing to keep a TODO list, a thing that's slowly but surely becoming an IRC client, a few coreutils clones, a thing that I play music with on windows cli and bunch more little silly stuff.
vector · 2020-05-17 09:24
All the time, from little scripts to trigger actions, or IRC bots, over emacs packages to websites I use to watch stuff with friends.
Half the fun of programming is having a better connection to the device one is using, not being constrained by the interface given to you, but shaping the human-computer interface by myself.
J.C. Denton · 2020-05-17 11:13
>>18589
Yeah, it feels exactly the same to me.
I create my web-page with my org-mode exporter, I have lot's of facilities for haunt, a simple static page generator in guile, lot's of emacs utilities for organization or other stuff I do on my computer.
My PIM system, based on org-mode is like 3k LOC and growing, and I couldn't live without it, highly personalized incorporating aspects from GTD and zettelkasten.
I also use a racket gui program for plotting simple equations, as I do math tutoring from time to time.
In general that's my main concern of programming and why I'm not really employable as a programmer, since I have little interest on big systems and the stuff that a company would want me to do. I believe in the personal aspect of computing.
I have a simple answer to the scaling problem. Your server shouldn't be used by so many people, it's simple!
Sabo Engle · 2020-05-17 13:25
A proxy server that removes anti-adblockers from sites. I usually use it for that, but in fact it could edit any javascript and html response data. Other than that, sometimes I use python scripts I've written myself, but not very often.
Nguoi La · 2020-05-17 16:41
I use a perl script to auto update and run a couple programs on my linux computer.
Incognito · 2020-05-17 17:02
No.
-Bill Gates
Kay · 2020-05-17 17:33
I wrote a script to bookmark destinations in my filesystem and a script that wraps around mpv to display a bunch of streams I like to watch / iceasts i like to listen to so i can select them.
I use those everyday. All the python and go i've written I never use though.
Leto Atreides I · 2020-05-17 21:51
Mostly scrips trying to make my life easier.
I'm proud of one metaprogramming script in python that I used to use for calculating error propagation.
Guthrie · 2020-05-17 23:03
>>18603
I write scripts to interoperate with Acme.
Roy Batty · 2020-05-17 23:16
So far just a gopher server written in Chicken Scheme and a MUD server engine written in Ruby/Lua. I've got a list of useful projects I plan on completing this year hopefully.
Hitomi · 2020-05-18 16:37
Just scripts to automate some personal tasks. e.g. I've got some scripts to convert strange CSV formats into one that Gnucash can read (to track my expenses), miscellaneous bash scripts to automatically link my dotfiles on my git repo to my home folder, remap caps lock key as left control, etc.
Every big piece of code I've written has been for work.
Koos van der Merwe · 2020-05-18 17:20
At work I've written a program that aids us in inventorying our clients' computers. It grabs your basic specs like CPU and RAM, the serial number/service tag if BIOS has it, power-on hours for all drives and any SMART warnings/errors, and the computer's name in our remote-access software. Better than having to pull up 5 different windows to get all this info.
If it counts, I've also modified the software we use for managing work orders, adding UI improvements and fixing bugs.
Debbie Charteris · 2020-05-18 17:30
>>18576
I have a really simple bit of code that reads from an ALSA audio device and dumps it to a TCP socket. I use it to stream music from my file server to my laptop (the "client" is literally just netcat -> aplay). It was my first real project in C (I started it because I wanted to learn about unix networking) and it has been surprisingly robust. I'm actually only now re-writing it because I want to do the same thing with JACK and fix some minor issues. For whatever reason there aren't a lot of simple tools that can do audio over IP. They're either based on HTTP streaming with a full web server stack (icecast, etc.) or they're like jacktrip or net jack: designed for ultra low latency use (for use with remote plugin hosts and such) so you get lots of skips and overruns if you don't tune your audio config perfectly to your network.
Otto Normalverbraucher · 2020-05-18 17:45
>>18631
other than this, i also have written a ton of one-off web scrapers or clients that connect to some api and do things that the official webui doesn't (like searching twitch chat logs for keywords and printing urls when it finds a match).
also i kind of took the minimalism pill, so i've started making a habit of just writing shell scripts to do things that i would have previously achieved by installing some repo package. the most recent one was a little dmenu interface for getting passwords from my password manager.
Boris Grishenko · 2020-05-21 03:59
>>18576
Most of the code I write is intended for my personal use or relating to something I provide, but some of it is practically useless and supersede by other code I've written; that exists more for fun than anything. I write games, but don't actually play them; the meta-game is what's most fun for me.
A program I use every day is one I don't ever intend to make public, solely for some private purposes of mine. It's also been updated or improved relatively little and lacks features that a public program would have, since I can simply work around or ignore the lacking.
My current main program is a hacking tool. I use an early version of it occasionally, and am rewriting it to be much better, lately. This tool exists solely because I wanted it to exist, initially spurred by boredom and later from a want to create something truly novel. Even if I'm the only person who ever uses it, I'm glad it exists, because it's precisely what I wanted, and I intend to expand and go beyond it in the future.
Guthrie · 2020-05-22 06:35
>>18576
Nice topic.
В бытность мою мелким менеджером, я активно писал скрипты и поднимал локальные сайты под специализированные нужды - мои и вверенной мне команды идиотов.
Потом мне все-таки дали должность разработчика и я начал писать коммерческий код для промышленной эксплуатации.
За семь лет такой жизни, у меня насобирался жесткий диск с почти террабайтом документов, проектной документации, базами данных, исходными кодами и дистрибутивами, чтобы все это запускать на windows и ubuntu.
Правда в том, что 98% этой информации лежит мертвым грузом, поскольку текущие задачи имеют другую специфику, мои обязанности сменились, да и начальники каждый год придумывают что-то новое в бизнес-логике процессов компании. И учитывая тот факт, что производители программного обеспечения выпускают как минимум по одной новой версии в год, я все больше убеждаюсь, что вся деятельность по разработке приложений, которые реально будут использоваться людьми, является просто бегом на месте в попытке обеспечить legacy удачному проекту, собранному на коленке и в максимально короткий срок.
Switch · 2020-05-22 10:21
>>18576
Yeah, mostly little scripts I write, e.g. a screenshotting script, one that controls my LED bulbs, one that bookmarks files/directories, etc. Now is any of it good? fuarrrk no, I wouldn't trust even the code I'm proudest of with my life.
Anamika · 2020-05-22 14:17
>>18732
Oh a fellow lainon from kacapstan.
nil · 2020-05-22 15:06
>>18732
Exactly most professional code is the equivalent of fast food. Get it up fast and deprecate it fast, let's hope everything will work and brings us nice dollars.
Unspecified · 2020-05-23 00:31
>>18740
I hope, you doesn't have any problem with my origin.
Схаменися, хлопець, токсичність до добра не доведе.
>>18741
And like any fast food, it doesn’t lead to anything good. I really prefer healthy diete.
А вот таких "делай быстро, хватай бабки и убегай" не переношу. У меня от их поделий изжога и пламенный понос.
Hououin Kyouma · 2020-06-05 12:44
>>18576
It was years before I finally _got_ what Linux was about, I think before that, I was just LARPing
I was also stuck in that "I know how to code, I just don't know what to code" mentality
So let me share with you, Lain, a little list of the tools I've made myself
I have stuff to format my code automatically
I had a meme-downloader once, it downloaded 1000 memes per hour not because of the internet speed, it's just that people uploaded them at that speed. If I ran it more than one an hour, I'd get the same images twice
Images converters until I got imagemagick
I had code to help me buy stocks
Stuff to backup my soykaf to a server, a bit useless now since I use btrfs
At one point I downloaded every page of every day of wikipedia, so I could have a script that queried it and posted stuff everyday like "19 may, World War II: In the aftermath of the Battle of the Coral Sea, Task Force 16 heads to Pearl Harbor."
I have a whole array of scripts for my blog so that it gets built and updated automatically
I also made a program to make fast graphs, like GNUplot but not trash. For example, get a file with two columns, pipe the file, get a PNG all clean all beautiful
I have two background generators, working on a third one, might post it here soon.
Last week, I made a macro program, it shows me a list of common sentences I type and lets me select one. It then copies them into my clipboard, I now use it all the time, pic related
Remember, everything in Linux is a file. Explore /dev, your microphone is a file, your webcam is a file, your internet connection is a file, your battery is a file, your mouse, speaker, screen, everything. Just dig in there, look at the contents, imagine what you can automate, query, change, ect, ect
You have more power than you realise
Volta · 2020-06-05 14:32
Although I know how to code in python, C++, Java and DOM (which, if I remember correctly, is HTML, CSS and Javascript), the only one I use on a regular basic is DOM. In quarantine alone, I have completely switched up my website at least 3 times.
I keep telling myself that I will make something useful in C++ / Java, but whenever I sit down to make something, nothing comes to mind and I end up making something along the lines of a program to check if a number is bigger than another number.
Yu-ichi · 2020-06-05 21:34
>>18576
I spent about a week writing a pretty gross C program to translate a dialect of markdown into Groff for typesetting.
I use it every day for taking notes in class/typesetting homework and essays.
Also how dare you post my wife without my express permission
>>18632
I've also resorted to w
cond · 2020-06-06 16:32
I wrote a PHP/JS localhost site that I use for downloading, storing and tagging memes. It's pretty darn handy for keeping track tens of thausands of images, gifs and videos.
Roger Pollack · 2020-06-06 17:49
>>19036
Yeah that about sums up my current mentality. I know how to structure programs, how to do complicated control flows, but I just can't figure out what to do. Everything I think of doing has already been done, and way better. The only reason I could think to make that kind of stuff is the novelty of having made it, or maybe the experience of it. Maybe if I took a hard look at what I could automate I could come up with some useful programs.
On a side note, how did that meme-downloader work? Did it just scan a few big sites and download everything off of them? The image converter sounds like a neat project I might do actually.
Dr. X · 2020-06-06 18:09
>>19061
The meme downloader was pretty much just a script that downloaded the "Hot", "trending" and "new" pages of websites like imgur and reddit. Once that page was downloaded, it scrapped the albums' links, then downloaded every image in the album.
There are way better ways to do it, probably using APIs, but it was one of my first projects. Not that it was really useful to me.
You gotta observe what commands you type yourself a lot, the thing with linux is that a script is the same thing as you typing it on the command line. Maybe you spend a lot of time sorting the files you downloaded. Make a sorter, then. A simple cron script that looks if there's some new file in your download folder, and move it to the appropriate folder (images, video, PDF, music) automatically, just a thought
queue · 2020-06-10 00:55
I don't know if this includes forks, but i've made a fork of SAD, adding some stuff that is missing. I'm also planning to remove the unix socket interface and replacing by a FUSE file system.
I also wrote a program that converts human readable bytes, separated by line, and convert into an image. Generally i write a program and i can't visualize the result, so i did this program to easly show my results in a image format.
This is my mandelbrot made by using this tool.
Vasya Pupkin · 2020-06-10 05:42
>>19136
wow, that is cool. got any more?
Knuth · 2020-06-10 17:45
>>19140
It's not here now, but i've did a program that creates a histogram of cpu usage per process. The possibilities with this program is endless.
It's called d2img.
The Oracle · 2020-06-11 00:56
Wrote a decade ago a small java lib to get a render screen with opengl. Dead simple and useful because its so simple it takes no effort to use. I hate working big engines because either you cant do what you want with what you got or its so complex you wasting time learning it. Used it over time for various projects since a display is almost always needed.
Latest frequently used thing i did is make use of the notification system for web browsers to have a timer list that pops notifications, also updates the title so it shows the time til the next timer hits 0 in the browser tab list. Its nice cause i don't like sound-based timers and it likewise takes no effort to code quick with js.
.
The Phantom Phreak · 2020-06-18 02:00
made an mpv script that downloads /wsg/ bumps and adds them between episodes of whatever ur watching
x<->y · 2020-06-18 02:06
>>18576
Wrote a small bit of C++ that renames a bunch of music files, probably could just done it with a batch file but I am retarded, so.
x<->y · 2020-06-18 07:12
Most of my code is one-shot. I am currently studying most of the project do not live longer than 3 months and than the topic changes.
The only code i reuse is one CNN and one ANN Implementation for prediction/feature extraction, but i cannot reuse the datapipeline because most of the scientific data out there are soykafty organized.
Lain Iwakura · 2020-06-19 00:10
Yes. I use malware that I write for security competitions (and hacking the gibson).
I also use scripts and smaller tools that I write for CTFs and the like.
H.R. Giger · 2020-06-19 07:50
I wrote a CLI dice roller that I use when I need dice-like randomness.
And my personal website is built with a static site generator I wrote.
Koos van der Merwe · 2020-06-19 08:35
I'm obsessed with 2 things, first is a to-do list that can also do some basic project management and calendar stuff, and the other is a music player. I spend years trying and using all kinds of solutions but none of them had those exact bizarre niche features I'm looking for and didn't manage to satisfy me. So at some point I said fuarrrk it and coded them myself and use them now only daily basis. The "music player", if you are wondering, really just launches mpv in the end but it has all kinds of options to sort and organize what's going to be played, it also looks quite neat as a cli application with a cover/tag display and equalizer going on. So yeah there's that and of course also a bunch of convenience scripts like most other people here have.
Iverson · 2020-06-22 00:59
I just do aliases and scripts to launch programs just the way I want to, or to parse some outputs.
Other than that, I just code for uni/work/competitive programming.
I got myself into emacs to learn elisp and make some useful stuff for myself there though.
>>19285
What would you say it is baby's first steps in CTFs and sec competitions?
Cypher · 2020-06-22 06:32
I built a chat platform which I use every day with like 7 other people that come visit, plus a couple of bots made for it. I use my alternative to 'ls' all the time too.
Otto Normalverbraucher · 2020-06-22 22:48
>>19323
Not sure why my file got deleted :/
With infosec the fundamentals are key. Knowing AAA, CIA, issues with both. Having that core high-level understanding makes learning the rest much easier, assuming you aren't well versed in that already.
As for CTFs and security competitions, your best bets are to be comfortable with programming at least. I HIGHLY recommend using python if you haven't before, as it's great for a lot of the questions that CTFs ask about. It's adequate for scripting, reverse engineering, and performing exploits.
From there it's about learning challenge categories. For reverse engineering I recommend LiveOverflow for techniques, and I can vouch for John Hammond on youtube as well, both good CTF players that go through challenges and methods. John's channel is more beginner friendly, especially if you aren't great with C or Assembly. I'd write some short programs and try to reverse them, then move into crackmes and past challenges. I highly recommend sticking to ones with writeups if you can.
Cryptography is also of use for CTFs. For web challenges OWASP and PayloadAllTheThings are your friend. Learning about all the ways that web (doesn't) work is lengthy but rewarding, web challenges give instant feedback and are satisfying.
A lot of CTFs (though less likely in my experience) have networking challenges, usually forensics or cracking challenges (especially at conferences) so opening wireshark and getting the basics of IP down is very useful. This is something I think everyone should have some idea about.
Finally there's operating systems. If you're not good with Linux I highly recommend that you dive into it more, especially when it comes to security. Privilege escalation techniques, permissions, access control, etc are key areas of that. OverTheWire or other platforms like HackTheBox, TryHackMe, etc are great for rolling in the above stuff with operating system security. Really any kind of rootme VM is a good place to start. ALWAYS do good recon before you try any exploits or writeups to minimize wasting your time.
That's probably a lot, but I think it covers most of the important stuff for CTFs at least.
Hitomi · 2020-07-24 15:58
>>19285
How do you mean use malware if you don't mind me asking? Do you actually use it maliciously or do you just mean that you hand it in for competitions?
byte · 2020-07-24 17:45
>>19296
>to-do list
This is something I've also struggled with and considered implementing myself. I've tried so many different systems and none hit the right balance of flexibility, ease of use, and broad compatibility across devices.
>caldav tasks
+ Easy to store in a central location and sync across devices (I run my own cal server)
+ Best UX on my phone
- Rigid "list of checkboxes" structure doesn't work that well for bigger or more nuanced projects. Even with sub-tasks (which aren't universally supported) the interface still works best for simple things like errands and grocery lists.
>Taskwarrior (and other similar "productivity systems")
+ Generally has a nice balance of flexibility and ease of use.
- Doesn't really work well as a calendar, so you end up having to do that with separate software.
- Limited options for easy integration with other software or syncing to other devices, so you have to get in the habit of checking it often. Particularly a problem if you like to check your todo list on a phone. Exacerbates previous issue.
~ Easy to script, but scripting is basically the only way to extend functionality so its a double edged sword.
>Org mode (or just tracking tasks with some plain text markup language and scripts)
+ Probably the most flexible system out there.
+ Lets you seamlessly integrate your notes related to a task and the list of task objects.
+ Files are very portable and there's a very nice android app.
- Interface is a bit unwieldy for tracking simple errands, deadlines, and reminders.
~ You kind of have to buy into the emacs ecosystem if you want to fully realize its potential.
I think some of it comes down to the fact that the best tasks interface for soykaf like "drop off a letter at the post office" is going to be different than the best choice for heavier project management type stuff, so a solution that can do both is maybe not what I should be looking for. I currently use caldav for the former and am trying to find something that is good for the latter. How was your task software structured?
Sage for OT.
Joey · 2020-07-28 22:13
The code I write is used by me exclusively.
Linda Lee · 2020-08-08 22:08
>>19036
So what is Linux about in your opinion?
Agent Richard Gill · 2020-08-08 22:21
>>19285
hack the planet, hack the town
Turing · 2020-08-09 17:39
I'm using a bash script for editing my neocities site with vim. It still use the neocities go client because it's faster than curl and wget for accessing the api. #!/usr/bin/env bash
# Made by Marcos Moreira on 2020/08/03
#==========VARIABLES=========
export NEOCITIES_USER="SITE_NAME"
export NEOCITIES_PASS="PASSWORD"
SITE="$NEOCITIES_USER.neocities.org"
WORK_DIR="/root/.neocities/"
#==========VARIABLES=========*
#==========TESTS=========
if [[ -z $NEOCITIES_USER || -z $NEOCITIES_PASS ]]; then
echo "No credentials" && exit
fi
cd "$WORK_DIR" || $(echo '\$WORK_DIR dont exist' && exit 66)
#==========TESTS=========*
#==========FILE_LIST==========
FILES=$(neocities list | grep -E "path.*html" | cut -d: -f2 | tr -d \,\")
#==========FILE_LIST==========*
#==========MENU=========
select FILE in $FILES; do
wget -qc "$SITE/$FILE"
vim "$FILE"
# Remove the path on the file name and upload
if [[ "$FILE" == "*/*" ]]; then
NEW_NAME=$(echo "$FILE" | cut -d/ -f2 )
neocities upload "./$NEW_NAME"
else
neocities upload "$FILE"
fi
done
#==========MENU=========*
The Phantom Phreak · 2020-08-13 13:47
I always wanted a simple and easy to use metronome app on android.
Since all the offerings were total garbage or overly complicated, I just wrote my own.
Released it under GPLv3 in the end too.
Cowboy · 2020-08-13 14:02
i have a personal management program (gui and all) to automate all my real life stuff (theres a module for groceries, another one for dialy tasks, another one for food recipes, another one for personal notes).
it's kinda scuffed and definitely not anyone else would be able to use, but it helps me out a lot. Other than that, just small scripts (to install a new OS, to clean my pictures folder, small integrations with my personal management thing).
i don't write a lot of code for personal use tho, it's just things that pile up over the years.
>>18581
then don't do it, excess is excrement. Do whatever makes sense, otherwise you're wasting time.
HAPAS ARE SUPERIOR TO WHITES · 2020-08-13 22:24
I have an image viewer called nigchink that's faster than every other image viewer ever made. It renders by outputting the image top down to the framebuffer as the GPU scans out the image to the screen. Rendering is done by CPU and has tested and worked on 1300MHz 15 year old computer without any slowness. The result is that it's more responsive than most programs while also looking much better because the image is "vsynced". Wiggers cannot even comprehend this
>vsync? but dat causes da input lag!!1111
while nigchink has far less input lag (0) than any other unsynchronzized garbage.
Also shame on all the Ctards who brag about how their code is "fast" while it was trivial to beat them all even as a C hater.
John Rain · 2020-08-15 18:16
i run a pharmaceutical company. the entire company is run on software i wrote. its a small 20 people company and i use it for sales operations, payroll, taxation and some compliance related stuff. it helps me run the company with minimum overhead.
Jim Hilger · 2020-08-15 21:06
>>20286
>pharmaceutical
>20 people
What does your company actually do?
list · 2020-08-17 07:30
>>20288
we have specific products. we do not manufacture our products but we are more focused on branding and marketing.
Incognito · 2020-08-17 14:53
>>19693
I don't use it maliciously, no. Not outside of the scope of the engagement, at least. So it's malicious I guess, but not illegal or morally wrong, since it's a game.
Special Agent Bob · 2020-08-18 00:10
>>20218
>then don't do it
There's nothing else
Unnamed · 2020-08-18 22:07
>>20216
>I always wanted a simple and easy to use metronome app on android.
It's called 3 lines of code.
Erik Johansson · 2020-08-22 19:11
>>20321
What else do you do other than programming?
typedef · 2020-08-22 20:12
>>20344
I think you're underestimating the amount of boilerplate it takes to do fuarrrking anything in Java... let alone in an android app.
progn · 2020-08-23 21:31
>>18576
I wrote a C++ music player which uses SDL2 for creating a window that displays the cover art of the mp3, and BASS for playing the actual audio itself. It has basic controls (pausing/playing, restarting, fast forward/rewind, etc) and only works by typing in the program and then the mp3 itself. So my "albums" are just folders with the mp3s in them. Although since it's BASS, it works with more codecs than just mp3.
Apoc · 2020-08-24 12:59
>>20425
got a link to BASS?
x<->y · 2020-08-25 06:11
>>20439
https://www.un4seen.com/bass.html
It's proprietary (only costs money if you're using it in commercial programs, otherwise its free unlimited use) but its really good. A bit harder to learn than SDL_mixer though.
Hermes · 2020-10-05 23:08
>>18576
I made my own command line youtube browser. You can search for videos and then watch them with mpv/download them in video/audio format with youtube-dl
swap · 2020-10-05 23:31
>>18576
I'm pretty new to programming, but I wrote a fun little python script that auto-generates some stupid memes. I use it every now and again if I'm feeling bored. Sometimes it actually makes something funny.
Pulse · 2020-10-06 23:37
i really dont know what to make lainons, everything i need has already been done and better than i could ever do it, most of the tools i need are already available for emacs or already in the repo of my distro. cant even motivate myself to finish small games i start since it just doesnt matter if i finish it or not
Von Neumann · 2020-10-07 00:18
>>21156
Find a programming language whose community is small, and then create libraries for it.
aliased · 2020-10-07 09:33
>>21157
that kinda is like kicking dead whales down the beach a bit of ass as well, since i would love to finally warm up with one of the langs im already using
Unsigned · 2020-10-08 10:00
>>21156
Lately, I have taken some motivation from Zed Shaw's Learn more python the hardway and been doing his 45 minite challenges.
You have 45minutes to implement as much of a standard unix utility as you can.
So far I have done:
*cat
*find
*grep
This has given me a bit of random knowledge about unix utils and I learned some things about pythons stdlib that I was unaware of.
Davis · 2020-10-09 00:52
>>21156
I like to take on a type of project that everyone and their dog has done before, and try to do it under some sort of limitation. Perhaps not using any third-party libraries and doing everything from scratch using only the language's standard library. Or in the case of web services, keeping the html and css so small that it would theoretically work perfectly fine over dialup.
↑ · 2020-10-09 01:12
Yeah, actually I pretty much don't write code except stuff I use, mostly just little Python scripts to automate stuff. The biggest one I remember is I renamed like 200 video files from various ugly title formats into one standard "S(x)E(y) - Episode Title.mp4" with some seriously disgusting string manipulation, e.g.
for i in os.listdir("."):
os.rename(i, "S" + i.split("-")[1].strip().split(" _ ")[1].split(" ")[1].strip("0") + "E" + i.split("-")[1].strip().split(" _ ")[1].split(" ")[3].strip("0") + " - " + i.split("-")[1].split(" _ ")[2] + "." + i.split(".")[1])
藤原純一 · 2020-10-09 10:43
>>18576
I wrote a notekeeping sotware in C that outputs me notes sorted by tags. The actual editing is done in vim, but you can configure the editor. I use that software a lot.
Besides that some small scripts that automate stuff away for me (setting timers and reminding me, auto-cleanup for parts of my system, auto-backup for others).
All the other non-work-products are more for fun, because I want to know how stuff works and implementing it myself helps me to understand.
Case · 2020-10-28 00:16
>>21163
Jesus what is "kicking dead whales down the beach" a filter of?
Junichi Fujiwara · 2020-10-28 00:25
>>21679
s ucking / s uck
Von Neumann · 2020-10-29 10:11
>>18576
Yes, because I do a fuarrrkton of repetitive things and because I've done them for the xthousandth time, I've probably written a script for it and completely forgot to run the thing manually.
I can't use other people's terminal properly anymore because I always end up typing my bullshit aliases and shell functions.
Ivan Horvat · 2020-10-29 10:22
>>18597
I've always been curious about Perl. Why do prefer perl scripts over python?
Meddler · 2020-10-29 10:30
>>18687
>My current main program is a hacking tool... this tool exists solely because I wanted it to exist, initially spurred by boredom and later from a want to create something truly novel.
Sounds like a NSA level spyware. Would love to know more anon, sounds really interesting.
I've also made a full blown program for personal use. Is a modern ASCII art editor, which I'm very happy with. But sometimes I waste too much time on the GUI even tho I'm the only one who uses see it
stack · 2020-10-29 10:34
>>19036
Amazing. Yeah, once you get to feel the power Linux offers, your creativity goes wild.
Masami Eiri · 2020-10-29 10:53
Right now I'm dreaming on making a HIGHLY illegal app for music. Basically, I want to centralize all my music in a single place. For example, in the app I would have multiple playlists, and for each playlist it will create "sink" playlists on all of my music streaming platforms (spotify, soundcloud, youtube), so whenever I add a song on those sink playlists, it will download them, normalize the volume and essentially make it available for listening on the app, locally.
Because it makes me so mad that I can't have a global "metal music playlist" in a single platform, because sometimes there are songs on youtube that are not on spotify, or in soundcloud, so I have to be hoping from one platform to the other.
Plus, since the files will exist locally, I was thinking that I could also implement a "slowed and reverb" feature on demand. I think it could be a pretty sick software but the amount of work seems... daunting
Unknown · 2020-10-29 12:40
>>21710
> Why do prefer perl scripts over python?
1. Less readability meaning you are going to be essential for understanding how it works and that means lesser risk of getting fired.
2. It's older. Which brings all bonuses of older programming languages.
3. It helps you feel like a special snowflake of UNIX™ wizard
sizeof · 2020-10-29 14:26
>>21710
>>21715 isn't even lying. Using Perl in the current year can either be about disdain for your coworkers, sunken cost or the aesthetic of using a weird, busted language.
word · 2020-10-29 16:20
Can someone please tell me what the code color syntax theme here is called? Really want it
Special Agent Bob · 2020-10-29 18:10
>>21714
dude .... theres already an app like this, and it's not illegal.
Batou · 2020-10-29 19:32
>>21717
gruvbox-dark if you're using the default theme
Random · 2020-10-29 22:16
You know when you guys speak of not knowing what to write code for, I have to ask, are you guys doing anything with your life?
Personally, I do somewhat agree with the paradigm of Chuck Moore in that programming shouldn't be big-business, it should be about you creating tools that meet your individual needs. I think if you can't come up with programming ideas, it's because you're not really encountering problems and that in turn is because you're not really living a life directed towards anything nor are you seeking to explore certain areas of life.
I mean really, you unimaginative guys, what are you guys doing with your free time? I genuinely think if you were pursuing something, the problems would naturally appear and then you could use programming to solve those problems.
In a certain sense, life is problems. If you have no problems, you must not be living.
Jane Doe · 2020-10-30 02:42
>>21719
Maybe they live in one of the retarded countries where it actually is illegal to violate ToS.
But yeah, this just sounds like a description of Tomahawk (rip).
Hopper · 2020-10-30 08:54
>>21726
Thanks, didn't know there was a project like that. It's a shame it died. And no, I don't live in a retarded country, just paranoid.
Knuth · 2020-10-31 00:20
>>19325
wonder if this anon is the tea room imgboard mod
If so thank you lain
DEBUG-CONTENTS · 2020-11-04 03:55
Yeah, basically all of my .emacs and related configs are my own code. That plus my EXWM configuration customized for the x200. I can drop it here if anyone's interested.
I also write a lot of bash scripts for various things, including one-offs where it's easier to automate something than doing it manually.
Stallman · 2020-11-24 05:52
I wrote the code for a teensy microcontroller to convert signals from an M0110 keyboard to usb. Someone else put code online but I wrote it independently for practice and it let me code capslock to swap out keysets for ones I need, including hjkl for arrow keys so its like vim everywhere. I use it exclusively now
aliased · 2020-11-24 22:35
Mostly small (and usually header-only) C libraries. Without them I'd have to rewrite a ton of boring stuff every time I start a new project
Boris Grishenko · 2020-11-25 19:16
I have a bunch of crawlers and extractors so I can archive things from sites, because hosts are unreliable nowadays with DMCA and other such bullshit. So anything I like has to be archived, which means I also have a bunch of scripts for managing my archives, encryption, backups and finding out the average size of files so I can optimize for them.
I also like doing everything in Emacs, so I've been wrapping up most of my utils with basic Emacs interfaces. My notes and small spreadsheets are pretty much all done in org-mode, with code-snippets for whatever needs dynamic recalculation. I rewrote a bunch of things Emacs built-ins do that weren't quite to my liking, such as the dired thumbnailer, I wrote my own because imagemagick doesn't support videos.
Computer brightness and such work via small programs I wrote because everything else on my distro just gobbled up unnecessary dependencies for what could be done with a short C or CL program.
Also a bunch of userscripts to fix sites to work properly without their own JS being enabled.
Milner · 2020-12-23 05:47
>>20218
would you mind sharing that management program lain? even if I can't use it myself it sounds interesting to poke through
HELIOS · 2020-12-23 09:51
I wrote a lot of short shell scripts and a couple of emacs packages to make my everyday life a little bit easier.
I still can't write any sufficiently complex program that would do exactly what I want due to lack of focus and poor skills, but I hope this situation will improve in the future.
Spooky · 2020-12-23 13:18
>>23531
Why write complex stuff if simple partition works for you? Creating complexity just for sake of complexity is obsession bordering with disorder. But it's the 2nd most common obsession met in programmers after obsession of programming for the sake of programming (like implementing already existing stuff just for mere fact of implementing it).
Lord Nikon · 2020-12-23 14:41
>>23533
>(like implementing already existing stuff just for mere fact of implementing it).
There's nothing wrong with this. It's a valuable learning exercise. There may also be other factors, like the original being under a non-free license and someone wanting to create a free alternative.
fsociety · 2020-12-23 15:22
>>23535
I'm not talking about such cases.
string · 2020-12-23 15:23
>>23537
in other words you felt into extension fallacy in that post >>23535
Haruyoshi · 2020-12-23 18:18
>>21711
>Sounds like a NSA level spyware. Would love to know more anon, sounds really interesting.
I've taken my time responding to this post, since I noticed it weeks back. I discuss it more in the machine code thread, here's my latest post: >>22620
I check that thread more often than here, so respond to me there, if there ever be a response, and if it won't be an issue.
Hououin Kyouma · 2020-12-26 22:41
>>19261
Can we see the script please?
Motoko Kusanagi · 2020-12-29 02:02
>>18576
some scripts in python/batch/bash that I use to convert files format and quickly do small edits to audio
Torvalds · 2020-12-29 02:09
>>23526
Not him but I have planned to write some management program.
How about a new thread about management programs?
XERXES · 2021-01-04 22:31
A few servers for my website and neural networks for one time use only
Crash Override · 2021-01-05 00:47
Two things right now.
- I have a fork of xfce-screenshooter because screenshooter doesn't support configuring the datetime format.
- I have a bot that I wrote for the game Star Trek Online. I don't currently use it because it's windows-only and I didn't manage to figure out how to send mouse events to a DX11 wine application that relies on dinput, when there's no equivalent in Linux (pyautogui sadly doesn't work).
synchronized · 2021-01-05 08:24
>>18576
I wrote a script so it simplifies my life every morning at my developer job, doing the typical routine: Opening my email and urls, discord to talk with my teammates, checking for updates in my project code, and so on.
I also improved a program to limit the audio output of my headphones, automatizing it as well so I didn't have to open it manually.
I'm currently working on my vimrc to make everything self installable, including the plugins, so every time I just jump into a computer or a VM I just have to clone the code and open Vim to have everything ready.
Six · 2021-01-14 23:57
>>21146
How did you make the search function?
Logarius · 2021-01-14 23:58
>>21146
How did you make it so you can search?
stack · 2021-01-17 00:28
>>23946
Not the same guy but perhaps try
https://m.youtube.com/results?search_query=searchterm
And do a pattern match or use an xml/html parse program on that.
word · 2021-01-17 07:03
Wrote a python script to get the weather. I use it every morning.
Delilah · 2021-01-17 14:06
dwm and st patches. I learned programming for the sake of competitive programming, and I haven't been able to go past the single-file source barrier
Tyrell Wellick · 2021-01-17 20:11
>>23998
do you just scrape some site or use an actual API?
i need to write some useful automation stuff as well, i keep just writing fun little projects with no meaning that i play around with every once a while for giggles. games and cellural automata and all. maybe some web scrapers?
Sabo Engle · 2021-01-29 10:03
a bunch of aliases to do soykaf faster
xmonad config that computes my screen width to dictate the kind of monitor and window set to use on that monitor
start up scripts for some programs in linux
Delilah · 2021-01-29 10:11
>>24194
What aliases? I'd be interested in seeing how you speed up things as all I've ever done is make cls do clear.
Spooky Boogie · 2021-01-29 10:18
right now i'm writing my first bot to help me purchase newly listed items from my favorite clothing brand. i wear lolita fashion and it's been really hard to get what i want lately. this is the first program i've written only for myself and not academia. it's easier than expected!
Unspecified · 2021-01-29 12:30
>>24197
What's the stuff you're using?
I'd assume something like python with requests or some js (I don't use js but I think it can make requests without libs right).
Is there a reason you need to get them so quickly like a time limit or limited run or is it just that you buy everything they sell.
When you say you wear lolita fashion does that mean you like wear it for pictures or go outside dressed in full?
Netrunner · 2021-01-29 13:07
>>24196
alias gfc="git commit -m"
alias gst="git status"
alias ga="git add"
Other aliases include cd-ing into my project directories, just really practical stuff
I also have something that invokes tmux when it cd into my work directory
The Phantom Phreak · 2021-01-29 13:08
>>24203
You can kind of see also that they all require a single hand to type so it's really fast and it just becomes muscle memory when I want to do something
Boole · 2021-01-29 14:04
>>24203
I was thinking git aliases might be the main application place. These are quite nice, I only wish there was some nice way to do rollbacks since I'm dumb and tend to screw up commits and have to roll back to an earlier one.
Spooky Boogie · 2021-01-29 15:01
>>24202
i'm using python, including requests and beauitfulsoup! i think i'm going to use stelenium for the actual buying portion. i wrote a quick and dirty version last night, and now i'm hoping to reduce as much overhead as i can.
the reason i need to get them so quickly is because there's very limited stock--they release items at a certain time every week, and it's very competitive to get what you want before it disappears. even if i want only one dress, or one ring, it's likely it will sell out before i can perform the transaction manually.
regarding your last question, i wear it out regularly and even when i stay at home. though i do like to get pictures of my outfits, because coordinating outfits is something a lot of lolitas take pride in.
Naomi Nascimento · 2021-01-29 15:02
I use my own productivity tool (timer that uses Pomodoro-like system), I plan to release it to the public some day.
Judge Fang · 2021-01-31 11:31
>>24006
include "file.h" now go make cool projects
John Titor · 2021-01-31 13:23
>>19261
this sounds fuarrrking awesome, can you post it?
Otto Normalverbraucher · 2021-02-04 16:08
I use my own code all the time. I only ever make things that I think I will use. Right now I use a todo list application and a meal making program regularly. I also have a large amount of small programs that help me organize my files that I use regularly . I am currently working on a command line suite of a bunch of small programs for constructing a personal wiki.
dup · 2021-02-05 10:50
I wrote a bunch of bash scripts and php web interfaces to manage my archives of youtube channels, voice works and doujinshi. I use them daily.
William Holtzer · 2021-02-07 08:52
I'm currently using an image viewer and an MPD client I use quite often, as well as a very simple re-implementation of what locate does that is much, much faster.
Did you know that locate is actually horribly slow because it was designed around outdated hardware assumptions and that simpy using grep upon a simple, unordered database that is simply generated with find -print0 / > fs.db is orders of magnitude faster?
The image viewer I wrote has a command line; I became annoyed that no other image viewer had :add ~/path/to/images with tab autocompletion, as well as /regex to search for a specific filepath. — I mostly use it to browse my pornography collection at this point.
Yamaoto Toshi · 2021-02-11 22:17
>>18576
I use a handful of scripts very heavily, they're probably super ugly and amateurish because I'm a noob at programming but they work reliably about 80% of the time.
Frank Garza · 2021-02-12 05:35
i have a few bash scripts that i use, but no big gui application or anything like that. i've written two different shells, but don't use them. i've also written a couple of autohotkey things that i use on occasion. overall, i just haven't really needed to program anything, or anything i have needed i wouldn't have known enough about to program without a large time investment, while the thing itself was miniscule and not worth the investment since i already don't have a lot of free time.
Hitomi · 2021-02-12 16:03
I use the Coincidence Detector.
https://coincidencedetector.com/
Mentat · 2021-02-12 21:21
>>24436
This reminds me of "Cloud to Butt"
https://github.com/panicsteve/cloud-to-butt
Donna Hawthorne · 2021-02-12 22:26
>>24436
You wrote that? Why don't you make it libre?
Church · 2021-02-12 22:38
>>24436
Requesting Hibernian version.
Demeere · 2021-02-13 00:37
>>24442
Feel free to do whatever you want with the code. If you dig around where your extensions are stored, you'll find it. You could also just unzip the .crx file for the Chrome version to see the code. I consider the code public domain.
I don't publish git repo details, because I don't want any attention from jews. That's how they fuarrrked me the first time, and I didn't publish it back then either. They figured it out due to how I was publishing the list ...(in a public git repo).
>Requesting Hibernian version
I may allow people to provide their own lists in the future, but no promises for when that'll be.
Molly Millions · 2021-02-14 18:01
>>24445
Didn't know the creator of the ((())) extention lurked here. I've been using this for years.
Cheers
Special Agent Bob · 2021-03-05 08:12
>>24207
How do you do rollbacks? Most of the time, if you think the whole commit is fuarrrked then you can just --hard it.
Although sometimes I'm thinking like adding an sh function that takes in a bunch of string as parameters then the things that are in the parameters are going to be reset fully and the changes for the others are kept
Liet Kynes · 2021-03-18 17:45
>>23586
>>24240
posted this a year ago to /wsg/, wasnt too happy with it as luas shuffle function is soykaf and it would keep playing the same webms. pretty happy now, made sure every webm u play is unique, until all of em have been played then it resets, should take a while though as it gets bumps from all current / past (yuki.la archived) bump threads. ive also added streaming these bumps per default instead of downloading em locally.
https://github.com/SimonPhoenix96/mpv-userscripts/tree/master/webm-bump-loader
drop · 2021-03-21 01:51
>>24943
just fixed streaming (adult swim) bumpworthy.com bumps
Yuki Nagato · 2021-04-19 22:03
>>18576
I use a couple things I wrote.
>port knocking script.
>theme changing script
>journalctl-like script for runit and syslog based systems
>countless shell scripts
>all my saltstack, terraform and kubernetes stuff
Linda Lee · 2021-04-19 22:26
>>18576
What's the point in not using your work?
I use my script for dynamically spawning independent Tor Browser Bundle instances all the time. Other scripts, even more often.
Wirth · 2021-05-10 16:17
>>18603
what font are you using?
alexandra · 2021-05-11 12:41
>>18576
I use a lot of scripts for automating things, and I use https://gitlab.com/monarrk/bob to help me set up projects
The Oracle · 2021-06-06 18:03
I have a bot running on my close friend channel. It has some goofs commands, but the coolest thing is that it can save what someone else said and use it at some point later. It is funny sometimes, almost like a new member.
I also built a scraping script to download some 100k+ posts and a parser to extract the useful part.
I also made a grease monkey extension to save information about YouTube playlist (how annoying is that a video is removed from a playlist you created and that information is lost forever because there is no way you gonna remember what it was about?)
I find very sad how useless my problem solving skills are basically because I don't feel like finishing projects that I know nobody will use it.
Batou · 2021-12-22 00:22
>>18687
More recently, I finished that newer version, and another, and now my work has shifted away from this, but I still intend to work on it more later.
>Even if I'm the only person who ever uses it, I'm glad it exists, because it's precisely what I wanted, and I intend to expand and go beyond it in the future.
I've used it just once this year, my very specific and dedicated tool tailored just to me, to write one tiny little program, but it still fills me with a little bit of joy, even if only temporarily. I think of how its design could cope with other work I see, and it always can, but so much better. It's an accomplishment.
progn · 2021-12-30 16:39
Recently made a bash script to submit a file to anonfiles.com. Feels nice to make a program I actually use and not something I make just for something to do and then delete it afterwords
#!/bin/bash
output=$(curl -s -F "file=@$1" https://api.anonfiles.com/upload)
echo $output | jq '.data.file.url.short' | sed 's/"//g'
Turner · 2021-12-30 18:10
I have a script that I used to automatically download all video lectures from my university's webpage. Not much use for it now that my teachers stopped recording though.
When I'm waiting for some test's results, I turn on a script that refreshes my teachers' webpages and sends me a message on Telegram when they're updated.
In the last month I was thinking of writing a little app to use as a dashboard for info that I often check, stuff like my bus's times, lessons I have that day, quick access to some documents etc. I need to learn some android dev first though
William Holtzer · 2021-12-30 20:46
>>29245
1. Don't specify bash when it's not needed over POSIX sh.
2. Always set -eu and run shellcheck (if you're not a sh expert).
3. Quote $output. Or don't use a temporary variable, it's useless here.
4. sed 's/"//g' -> tr -d '"'
dup · 2022-01-21 20:29
>>18576
Ye, I use my own password manager and password generator
hash table · 2022-01-22 02:35
I wrote 4chan-x-org-protocol to keep a record of all my posts to 4chan.
https://git.coom.tech/gg1234/4chan-x-org-protocol
Jet Black · 2022-01-23 04:43
>>29247
You can also just create an RSS feed and use a feed reader. It would be cross platform without you having to write clients for different devices.
Netrunner · 2022-01-25 01:39
>>18576
just a custom exception library for cpp and a buch of soykafty perl scripts to handle backups
Dox · 2022-02-24 00:23
>>18576
How does your program work? I'm imagining it just parses through PDF/epub files?
Boris Grishenko · 2022-02-24 09:22
>>18581
> I have no idea what people like >>18578 even write
when something inconveniences you spend days writing an automation script instead of seconds manually working around it
J.C. Denton · 2022-02-24 09:29
>>30230
Honestly most of the scripts I write take an hour or so because they're very simple
Torvalds · 2022-02-24 17:17
>>30232
The ones I work on take a long time but it's usually because I use them as an excuse to try new stuff. The next script I want to write should automate changing audio sources based on a monitors power state. Still not sure how that works yet.
Unsigned · 2022-02-26 01:19
>>30230
That's why you automate stuff that you do repeatedly.
For example, I recently wrote a color picker script for Wayland. It's only like three lines long shell script, but now I don't have to type out the command and manually copy the color from terminal output everytime I want to use it. I can just bind the script to a keybinding.
I also have a script that finds music files on my system, prompts me for search using rofi or fzf and then plays it in the background using mpv. Another similar script for finding emoji and stickers so I can send them to any social media platform I want. And another script for syncing files from phone using termux and rsync. I prefer it over something complicated like syncthing.
Linda Lee · 2022-03-01 04:46
>>24445
Kek, I used to have your software installed. Good (and weird) times.
Nowadays I run my own "anti-Semitism detector"; it does stuff like:
s/Christianity/anti-Semitism
s/Bible/Bibble
Keeps me from ruminating on my past living in an environment saturated with both, and instead triggers my "Probably Not Specifically My Problem"-senses. Can't have either of the two without politics, I don't have big enough of a community to care about modern politics.
car · 2022-04-13 22:42
>>19060
ok now i wanna do the same
drop · 2022-04-13 23:05
What a bizarre question. I use hundreds of scripts I've written. Only faggo frontend React DevOps Ruby types dont
x<->y · 2022-04-14 00:23
Ive got a webcrawler and search engine thingy. Based on Xapian so not 100% my work but still, handydandy imho.
Also all the usual this and that little odds and ends to make life easier, and a few programs I've patched but not written. Scripts to keep files tidy, mostly, I guess. Small configuration choices I couldn't get otherwise for the patches.
>>24436
man that's great I love that. Would use if I used a normal person browser, should probably whip my own up for my own use. Hearty chuckle to see the guy who made that's a lain.