$ chmod u=rwx,g=rx,o=rx $HOME
$ chmod u=rwx,g=rx,o=rx $HOME/public_html
$ chmod -R o+r $HOME/public_html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache Conf | |
# Mod cgi required for cgi script | |
<VirtualHost *:80> | |
ServerName locahost | |
# ServerAdmin webmaster@localhost | |
DocumentRoot "/usr/share/cgit" | |
<Directory "/usr/lib/cgit/"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
module = nnpy | |
callable = app | |
master = true | |
processes = 5 | |
http = 0.0.0.0:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p ~/.vim/pack/{colorschemes,plugins}/{opt,start} | |
cd ~/.vim/pack/colorschemes/start/ | |
wget https://github.com/morhetz/gruvbox/archive/master.zip | |
unzip master.zip | |
mv gruvbox-master gruvbox | |
rm master.zip |
It is a dirty script which basically helps me run and stop pre-defined containers on Euclid. It just uses subprocess
in Python to run the commands with the options pre-defined in CONTAINERS
dictionary. This script is actually port of docker-func
script which I wrote in Bash few months ago for the same thing. The point of this is so that I don't have to remember and type all the options that need to be specified for those containers.
names
function takes no arguments can returns a list of names of all the running containers. It gets the names from the docker ps
command and no third party module is involved in it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50fkUxYHbnXGw: rofl | |
50xcIMJ0y.RXo: YES | |
50mjprEcqC/ts: CA | |
50GApilQSG3E2: UPenn | |
50n0AAUD.pL8g: lloyd | |
50CcfIk1QrPr6: maybe | |
509nVI8B9VfuA: TF | |
50JIIyhDORqMU: nope | |
50JGnXUgaafgc: ROFL | |
51u8F0dkeDSbY: NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
char s[] = { | |
'\n','}',';', | |
'\n','i','n','t',' ','m','a','i','n','(','v','o','i','d',')', | |
'\n','{', | |
'\n','\t','i','n','t',' ','i',';', | |
'\n', | |
'\n','\t','p','r','i','n','t','f','(','\"','#','i','n','c','l','u','d','e', | |
' ','<','s','t','d','i','o','.','h','>','\\','n','c','h','a','r',' ', | |
's','[',']',' ','=',' ','{','\\','n','\"',')',';', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
Generate random names | |
""" | |
from random import sample | |
from string import ascii_lowercase | |
from sys import argv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIID7DCCAtSgAwIBAgIUH5RFZn99LL9UxiDfD17ZUYIXnfIwDQYJKoZIhvcNAQEL | |
BQAwgY0xCzAJBgNVBAYTAklOMRIwEAYDVQQIEwlSYWphc3RoYW4xFTATBgNVBAcT | |
DENoaXR0YXVyZ2FyaDESMBAGA1UEChMJQVJHUEUgSW5jMR4wHAYDVQQLExVDZXJ0 | |
aWZpY2F0ZSBBdXRob3JpdHkxHzAdBgNVBAMTFmFyZ0NBIFJvb3QgQ2VydGlmaWNh | |
dGUwHhcNMTkwMzMxMTc0MDAwWhcNMjQwMzI5MTc0MDAwWjCBjTELMAkGA1UEBhMC | |
SU4xEjAQBgNVBAgTCVJhamFzdGhhbjEVMBMGA1UEBxMMQ2hpdHRhdXJnYXJoMRIw | |
EAYDVQQKEwlBUkdQRSBJbmMxHjAcBgNVBAsTFUNlcnRpZmljYXRlIEF1dGhvcml0 | |
eTEfMB0GA1UEAxMWYXJnQ0EgUm9vdCBDZXJ0aWZpY2F0ZTCCASIwDQYJKoZIhvcN | |
AQEBBQADggEPADCCAQoCggEBAKP8zrKOI5DL+b3vueMotXFHjh5Yni2sMP17U72y |
OlderNewer