recentpopularlog in
« earlier   later »
ssh agent - ssh-add under cygwin - Server Fault
I totally did this.

OK, that other Serverfault.com answer has a typo.

The right thing you want to run is:
<code class="language-bash">eval `ssh-agent`</code>
ssh-agent spits out a bunch of shell statements to set environmental variables. The eval runs them in the current shell. You can invoke ssh-agent that way, or run ssh-agent and then copy-paste its output into your current shell for the same effect.
ssh  ssh-agent  cygwin  linux  unix  doh  solution 
october 2019
How do I clone a gist using https:// instead of git:// - Stack Overflow
This probably isn't an issue anymore for GitHub gists, but this was the solution to using 'url."https://something".insteadof https://somethingelse', which I was looking for.

See also: https://coderwall.com/p/sitezg/force-git-to-clone-with-https-instead-of-git-urls
You can configure git to use https:// globally by running running
<code class="language-bash">git config --global url."https://".insteadOf git://</code>
or by adding the following to ~/.gitconfig:
<code class="language-ini">[url "https://"]
insteadOf = git://
</code>
git  github  gitfu  insteadof  cloneurl  solution 
october 2019
How to check if port is in use on Linux or Unix - nixCraft
<code class="language-bash">sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 ## see a specific port such as 22 ##
sudo nmap -sTU -O IP-address-Here</code>
linux  bash  sysadmin  networking  solution 
october 2019
Bash Shell Generate Random Numbers - nixCraft
<code class="language-bash">n=$RANDOM
# display a random integer <= 200
echo $(( r %= 200 ))
# display random number between 100 and 200.
echo $((RANDOM%200+100))</code>
bash  shellscripting  randomnumbers  random  rng  solution 
october 2019
A Short History of DragThing
DragThing 4 on Mac OS X contained the coolest easter egg in the world, but fewer than ten people have seen it.

Update: Many people have asked me what it is. I would love to tell you, because it was really cool. But there would be repercussions.
mac  osx  dock  easteregg 
october 2019
SSH tunnelling for fun and profit: SSH Config
<code>
# turn on pubkey auth per host
Host c1
HostName 192.168.0.1
PubkeyAuthentication yes
IdentityFile ~/.ssh/id_rsa_specific

# turn off pubkey auth for all hosts
Host *
PubkeyAuthentication no
IdentitiesOnly yes
</code>
<code>
# only store hashes of the hostnames
Host *
HashKnownHosts yes
</code>
<code>
# multiplex connections
Host *
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
</code>
ssh  ssh_config  configfile  bestpractices  security  hardening 
october 2019
ssh - autossh in background does not work - Server Fault
In my case, it was because I forgot to give '-N' to the final 'ssh' command; it died (silently, or else because I used '-q') when it realized that it had no stdin/stdout and no command to run.
ssh  sshtunnelling  portforwarding  autossh  solution 
october 2019
Why can't I use job control in a bash script? - Stack Overflow
Job control with bg and fg is useful only in interactive shells. But & in conjunction with wait is useful in scripts too.
shellscripting  bash  jobcontrol  til 
october 2019
Cygwin no available download site - Stack Overflow
Solution for me (modern.ie Win7 VM on corporate network) was to go to https://cygwin.com/mirrors.html and pick one of the mirrors from there.
cygwin  windows  corporatenetwork  mirrors  networksettings  annoyance  workaround  solution 
october 2019
I’m begging you: Stop donating canned goods to food banks | National Post
Canned goods have a particularly low rate of charitable return. They’re heavy, they’re awkward and they can be extremely difficult to fit into a family’s meal plan. Worst of all, the average consumer is buying their canned goods at four to five times the rock-bottom bulk price that can be obtained by the food bank itself.

That $1 you spent on tuna could have purchased $4 worth of tuna if put in the hands of non-profit employee whose only job is to buy food as cheaply as possible. The savvy buyers at the Calgary Food Bank, for instance, promise that they can stretch $1 into $5.
donations  charity  effectivealtruism  explained  video 
october 2019
Why giving cash, not clothing, is usually best after disasters
How can in-kind donations cause more harm than good? While ostensibly free, donated goods raise the cost of the response cycle: from collecting, sorting, packaging and shipping bulky items across long distances to, upon arrival, reception, sorting, warehousing and distribution.
donations  donating  disasterrelief  invisibleharms 
october 2019
AI used for first time in job interviews in UK to find best applicants
Artificial intelligence (AI) and facial expression technology is being used for the first time in job interviews in the UK to identify the best candidates.

Unilever, the consumer goods giant, is among companies using AI technology to analyse the language, tone and facial expressions of candidates when they are asked a set of identical job questions which they film on their mobile phone or laptop.

