Skip to content

Instantly share code, notes, and snippets.

View kajsa's full-sized avatar

Kajsa Anderson kajsa

View GitHub Profile
@jez
jez / slack-solarized-theme.css
Created August 23, 2017 04:21 — forked from anziem/slack-solarized-theme.css
Solarized theme for Slack (including background - not just sidebar)
.dummy {
color: #002b36; /* base03 */
color: #073642; /* base02 */
color: #586e75; /* base01 */
color: #657b83; /* base00 */
color: #839496; /* base0 */
color: #93a1a1; /* base1 */
color: #eee8d5; /* base2 */
color: #fdf6e3; /* base3 */
color: #b58900;
@nexdrew
nexdrew / redis-server
Created April 29, 2015 23:57
Example files for running Redis on CentOS 7 (after manual install)
/var/lib/redis/logs/redis.log {
daily
rotate 14
copytruncate
delaycompress
compress
notifempty
missingok
}
@nogweii
nogweii / Test.java
Created October 1, 2013 23:39
A quick test to see if you have the JCE Unlimited Strength Jurisdiction Policy files installed. If you don't, in Java 6 you'll see 128. If you do, you'll see 2147483647. Thanks to http://stackoverflow.com/questions/11538746/check-for-jce-unlimited-strength-jurisdiction-policy-files
import javax.crypto.Cipher;
class Test {
public static void main(String[] args) {
try {
System.out.println("Hello World!");
int maxKeyLen = Cipher.getMaxAllowedKeyLength("AES");
System.out.println(maxKeyLen);
} catch (Exception e){
System.out.println("Sad world :(");
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@gartenfeld
gartenfeld / flat_to_mongo.py
Last active April 17, 2020 05:35
Import data from a flat file into MongoDB.
import sys
import re
import codecs # UniCode support
from pymongo import Connection # For DB Connection
from pymongo.errors import ConnectionFailure # For catching exeptions
def main():
# MongoDB connection
try:
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 05:34
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname