Skip to content

Instantly share code, notes, and snippets.

execve("/usr/bin/git", ["git", "push"], [/* 21 vars */]) = 0
brk(NULL) = 0x55788592f000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efd4bf35000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=76586, ...}) = 0
mmap(NULL, 76586, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7efd4bf22000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
$ git push -v
Pushing to /srv/git/whatever.git
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 251 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
execve("/usr/bin/git", ["git", "push"], [/* 21 vars */]) = 0
...Lots of stuff
open(".git/objects/info/alternates", O_RDONLY|O_NOATIME|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access(".git/objects/63/4762c18e09bbe24a92a1533e73e95f5c455a4c", F_OK) = 0
access(".git/objects/de/09878687ef4c7fb00c46c590b59c8f163af579", F_OK) = 0
access(".git/objects/de/09878687ef4c7fb00c46c590b59c8f163af579", F_OK) = 0
rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[CHLD], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f0457ac1060}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
pipe([3, 4]) = 0
pipe([5, 6]) = 0
pipe([7, 8]) = 0
$ git push origin master
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 259 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
^This is where it hangs. Looks identical on the server and remote machine! Hmmm
This file contains a few snippets from my Debian /var/log/Xorg.0.log file that may be related to issues I'm seeing.
I did not copy the whole file because I don't have an easy way to do that with my current setup, so I'll just type it out like a Pleb.
1) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
2) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration.
3) NVIDIA Unified Driver for all supported NVIDIA GPUs
No Devices detected
@coltin
coltin / Java concat Lists.java
Last active June 26, 2018 15:09
A nice interface to concatenating multiple lists in java.
@SafeVarargs
public static <T> List<T> concat(List<T>... lists) {
return Stream.of(lists)
.reduce(
new ArrayList<T>(),
(resultList, currentList) -> {
resultList.addAll(currentList);
return resultList;
});
}
import java.util.HashMap;
/**
* Useful when you want to do something like map.get(key).add(value). In this case you would add
* ArrayList::new and not have to check if there is already some ArrayList added as a key before
* adding it to the pool.
*/
public class DefaultHashMap<K, V> extends HashMap<K, V> {
private DefaultValueCreator<V> defaultValueCreator;
cwebp -pass 10 -mt -alpha_filter best -alpha_cleanup -m 6 -lossless
What do all these arguments do?
-pass 10 Determines the number of passes that will be performed on the image, maximum 10. More = longer processing time, but potentially smaller images. Yum.
-mt Use multi-threading
-alpha_filter best "predictive filtering for alpha plane", tries to optimize the alpha channel. Options are none, fast, and best.
-m 6 Determines compression method. 0=fast, 6=slowest
-lossless Makes this WebP lossless. Image produced will be 100% identical once decompressed.
# Author Sarah Bryant
# July 22, 2015
#YOLO
# 5! = 120
def factorial(n):
solution = 1
while n > 1:
solution = solution * n
n = n - 1
return solution
import string
import time
def sliceAt(s, i):
return s[:i] + "[" + s[i] + "]" + s[i + 1:]
def hasSubstring1(key, text):
return key in text
def hasSubstring2(key, text):