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
mobile | name | |
---|---|---|
+##########01 | name1 | |
+##########02 | name2 |
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 | |
import sys | |
import json | |
# Try this ./json-escape.py '"abc"' | |
s = { "a": { "b": sys.argv[1] } } | |
print(json.dumps(s)) |
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/sh | |
# | |
# [email protected] | |
# | |
# get-d-i.sh ftp.debian.org/debian/{lenny,squeeze} archive.ubuntu.com/ubuntu/lucid | |
for i in $*; do |
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/python | |
from sqlalchemy.ext.automap import automap_base | |
from sqlalchemy.orm import Session | |
from sqlalchemy import create_engine | |
Base = automap_base() | |
engine = create_engine('mysql://rmanalyzer:42c718i1@localhost/redmine') |
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
import java.lang.*; | |
import java.io.*; | |
public class Exec { | |
public static void main(String[] args) { | |
try { | |
Process process = Runtime.getRuntime().exec("ls /vmlinuz /mvlinuz"); | |
try { | |
process.waitFor(); |
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/sh | |
# This gist has moved under github.com/hpcalex/slurmies/ as of 2020-12-30. | |
# Usage: sacctmins <acct> <resc> | |
# Reference for Slurm commands: | |
# | |
# https://slurm.schedmd.com/sshare.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
[Unit] | |
Description=Licence manger for Intel | |
After=network.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/opt/flexlm/intel | |
ExecStart=/opt/flexlm/intel/lmgrd -z -c server.lic -log /var/opt/flexlm-intel/lmgrd.log | |
SuccessExitStatus=15 | |
Restart=always |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" | |
default-init-method="init"> | |
<bean id="localcdxcollection" class="org.archive.wayback.webapp.WaybackCollection"> | |
<property name="resourceStore"> | |
<bean class="org.archive.wayback.resourcestore.LocationDBResourceStore"> | |
<property name="db" ref="resourcefilelocationdb" /> |