The algorithms select the best applicants by assessing their performances in the videos against about 25,000 pieces of facial and linguistic information compiled from previous interviews of those who have gone on to prove to be good at the job.

Hirevue, the US company which has developed the interview technology, claims it enables hiring firms to interview more candidates in the initial stage rather than simply relying on CVs and that it provides a more reliable and objective indicator of future performance free of human bias.
theinterview  jobs  ai  dystopia  robotoverlords 
october 2019
The State of White Women by Erynn Brook | Nice White Ladies
We are fortunate that women of colour have been blazing this path for us. They’ve spoken of the mask for years, of performing whiteness, of dual identities. They have learned how to play at Nice White Lady, they’ve always known it was a lie. They have pages upon pages of resources for us to learn from.

People of colour talk about whiteness all the time. Believe it or not, white people do not talk about whiteness. We need to get with the program. Whiteness is not real, it is an idea that is killing us. Whiteness is what causes white supremacy and Nazi ideology. Whiteness is what makes us afraid to take the bus late at night. Whiteness is what puts people like Donald Trump in the White House. Whiteness is not you, personally. It’s an idea that has been ingrained into your psyche. It’s something you’ve learned, something you’ve been sold, something you bought into. And it is so prevalent in our society that when it was shattered you realized that no matter how hard you tried you couldn’t ever have it all.

But you also realized that you had nothing else. Unlike people of colour, you never developed that other identity outside of whiteness.
whiteness  racialjustice  solidarity 
october 2019
The Technium: The Shirky Principle
“Institutions will try to preserve the problem to which they are the solution.” — Clay Shirky

Shirky made his quote in a recent talk, a bit from his upcoming book Cognitive Surplus. Shirky also referred to a similar idea in a recent blog posting about the ways in which media companies and the media industry are often constitutionally incapable of changing because they are still solving the last problem.
shirkyprinciple  companies 
october 2019
Quick: An Introduction to Racket with Pictures
This tutorial provides a brief introduction to the Racket programming language by using one of its picture-drawing libraries. Even if you don’t intend to use Racket for your artistic endeavours, the picture library supports interesting and enlightening examples. After all, a picture is worth five hundred “hello world”s.
racket  scheme  intro  tutorial  cs  programming 
october 2019
Night Runner - Nuclear Countdown - YouTube
Harry Washello : So he was calling from a missile silo! He said that they were locked in, 50 minutes and counting, to shoot off their nuclear wad. We would be getting it back in an hour and 10. I mean he meant that we're at war! Nuclear war!


From "Miracle Mile" (1988): https://www.imdb.com/title/tt0097889/characters/nm0000381
synthwave  sample  film  quote 
october 2019
How do I uninstall Java on my Mac?
<code class="language-bash">sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java</code>
macos  mac  osx  java  uninstallation  uninstall  solution 
october 2019
Refine web searches - Google Search Help
'site:' is about the only useful one; I thought there would be a 'lang:' but nope.
google  keywords  search  searchengine  reference 
september 2019
How a Whistle-Blower Complaint Undermined Trump - The Atlantic
Trump has long worried that America’s intelligence professionals would try to undermine him from the shadows. All they had to do was play by the rules.
ic  presidenttrump 
september 2019
python - make pip ignore an existing wheel - Stack Overflow
Has this problem with python-levenshtein being built with UCS-4 symbols and my homebrew Python was only UCS-2. This totally did the trick. See also: https://bytes.com/topic/python/answers/34496-undefined-symbol-pyunicodeucs4_fromunicode

<code class="language-bash">pip install <package> --no-binary :all:</code>
pip  wheel  binary  workaround  solution 
september 2019
string - What is the difference between UTF-32 and UCS-4? - Stack Overflow
UTF-32 has started as a subset of UCS-4. Now it is identical except that the UTF-32 standard has additional Unicode semantics. See details on wikipedia: http://en.wikipedia.org/wiki/UTF-32


However:
However, I am not exactly sure, what additional Unicode semantics means. Maybe someone can provide a better answer.
unicode  widecharacters  ucs4  explained 
september 2019
undefined symbol: PyUnicodeUCS4_FromUnicode - Python
I ran into this with a wheel for python-levenshtein that was built for UCS-4, but my homebrew Python was UCS-2. Using 'pip install python-levenshtein --no-binary :all:' to ignore the wheel was the solution for me (source: https://stackoverflow.com/a/38263887/785213)
python  pip  wheel  unicode  sortof  solution 
september 2019
« earlier      later »
per page:    204080120160

Copy this bookmark:





to read